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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
diegoleonm
Frequent Visitor

Editing the Row Subtotal Aggregate Calculation on Matrix Table

I have a matrix table were I get the top five accounts for a quarter using the rank system built in PBI, the issue I'm having is that the [revenue_share] row subtotal is giving me the average of the percentages of the top five accounts, when what I need is the sum of the percentages (which would be the value under [Top 5 rev share] column. Is there a way to get the sum of precentages in the row subtotal instead of the averages?

Screenshot 2023-05-12 at 1.05.57 PM.png

1 ACCEPTED SOLUTION

This worked! The only change that I did was this:

rev_share_adj = Sumx(Values(Table[revenue_share]), Table[revenue_share])

View solution in original post

4 REPLIES 4
diegoleonm
Frequent Visitor

I have another question @amitchandak .

 

How can I sort first by year-quarter, and then by recognized revenue?

 

Basically what I need is for the order of Y-Q to be ascending and the recognized revenue to be descending once the matrix is expanded.

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@diegoleonm , You need a measure like

 

Sumx(Values(Table[Rank]), [Revenue Share])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

This worked! The only change that I did was this:

rev_share_adj = Sumx(Values(Table[revenue_share]), Table[revenue_share])

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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