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 August 31st. Request your voucher.

Reply
MNGoodyear
Frequent Visitor

Creating Ranks

I have a table of all sales orders, including product group, order reference, order qty, customer, plus various other attributes.

 

I want to be able to create a report that summarises the order qty by customer and display the top 20 customers

 

I then want to apply a filter to change the product group

 

However i cannot seem to write the correct formula for establishing the rank.

 

Thanks

3 REPLIES 3
Anonymous
Not applicable

Hi, i am new in this community and still trying hard to navigate around.

 

i am trying to rank my supplier performance using the following DAX but the result still showing rank = 1.

Ranks = RANKX(ALL('NCR report'[Total NCR]), SUMX('NCR report', 'NCR report'[Total NCR]),,ASC)

please help..

 

 

RANKX.png

 

HI @Anonymous ,

 

You can create a RANKX Measure

 

 

Ranks = RANKX(ALL('NCR report'[Supplier]), [Total NCR],,ASC)

 

Regards,

Harsh Nathani

 

avanderschilden
Resolver I
Resolver I

Hello,

 

Are you sure you need a measure to get the desired result?

It is possible to display a dynamic TOPN in a visual that is influenced by slicers;

 

Capture.PNG

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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