Forum Discussion
Help with TOTALYTD Formula
- Anonymous2 years ago
Hi finsmaniac1551 ,
Regarding your question, please make sure that the table data is similar to the following data.
The formula works well.
Or you can leave out the 'TotalYTD' function for the same purpose.
Measure 2 = CALCULATE(SUM('Table'[Value]), FILTER(ALL('Table'[Month]), AND( YEAR('Table'[Month]) = YEAR(MAX('Table'[Month])), 'Table'[Month] <= MAX('Table'[Month]) ) ))If in doubt, please share the .pbix file without sensitive data.
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi finsmaniac1551 ,
Regarding your question, please make sure that the table data is similar to the following data.
The formula works well.
Or you can leave out the 'TotalYTD' function for the same purpose.
Measure 2 =
CALCULATE(SUM('Table'[Value]),
FILTER(ALL('Table'[Month]),
AND(
YEAR('Table'[Month]) = YEAR(MAX('Table'[Month])),
'Table'[Month] <= MAX('Table'[Month])
)
))
If in doubt, please share the .pbix file without sensitive data.
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.