Came across this pattern recently and it got me thinking.
Sales YTD V1 =
CALCULATE(
[Total Sales],
DATESYTD('Date'[Date])
)
Sales YTD V2 =
CALCULATE(
CALCULATE(
[Total Sales],
DATESYTD('Date'[Date])
)
)
Both return the same number in every test I ran.
The outer CALCULATE in V2 appears to do nothing. But I can't shake the feeling there's an edge case where it would actually change the result.
Anyone been deep enough in the engine to know for sure?