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
I have a table with the following values:
Id Price
--------------------
1 50
2 70
3 60
4 55
5 65
I am trying to rank this table using a measure but I get an error "a single value for the column "Price" cannot be determined. The formula is as follows:
Measure = RANKX(ALL(Data[Id]),[Price]).
Where am i going wrong.
Solved! Go to Solution.
Hi @CBaisako
Add a CALCULATE and SUM around the [Price]
Measure = RANKX(ALL(Data[Id]),CALCULATE(SUM(data[Price])))
and have a read of this blog on using RANKX in measures http://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
Hi @CBaisako
Add a CALCULATE and SUM around the [Price]
Measure = RANKX(ALL(Data[Id]),CALCULATE(SUM(data[Price])))
and have a read of this blog on using RANKX in measures http://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
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 |