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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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