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
The other solutions on this forum don't seem to work for some reason. I must have a tricky one or something.
I have a table that has PointsForRank, as you can see that I want to rank over by each OperatorName. But for some reason rankx is not ranking correctly at all, and I'm at a loss as to why.
DAX:
Solved! Go to Solution.
For your reference.
Step 0: I use these DATA.
Step 1: I correct the formula.
Rank =
RANKX(
ALLSELECTED('Charge Off Collections'),
CALCULATE(
SUM('Charge Off Collections'[PointsForRank]),
ALLEXCEPT('Charge Off Collections','Charge Off Collections'[Operator Name], 'Charge Off Collections'[Team Name])
),
,
desc,
Dense)
Step 2: I make a ’Table’.
For your reference.
Step 0: I use these DATA.
Step 1: I correct the formula.
Rank =
RANKX(
ALLSELECTED('Charge Off Collections'),
CALCULATE(
SUM('Charge Off Collections'[PointsForRank]),
ALLEXCEPT('Charge Off Collections','Charge Off Collections'[Operator Name], 'Charge Off Collections'[Team Name])
),
,
desc,
Dense)
Step 2: I make a ’Table’.
So I did create a PointsforRank column in the dataset, and the rank works with that. PBI doesn't like using measures in the calculate field in rankx for some reason. Tyvm!
I was thinking aoubt making a table specifically for ranking, but why wouldn't the rank work dynamically? Also the Points for rank is a measure not a column. I'll post the dax for it below:
The table name "Charge Off Collections" appears several times in the formula, but I think an error may be occurring in the calculation because [PointsForRank] is a measure and not a column.
Let's ask CST to tell us the correct answer! (^^)/
DAX:
@Jennny What's your PointsForRank formula? Also, try using RANK instead of RANKX
I tried using the rank function but it was even worse than the rankx
I'm just confused why the pointsforrank are so clearly expressed in the table, yet the rankx seems to not even be looks at the values at all. If I understood how the rankx function was actually calculating the rank, I feel like this would be a lot easier.
here's my pointsforrank dax:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |