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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to hide row with zero in the total column of visual matrix

Hello,

I created a visual matrix in Power BI. Few of the rows have zero as data. I would like to know a way to hide these. The matrix is as below:

DepartmentUSACanadaUKFranceTotal
Accounting10113
Finance00000
Dev10113
Manufacturing10113
Total 30339

 

This is just a sample there are multiple columns and rows that add to zero. Is there a way to filter the zero out from the totals column that is automatically calculated when I make the matrix viz.?

 

Thanks

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

You could create a measure

Capture1.JPG

Measure =
VAR total_ =
    CALCULATE (
        SUM ( 'Table'[Value] ),
        FILTER (
            'Table',
            'Table'[Value] <> 0
        )
    )
RETURN
    IF (
        ISINSCOPE ( 'Table'[Country] ),
        IF (
            ISINSCOPE ( 'Table'[Department] ),
            SUM ( 'Table'[Value] ),
            total_
        ),
        total_
    )

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

You could create a measure

Capture1.JPG

Measure =
VAR total_ =
    CALCULATE (
        SUM ( 'Table'[Value] ),
        FILTER (
            'Table',
            'Table'[Value] <> 0
        )
    )
RETURN
    IF (
        ISINSCOPE ( 'Table'[Country] ),
        IF (
            ISINSCOPE ( 'Table'[Department] ),
            SUM ( 'Table'[Value] ),
            total_
        ),
        total_
    )

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

You should be able to create a measure that emulates the Total calculation and then filter on that.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for the reply. I tried the below filter. EBITDA is the measure but it did not work.

 

EBITDA.PNG

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Kudoed Authors
Users online (3,676)