Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the following sample Dataset and I need to be able to rank the SKU based on the $ Amount for a specific time period and product combination. The user wants to see ranks for multiple time periods but these need to change based on Product selection as a slicer. Below is the data. Any help would be appreciated
Time Period | Products | SKU | $ Amount |
Last 4 Weeks | A | AA | 1 |
Last 4 Weeks | A | AB | 3 |
Last 4 Weeks | A | AC | 0.5 |
Last 4 Weeks | B | BA | 2 |
Last 4 Weeks | B | BB | 1 |
Last 4 Weeks | B | BC | 6 |
Last 16 Weeks | A | AA | 3 |
Last 16 Weeks | A | AB | 4 |
Last 16 Weeks | A | AC | 1 |
Last 16 Weeks | B | BA | 4 |
Last 16 Weeks | B | BB | 6 |
Last 16 Weeks | B | BC | 7 |
Solved! Go to Solution.
Rank = RANKX ( ALLSELECTED ( TableName ), CALCULATE ( SUM ( TableName[$ Amount] ) ), , DESC, DENSE )
hi, @rampsaladi
rankn = RANKX(ALL(tabela[Time Period];tabela[Products];tabela[SKU]);[TT_Amount];;ASC;Dense)
Rank = RANKX ( ALLSELECTED ( TableName ), CALCULATE ( SUM ( TableName[$ Amount] ) ), , DESC, DENSE )
Thank you this helps
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
37 |