Forum Discussion
JorgePereira
6 years agoHelper I
Measure within Calculate
I have a problem here that I can't solve ... I have a measure: Total Acum Plan = CALCULATE ([Total]; Base [Version] = "IF4"; DATESBETWEEN ( Base [Date]. [Date]; ...
edhans
6 years agoCommunity Champion
Use a VAR/RETURN block in your measure.
Total Acum Plan =
VAR Plan = "IF4"
RETURN
CALCULATE(
[Total],
Base[Version] = Plan,
DATESBETWEEN(
Base[Date].[Date],
DATE( 2020, 1, 1 ),
[_Date Report]
)
)