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 ALL,
I need DAX to rank the Category and Sub Category as the measure, as seem in the below screen shot I have created the which is not giving me the correct result i need a measure to rank my Sub Category based of the Category, I need a measure not column, Any help would be appreciated. Thanks
I need is below but as a measure.
Thanks
Solved! Go to Solution.
Create a measure
Measure = RANKX(ALLEXCEPT('Table','Table'[category]),CALCULATE(SUM('Table'[my value])),,DESC,Dense)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |