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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Custom Matrix subtotals

Hi folks!

 

I want to achieve this report.

ankitpac_0-1717669852788.png

Below is the data I have coming from one of the db using ImportQuery.


 ankitpac_0-1717670772904.png

 

 

Difference formula will be SR count from 2024 -  SR count from 2023

%change formula will be (SR count from 2024 -  SR count from 2023) /SR count from 2024 *100

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

You can create new table with current row category value and custom subtotal that you want to add to the matrix and use this field as matrix row to replace the raw table field.

Then you can write a measure formula to check the current row content value and use this as condition lookup and summary original table values, and return the custom expression result if current row contents equal to the new custom values.

You can also take a look at the following blog if it helps for your scenario:

Creating a “custom” or “hybrid” matrix in PowerBI  
Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
mshao
Helper II
Helper II

Hi, guys, I want to custom the name of subtotal, just like the case here want to show the subtotal name as "Alaska land tour total" or "Death Total". But now, I can only set one name for different type. Do you guys have any ideas?

Anonymous
Not applicable

HI @Anonymous,

You can create new table with current row category value and custom subtotal that you want to add to the matrix and use this field as matrix row to replace the raw table field.

Then you can write a measure formula to check the current row content value and use this as condition lookup and summary original table values, and return the custom expression result if current row contents equal to the new custom values.

You can also take a look at the following blog if it helps for your scenario:

Creating a “custom” or “hybrid” matrix in PowerBI  
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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