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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors