Dashboard Mode - RANKX for ranking
Business Question
Which products have the highest sales and how do they rank compared to others?
Which products have the highest sales and how do they rank compared to others?
| Product | Category | Sales |
|---|---|---|
| Alpha | Electronics | 300 |
| Beta | Electronics | 450 |
| Gamma | Furniture | 200 |
| Delta | Furniture | 500 |
| Epsilon | Office Supplies | 150 |
| Zeta | Office Supplies | 400 |
Total Sales = SUM(Sales[Sales])Sales Rank = RANKX(ALL(Sales[Product]), CALCULATE(SUM(Sales[Sales])), , DESC, DENSE)
+----------------------+-------------------------+
| Total Sales | Sales by Product |
| (KPI Card) | (Bar Chart) |
+----------------------+-------------------------+
| Product Sales with Rank Table |
+----------------------------------------------------+
Applying a filter on Category updates all components:
If you add a filter for Category = Electronics, which products remain and what are their ranks?
Answer: Products Alpha and Beta remain.
Sales: Alpha = 300, Beta = 450.
Ranks: Beta is 1, Alpha is 2.