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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Total is less than the actual sum

Hi all!

My ultimate goal is to make a card showing a MTD average. I made a formula but it shows a value that is too low. The formula works well in countless other reports. 

 

 

Yield MP Recycling % MTD Avg = if ( EOMONTH(max('Date'[Date]),0)=EOMONTH(today(),0),
(   TOTALMTD([Yield MP Recycling %],DATEADD(DATEADD('Date'[Date],0,Month),-1,Day))/day(today()-1)   ),

(   TOTALMTD([Yield MP Recycling %],DATEADD(DATEADD('Date'[Date],0,Month),0,Day))/ day(EOMONTH(max('Date'[Date]),0))   
))

 

 

I digged deeper and found that the problem came from "Yield MP Recycling %". When I use this measure in a table and I use a month filter I can clearly see that the total is lower than the addition of the indiviual cells. When I use a card this is the total that the card is pulling which leads to the mistake.

 

Yield MP Recycling % = ([Actual Produced Quantity in Weight for Dry Cleaned]+[Actual Produced Quantity Input_Output for MobilzaunfussAnlage 1]+[Actual Produced Quantity in Weight for Washing 1])/([Actual Raw Material Qty In KG for Shredder])

2019-02-18 14_17_11-Genthin Report v2.0 - Power BI Desktop.png

 

How can I correct this problem?

 

I read @Greg_Deckler  thread on the topic but I believe that this is a different issue.

 

Thank you very much for the help!

 

Warm regards,

Alain

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

Could you please offer a sample data to have a test if possible?

 

Regards,

Daniel He

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

Helpful resources

Announcements
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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.