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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors