Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all
I am trying to get the rank by cost
instead of getting rank i am getting count of item no.
Appreciate if any help!
Please try =
RANKX ( ALLSELECTED ( tblUsageReportingData[ItemNo] ), [Total Cost UA], ,ASC,Dense))
This error involves costAmount(Actual) and Total Cost UA, and we need to look at their code. If the code involves multiple tables, please share both the multiple tables and the table structure, we just need to know which fields are involved in the table.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
I mean ranking itself is a measure?
@Bashir_Nadaf
Sorry, I Have no idea why it is returning the count instead of the rank!
please try
Rank column =
RANKX ( ALLSELECTED ( tblUsageReportingData[ItemNo] ), [Total Cost UA] )
This is not working
showing the same result
if i take the rank column as sum it is showing the rank as shown in above image
and if i select dont summarize it is showing 1 in rank column for all the rows
Hi @Bashir_Nadaf
Are you sure [Total Cost UA] is the same measure used in the visual?
Yes
total cost UA and cost amount(actual) are showing same data
total cost UA is a measure and
cost amount actual is a column
please try remove the column from the visual and use the measure instead
@Bashir_Nadaf
Please make sure you are creating a measure not a calculated column
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 |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 44 |