Forum Discussion
andrewb95
Helper II
4 years agoMTD - Calculation not working
Please see the image above, I have attempted to calculate the count for the month to date as you can see. I would expect on the 15/09 as I am perfoming this calculation it should return 145 add...
andrewb95
Helper II
4 years agoHi Amit,
When creating a relationship to the date table (which I have updated as indicated above) the value actually changes to null so this is very unusual.
v-kkf-msft
Community Support
4 years agoHi andrewb95 ,
I could not reproduct your problem. Maybe you can try the following measures:
Measure1 =
CALCULATE(
SUM('Total - Count'[Count]),
ALL('Total - Count'[Date]),
DATESMTD('Total - Count'[Date])
)Measure2 =
CALCULATE (
SUM ( 'Total - Count'[Count] ),
FILTER (
ALL ( 'Total - Count' ),
'Total - Count'[Date] <= TODAY ()
&& 'Total - Count'[Date] <= MAX ( 'Total - Count'[Date] )
&& FORMAT ( 'Total - Count'[Date], "yyyymm" )
= FORMAT ( MAX ( 'Total - Count'[Date] ), "yyyymm" )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.