Forum Discussion
Kerry_M
Helper II
7 years agoWhy does result change when using VAR vs MEASURE in another measure?
I am curious as to why a formula using a measure caculates differently from a formula using a VAR with the exact same definition as the measure. There must be something different about the way VAR ar...
- 7 years ago
My guess is context transition caused by the hidden calculate inside a measure.
Try wrapping the var code min(order[orderdate]) in a calculate, as calculate(min(order[orderdate]))
context transition is a big and complex topic
MattAllington
Community Champion
7 years agoMy guess is context transition caused by the hidden calculate inside a measure.
Try wrapping the var code min(order[orderdate]) in a calculate, as calculate(min(order[orderdate]))
context transition is a big and complex topic
- Kerry_M7 years ago
Helper II
Thanks so much Matt. That worked perfectly!