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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
MoMrCrane
Frequent Visitor

Matrix don't show subtotals of 0

In a Matrix, I only want to see rows where the subtotal is non-zero. If it's negative, I want to see it. If it's positive, I want to see it. If it's 0, I don't want to see it. How do I hide this row for "ARI-004- ARI - Automotive Rentals, Inc." from the matrix?

 

MoMrCrane_0-1730238830349.png

 

8 REPLIES 8
danextian
Super User
Super User

Hi @MoMrCrane 

 

Try this as a separate measure and use it in the visual level filter. You will need to get the  total per customer.

ROUND (
    CALCULATE (
        SUM ( 'table'[column] ),
        ALLEXCEPT ( 'dimension table', 'dimension table'[customer] )
    ),
    2
)

 

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi,

 

I tried the measure and set it to both Not equal to 0 and also greater than .000000001 or less than -.000000001 and both still show customers where the invoice total is 0. Do you have other ideas on how to make these $0 customers not show up in the matrix?

 

MoMrCrane_0-1730759223452.png

 

 

 

danextian
Super User
Super User

Must be a case of how precise your decimals are. I would add a ROUND to the measure being used

ROUND ( [original measure], 2 )

And then in the visual filter, use this updated measure to filter the visual to not equals 0










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

I'm not using a measure, i'm just using the Row Subtotals in Format Visual of the Matrix. How would I create a measure to sum the invoice totals for each customer in a Matrix?  

MoMrCrane_0-1730301962711.png

 

I created the measure 

MoMrCrane_1-1730302104127.png

and set it to show items when the value is not 0 but it doesn't hide the 0 invoice total rows.

MoMrCrane_2-1730302185718.png

 

You need to round the returned value.

ROUND( SUM ('Table'[Column), 2)

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

I rounded the measure then set it as a filter on the Matrix visual but this customer still shows up even though their subtotal is 0.

 

MoMrCrane_0-1730341487284.png

 

Unknown_Var
New Member

Set a filter to not equal or contain 0. 

May need to use between if rounding is involved than set filters to is greater than .00000001 and less than - .000000001.

*Note: Can use this trick for conditional formatting. 

Upwards and Onwards!

Where is the filter for subtotal, so I can set it to 0? If it were the data I can do it, but I don't know how to set a filter for a subtotal of a matrix? 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.