Forum Discussion
daxreport
3 years agoFrequent Visitor
VAR Statement and Time Intelligence
Hello, I have an issue with using time intelligence function and VARIABLES. Below code works fine: PY Volume =
CALCULATE ( [BlendedQty], SAMEPERIODLASTYEAR ( DIM_CALENDAR[Date] ) ) ...
some_bih
Community Champion
3 years agoHi daxreport variables in DAX are simply lazy evaluation processed, meaning once calculated it is fixed value / amount. So when you want to reuse it in CALCULATE for context transition, this is what CALCULATE DO, then results could be unexpected (your second measure with VAR).
Did I answer your question? Mark my post as a solution! Kudos Appreciated!