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
DarylRob
Helper I
Helper I

Creating a ranking system for specific demographics and metrics

I have a table as below and what I want to do is to be able to create another table with all distinct asset classes and the total revenue and then a ranking based on that total revenue and i've also got a slicer on my page for region that when selected a specific region it would change the totals and rankings based just on that region selected but if no region selected then it would work for all. Hopefully that makes sense, but i'm struggling to get any sort of DAX together to make it work Asset Class Revenue 

 

Asset Class

RevenueRegion
Equity100US
PE100Europe
Equity200Asia
Credit50US
Credit
25US

 

 

This is how i envision the output table to look, this would change once a region is selected as well...

 

Asset Class Total Revenue

Ranking
Equity3001
Credit753
PE1002

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DarylRob ,

I created a sample pbix file(see the attachment), please check if that is what you want.

Total Revenue = SUM('Table'[Revenue])
Rank = 
RANKX (
    ALLSELECTED ( 'Table'[Asset Class] ),
    CALCULATE ( [Total Revenue] ),
    ,
    DESC,
    DENSE
)

yingyinr_0-1666598802918.png

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @DarylRob ,

I created a sample pbix file(see the attachment), please check if that is what you want.

Total Revenue = SUM('Table'[Revenue])
Rank = 
RANKX (
    ALLSELECTED ( 'Table'[Asset Class] ),
    CALCULATE ( [Total Revenue] ),
    ,
    DESC,
    DENSE
)

yingyinr_0-1666598802918.png

Best Regards

This perfect, thank you so much

johnt75
Super User
Super User

You could create a couple of measures like

Rev = SUM('Table'[Revenue])

Rank = 
var rev = [Rev]
return CALCULATE( 
    RANKX( 'Table', [Rev], rev ),
    ALLSELECTED('Table'[Asset Class] )
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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