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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors