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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

About sorting data

hi all

 

I had a problem writing RANKX . so here's my RANKX function

 

     totalCount = SUM(Table1[count])
     countRAN = RANKX(ALL(Table1[time]),[totalCount],,ASC)
 
But here's what I got
 
aaa.pngbbb.png
 
The first image is the result of my table, and the second image is my data
You can see in the first picture that my RANKX function calculated something wrong with the data
Can someone tell me why  thinks
 
Best Regards
alan-li
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Create a calculated column 
RankCount  = RANKX(Table,Table[count])

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Create a calculated column 
RankCount  = RANKX(Table,Table[count])

Anonymous
Not applicable

hi @Anonymous 

 

It works. Thank you

 

Best Regards

alan-li

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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