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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MichaelJSpence
New Member

Dealing with ties in RANK

So I'm trying to add a couple of calculated columns with the Rank function in DAX but I'm having trouble getting it to work properly and skip after ties. I want to do other calculations based on the results, so it needs to be a column, rather than a measure.

 

Below is the formula and output.

 

RANK(SKIP,,ORDERBY('Challenge'[Person A Score], desc),LAST,,)
 
MichaelJSpence_0-1692359498408.png

 

The order is correct, but the problem I have are ties. After ties I want the number to skip, so in the example above the attributes currently ranked 5 would be ranked 8. The below is what I'd want the above output to actually look like. Any help would be greatly appreciated!

 

1

2

3

4

4

4

4

8

8

8

8

8

13

13

15

15

17

18

1 ACCEPTED SOLUTION
nandukrishnavs
Super User
Super User

@MichaelJSpence  Try this

 

Column =
RANKX ( 'Challenge', 'Challenge'[Person A Score],, ASC, SKIP )

Regards,
Nandu Krishna

View solution in original post

2 REPLIES 2
nandukrishnavs
Super User
Super User

@MichaelJSpence  Try this

 

Column =
RANKX ( 'Challenge', 'Challenge'[Person A Score],, ASC, SKIP )

Regards,
Nandu Krishna

That worked, thankyou so much!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.