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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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