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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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