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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi , I am trying to create a rank measure that ranks a list of items based on their ID which is unique and incremented. However, the RANK Measure num is repeated for all items when a selection is made in the slicer. How can I fix this?
Solved! Go to Solution.
Hi @Sage2019
I followed your method to create the following table and measure formula, which works fine on my Power BI desktop
rank measure = RANKX(ALLSELECTED(cars),calculate(SUM(cars[carID])),,ASC,Dense)
If you don't want your rank measure to change with your slicer selection, you can try using the following DAX
Rank Measure1 =
RANKX(
ALL(cars),
CALCULATE(SUM(cars[carID])),
,
ASC,
DENSE
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Sage2019
I followed your method to create the following table and measure formula, which works fine on my Power BI desktop
rank measure = RANKX(ALLSELECTED(cars),calculate(SUM(cars[carID])),,ASC,Dense)
If you don't want your rank measure to change with your slicer selection, you can try using the following DAX
Rank Measure1 =
RANKX(
ALL(cars),
CALCULATE(SUM(cars[carID])),
,
ASC,
DENSE
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 101 | |
| 76 | |
| 56 | |
| 51 | |
| 46 |