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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
herbemischung
Resolver I
Resolver I

create sum rank measure

Hello,

 

I am almost done with a report, but I have an Issue I can't figure out - and it makes me cracy so I hope I'll find help here:

 

There is a Table (Statistics) with the following columns: Customer / Revenue  /Date

 

I work with a few measures:

Revenue_actual_year= totalytd(sum(Statistics[Revenue]);Statistics[Date].[Date])

Revenue_past_year = CALCULATE([Revenue_actual_year];PREVIOUSYEAR(Statistics[Date].[Date]))

Delta_Revenue = Revenue_actual_year - Revenue_past_year

 

There is also a Report showing the Top 30 and Bottom 30 Customers in terms of Delta_Revenue.

 

But I am not able to create a Table that looks like this

 

Revenue (total) / Delta_Revenue (total)

Revenue (for all Customers within Delta_Revenue Top 30) / Delta_Revenue (for all Customers within Delta_Revenue Top 30)

Revenue (for all Customers within Delta_Revenue Bottom 30 / Delta Revenue (for all Customers within Delta_Revenue Bottom 30)

Revenue (Rest - neither Top 30 nor Bottom 30) / Delta Revenue (neither Top 30 nor Bottom 30)

 

I have an Excel - Sheet that does the trick, but its a little bit complicated and takes time, so I would prefer to have a power bi solution for this issue.

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi herbemischung,

 

As a general suggestion, you may create a rank column to achieve the ranking in every category using DAX formula below:

 

Rank by Category:
Rank = RANKX(FILTER(Table1, Table1[Category] = EARLIER(Table1[Category])), RANKX(ALL(Table1), Table1[Value]), , ASC, Dense)

Then you can create measure based on the result of rank.

 

Regards,

Jimmy Tao

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.

Top Solution Authors