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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bptyates
Frequent Visitor

Ranking values

Hi All, 

 

I have a list of sales orders and invoice values. I put them in a table to get a summary by part number:

bptyates_0-1659521903070.png

 

When I try to use RANKX to rank those values it only works if I have the data un-summarised, so for each individual order that makes up the number in the invooice value column. How do I rank these summarised values so I cane se 1,2,3,4 etc descending.

 

This is what I have tried:

sales amt rank = RANKX('Final Sales data','Final Sales data'[Invoiced Sales],,DESC)

and it give me this:

bptyates_1-1659522237602.png

I need a rank for each summed value by material number.

 

Thanks, 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @bptyates 

 

You can create a measure with below DAX

Rank =
RANKX (
    ALL ( 'Final Sales data'[Material number] ),
    CALCULATE ( SUM ( 'Final Sales data'[Invoiced Sales] ) ),
    ,
    DESC
)

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
bptyates
Frequent Visitor

Thank you for the assistance.

v-jingzhang
Community Support
Community Support

Hi @bptyates 

 

You can create a measure with below DAX

Rank =
RANKX (
    ALL ( 'Final Sales data'[Material number] ),
    CALCULATE ( SUM ( 'Final Sales data'[Invoiced Sales] ) ),
    ,
    DESC
)

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors