Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I would like to create a measure in pbi to get the ranking horizontally.
For Example, the below are the sales.
I would like to create a meausure to get the ranking for country.
Thanks in advance everyone.
Solved! Go to Solution.
@Carly_717 , Try using
Country Sales Rank =
RANKX(
ALL('Sales'[Country]),
CALCULATE(SUM('Sales'[SalesAmount])),
,
DESC,
Dense
)
Proud to be a Super User! |
|
@Carly_717 , Try using
Country Sales Rank =
RANKX(
ALL('Sales'[Country]),
CALCULATE(SUM('Sales'[SalesAmount])),
,
DESC,
Dense
)
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |