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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. 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.

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.