I have two tables. One with dates and customer ID's of tech support given [Table 1], and the other one with surveys sent to the customers [Table 2]). The problem is that the surveys are sent some days after the service is done. So, I need to find the survey ID with the closest date from the survey table and bring it to my tech support table. Here's a sample of my data and the result wanted.
Table1:
TechSupportDate CustomerID
01/12/2018 1
02/12/2018 2
05/12/2018 1
Table2:
SurveyID SurveyDate CustomerID
1001 04/12/2018 1
1002 04/12/2018 2
1003 10/12/2018 1
EXPECTED RESULTS:
TechSupportDate CustomerID SurveyDate SurveyID
01/12/2018 1 04/12/2018 1001
02/12/2018 2 04/12/2018 1002
05/12/2018 1 10/12/2018 1003
Add calculated columns to Table1:
and
Here's a worked example PBIX: https://excel.solutions/so_54693431/