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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Crimma
New Member

MTD value shows last month data because this month there is no data for this type

Hi all! I have a problem with the MTD calculation. My data exist of stoptime of the machine due three reasons: "Te laat geleverd", "Te laat besteld" and "niet aanwezig". This month the reason "te laat besteld" didn't occured yet. But in the TOTALMTD calculation PBI shows not 0, but shows the value of last month, 1,96. But this 1,96 is not included in the total calculation in the table:

Crimma_3-1679922085695.png

8,67+9,29=17,96. So the 1,96 is ignored. 

 

So the problem is that PBI shows not a 0, but show the value of last month. Does anyone have an idea how to solve this? Thank you 🙂

 

Crimma_4-1679922193486.png

 

 

 

 

 

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @Crimma ,

 

Please try this measure:

new_MTD stilstand in uur =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[Reason],
        "total", [MTD stilstand in uur] 
    ),
    [total]
)

Or

New_MTD stilstand in uur = SUMX(VALUES(Table[Reason]), [MTD stilstand in uur])

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

You can refer to the following documents that may be helpful to you:

sum error - Microsoft Power BI Community

Dealing with Measure Totals - Microsoft Power BI Community

Fixing Incorrect Totals Using DAX Measures In Power BI | Enterprise DNA

How to Make Measures Total Correctly in Power BI Tables - ArcherPoint

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors