Forum Discussion
melodypoh
8 years agoFrequent Visitor
Create relationship without unique IDs
Hi, I am trying to compare sales from August 2017 (file 1) to August 2015 and 2016 (file 2). I can't connect them because there are duplicated SKUs sold all the time. How would you guys may go about ...
Ashish_Mathur
8 years agoSuper User
Hi,
So assuming you have 3 datasets each with 2 columns - Date and SKU's. You must do the following:
- Create a calendar table and build a relationship from the date column of each dataset to the calendar table
- From all 3 datasets, create a master list of unique SKU's (can be done using Append and Remove duplicates feature of Power Query)
- Build a relationship from the SKU column of each dataset to the unique list of SKU's dataset created in 2 above
Hope this helps.
melodypoh
8 years agoFrequent Visitor
Hi Ashish,
There are 2 datasets, one is for this year, the other one has the last 2 years' data. I don't think I should delete duplicated SKUs because each has its unique order number which differs year to year.