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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

RANKX does not give the expected result

Hello

I'm having trouble pulling a sales ranking (photo attached).

I don't understand why it gives me back several "1s" and several repeated positions. Does Alguie know why that's the case?

Thanks in advance.

Rank problem.png

1 ACCEPTED SOLUTION

This issue is now solved as the "AdventureWorks" database has duplicated product names with different IDs...

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

RANKX(ALL('Table'[Product]),[sum of sale],,DESC,Dense)
You actually called full table instead of product column.

Anonymous
Not applicable

Try This:

RANKX(ALL('Table'[Product]),[sum of sale],,DESC,Dense)

Hi haseebsuhail943,

Thanks for your prompt reply, but it didn't work:

Rank problem2.png

This issue is now solved as the "AdventureWorks" database has duplicated product names with different IDs...

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.