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