Forum Discussion
davehus
Memorable Member
7 years agoRank by Department Only
Hi,
I have a problem with Rankx that I'm trying to overcome. I have a database of product sales by store. I want to get the product rank by department but want to retain the rank when I add a store column in.
I also have a year filter on the table. Example table attached.
Thanks - D
Hi davehus ,
Would you like something like it in the snapshot below? Please download the demo from the attachment.
Measure = CALCULATE ( RANKX ( ALL ( Table1[Product Code & Description] ), CALCULATE ( SUM ( Table1[Sales] ) ) ), ALL ( Table1[Branch Name] ) )
Best Regards,
2 Replies
- LivioLanzo
Solution Sage
- v-jiascu-msft
Microsoft Employee
Hi davehus ,
Would you like something like it in the snapshot below? Please download the demo from the attachment.
Measure = CALCULATE ( RANKX ( ALL ( Table1[Product Code & Description] ), CALCULATE ( SUM ( Table1[Sales] ) ) ), ALL ( Table1[Branch Name] ) )
Best Regards,