cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HenryJS
Post Prodigy
Post Prodigy

Matrix Totals

Hi all,

 

Is it possible to turn off totals for particular rows in a matrix? I want those highlighted below OFF and the rest of the totals to still show.

 

 

Capture.PNG

1 ACCEPTED SOLUTION
Ailsa-msft
Community Support
Community Support

Hi @HenryJS 

I created a sample ,maybe you can refer to it

Original data and the effect of adding a measure

Ailsa-msft_0-1620981455710.png

Ailsa-msft_1-1620981455712.png

You can see that the subtotal for Country=UK is removed .But the grand total is still kept .

Create a measure like :

Measure =

IF (

    ISINSCOPE ( 'Table'[Country] ),

    IF (

        MAX ( 'Table'[Country] ) = "UK",

        IF ( ISINSCOPE ( 'Table'[Store] ), SUM ( 'Table'[Price] ), BLANK () ),

        SUM ( 'Table'[Price] )

    ),

    SUM ( 'Table'[Price] )

)

Then use the measure replace the value in Visual Values .

Ailsa-msft_2-1620981455714.png

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Ailsa-msft
Community Support
Community Support

Hi @HenryJS 

I created a sample ,maybe you can refer to it

Original data and the effect of adding a measure

Ailsa-msft_0-1620981455710.png

Ailsa-msft_1-1620981455712.png

You can see that the subtotal for Country=UK is removed .But the grand total is still kept .

Create a measure like :

Measure =

IF (

    ISINSCOPE ( 'Table'[Country] ),

    IF (

        MAX ( 'Table'[Country] ) = "UK",

        IF ( ISINSCOPE ( 'Table'[Store] ), SUM ( 'Table'[Price] ), BLANK () ),

        SUM ( 'Table'[Price] )

    ),

    SUM ( 'Table'[Price] )

)

Then use the measure replace the value in Visual Values .

Ailsa-msft_2-1620981455714.png

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

amitchandak
Super User IV
Super User IV

@HenryJS , You can make them blank based on condition

 

using isfiltered or isinscope https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors