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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Ranking

Hi,

 

My data has multiple rows with similar values (See Source number). I need to rank source number to be able to carry out further analysis. After applying RANKX function, i get rank in the following manner. It skips numbers in between, due to multiple rows. 

 

Source NumberReasonRank
24563Null1
24563Null1
24563Invalid1
24563Invalid1
24563Invalid1
23456Null11
23456Invalid11
23456Invalid11
23456Null11
24534null6
24534null6
24534Invalid6
24534null6

 

I need my data to look like this:

 

Source NumberReasonRank
24563Null1
24563Null1
24563Invalid1
24563Invalid1
24563Invalid1
23456Null3
23456Invalid3
23456Invalid3
23456Null3
24534null2
24534null2
24534Invalid2
24534null2

 

Can you please help with the right logic

 

Thanks in Advance.

 

1 ACCEPTED SOLUTION
LivioLanzo
Solution Sage
Solution Sage

 @Anonymous  change the last argument of RANKX from Skip to Dense

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

1 REPLY 1
LivioLanzo
Solution Sage
Solution Sage

 @Anonymous  change the last argument of RANKX from Skip to Dense

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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