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

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
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.

Top Solution Authors