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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dave_Gugg
Helper I
Helper I

Getting ridiculously wrong subtotals in matrix visual

I am trying to build a visual with three rows and no columns.  When I add a couple of values that I am bringing in from a data set, the subtotals are either correct for one or the other, not both:

 

Net Ship D 0.PNG

Above, Net Shipped Units subtotal correctly

Net Ship U 0.PNG

Above, Net Shipped Dollars subtotal correctly.

 

It appears whichever column I add latest has the correct subtotal.  Both of these metrics are coming straight from my fact table - there are no calculations done on them from inside of Power BI, aside from the option to sum them within the matrix visual.

 

However, I next try to add a custom metric, and now I get a number that is even more wrong than 0:

Net Ship U with CM.PNG

 

The calculation for the custom metric is pretty basic:

Net Ship GM% = DIVIDE(SUM(Demand[Ship $]) - SUM(Demand[COGS]),sum(Demand[Net Ship $])) 

What am I doing that is causing these subtotals to aggregate incorrectly?

 

Thank you

 

 

10 REPLIES 10

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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