Currently, I'm stucked on trying to calculate total sales of Combo Product Set base on below Sales table. This sales tables don't have identify of own combo product. MasterItem column can identify it is combo but MasterItem column is base on uniqueID of transaction.
Example below Papa Blazing Combo, unique ID 1, So all sub combo under Papa Blazing Combo "MasterItem" are all 1 but UniqueID 12, it is also Papa Blazing Combo but MasterItem is also 12.
In this case how can we caculate total sales of combo?
Thanks for your code but it seem that total sale is not follow as result yet. Result that we want is all arrange by main combo and followup by sub combo.
I have an idea but I'm not sure how dax work yet. I want to create a new column "ComboID" as below. If we can create new column by Dax code to generate ComboID base on Product ID of Main Combo and apply to main combo and sub combo, I think we can filter and sum sales