Incorrect subtotal of a MTD Sales table

Hi, I need some help with a beginner question:

I calculated the month-to-date sales (=TOTALMTD( [Total Sales], Calendar[Date])) … seems ok
I calculated the prior year MTD sales (=CALCULATE([Total Sales MTD], DATEADD(Calendar[Date],-1,YEAR)) … seems ok

My issue starts when I put the measures in a table by day. The individual rows are all fine but the total of the column gives me the MTD up to today (12.3.) and the MTD LY for the full month. I.e. the MTD LY Total does is not the sum of the first 12 days but the full 31 day total.
How can this be fixed best?

Any help is much appreciated.

Regards
Franz

Hi @franz.lurvink,

Welcome to the Forum!

I think this article will help you work through it.

.
If you need further assistance please provide a sample PBIX, so members can better assist you.
I hope this is helpful

1 Like

Hi Melissa

I kept trying to fix it in the measure … that was the tip I needed.
Thanks a million.

Regards
Franz

1 Like