Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
clem312
Resolver I
Resolver I

Ranking, equal issue

Hi,

 

I have a ranking with equals values on 3rd position :

clem312_0-1633695028448.png

 

I want to display data in a matrix with categories (code_lib) sort by decreasing @Note
RANKX(VALUES(code[code_lib]), CALCULATE([%code_Year_FR]), , DESCDENSE)

My problem is that position 4 and 5 are hidden. It continues with position 6 category (Engine lack of power) :

clem312_1-1633695238285.png

 

1 ACCEPTED SOLUTION
Natallia_23
Resolver I
Resolver I

Hello,

 

The formula cannot assign different ranks (3,4,5) to the same values.
You can add an index column to the table (in PowerQuery). Then, in the formula for the rank, add to the column for which the rank is index / large number. So the numbers will insignificantly differ and the rank will be in order.

[your column] + [index]/100000

View solution in original post

1 REPLY 1
Natallia_23
Resolver I
Resolver I

Hello,

 

The formula cannot assign different ranks (3,4,5) to the same values.
You can add an index column to the table (in PowerQuery). Then, in the formula for the rank, add to the column for which the rank is index / large number. So the numbers will insignificantly differ and the rank will be in order.

[your column] + [index]/100000

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.