Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, everyone.
I have a problem when i am using RANKX() function.
I have a one column table that contains redundant category names (AAA, BBB, CCC.....FFF) and have a measure that counts rows through a table:
As you can see categories EEE, FFF have the same counts and as a result the same rank.
I want to get rid of this, i need to get the unique rank for the each row.
To do that, "Counts" measure was modified a bit i added random number and expected to get correct rank, but i have this:
"Counts" was modified like this:
Solved! Go to Solution.
Hi,
Please check the below measures and the attached pbix file.
I suggest writing an additional measure like below.
Rankalphabet =
RANKX ( ALL ( 'Table'[Dim] ), CALCULATE ( MAX ( 'Table'[Dim] ) ),, ASC ) / 100
Counts =
COUNT(
'Table'[Dim]
) + [Rankalphabet]
RankRows =
RANKX(ALL('Table'[Dim]), [Counts],, DESC)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question.
Hi,
Thanks a lot Jihwan_Kim, it was the solution for me.
Have a good day.
Hi,
Please check the below measures and the attached pbix file.
I suggest writing an additional measure like below.
Rankalphabet =
RANKX ( ALL ( 'Table'[Dim] ), CALCULATE ( MAX ( 'Table'[Dim] ) ),, ASC ) / 100
Counts =
COUNT(
'Table'[Dim]
) + [Rankalphabet]
RankRows =
RANKX(ALL('Table'[Dim]), [Counts],, DESC)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |