Hello,
I want to join the field SalesGoal from the SalesGoal table with the ProductInformation table, but this should be done based on the ProductType (which is the same in both tables) and that the Sales should be placed into the right interval in SalesGroupStart and SalesGroupEnd.
ProductInformation:
Load
ProductType,
Sales,
Department,
Date;
SalesGoal:
Load
ProductType,
SalesGroupStart,
SalesGroupEnd,
SalesGoal;
I have tried to use the intervalMatch, and I succeeded in joining the intervals to the ProductInformation table, but I am not able to join the actual Sales field with the ProductInformation.
Any ideas on how to join the Sales field with the ProductInformation based on the criteria?
I would appreciate any help, thank you in advance!