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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
spagad6263
Post Patron
Post Patron

How to add Grand total to Matrix?

Hi,

 

I've below matrix and with Subtotal in below picture. I would like to add another row, which show % Total

spagad6263_2-1738631431250.png

It should shows like 

%Total    35%.

 

Can you suggest how I could add this new row? I am wondering if this can be added to Grand Total row? Thanks

 

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

One of ways to achieve this is to configure the format-setting of matrix visualization under "Row subtotal" section, like below image.

Please check the below Link (Microsoft Learn), picture, and the attahced pbix file.

 

Matrix visual format settings - Power BI | Microsoft Learn

 

 

Jihwan_Kim_1-1738641989781.png

 

 

Jihwan_Kim_0-1738641975095.png

 

 

Count measure: = 
IF ( NOT ISINSCOPE( result[category] ), BLANK (), SUM ( result[count] ) )

 

 

 

Stage measure: = 
SWITCH (
    TRUE (),
    ISINSCOPE ( result[Result] ), BLANK (),
    ISINSCOPE ( result[category] ), FORMAT ( SUM ( result[stage_count] ), "#,#0" ),
    FORMAT ( SUM ( result[count] ) / SUM ( result[stage_count] ), "#0.00%" )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
spagad6263
Post Patron
Post Patron

Thanks so much for the help. I will give it a go.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

One of ways to achieve this is to configure the format-setting of matrix visualization under "Row subtotal" section, like below image.

Please check the below Link (Microsoft Learn), picture, and the attahced pbix file.

 

Matrix visual format settings - Power BI | Microsoft Learn

 

 

Jihwan_Kim_1-1738641989781.png

 

 

Jihwan_Kim_0-1738641975095.png

 

 

Count measure: = 
IF ( NOT ISINSCOPE( result[category] ), BLANK (), SUM ( result[count] ) )

 

 

 

Stage measure: = 
SWITCH (
    TRUE (),
    ISINSCOPE ( result[Result] ), BLANK (),
    ISINSCOPE ( result[category] ), FORMAT ( SUM ( result[stage_count] ), "#,#0" ),
    FORMAT ( SUM ( result[count] ) / SUM ( result[stage_count] ), "#0.00%" )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors