Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

DAX Challenge

Hi

 

I'm working on a project where I'll have to find the Number of times a Product has been upsold. For Example, If you buy a car, the sales man will pursue you to buy accesories like All Weather Mats, Roof Rail.. etc. I need to find out how many times All Weather mats are upsold with the particular Car, Like Wise for other accesories as well.

 

Sales Table:

Order#Customer#Item#Sales$
1ABCITM A100
1ABCITM B20
2BCDITM A100
2BCDITM C15
2BCDITM D20
3DEFITM X200
3DEFITM Y20
4FGHITM A100
4FGHITM C15
    

 

Upselling Part Detail

 

Master ProdutUpsellable Product
ITM AITM B
ITM AITM C
ITM XITM Y
  

 

Final Report Will Look SOmething Like this

Report Filter:  Master Product : ITM A

Total Orders: 3

 

Upsold Product# Of Orders% Upsold ( Total Order of ITM <> / Total Order)
ITM B11/3 = 33%
ITM C22/3 = 66%
   

 

Any Help is much appreciated.

Thanks

 

2 Replies