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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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