Forum Discussion
wpf_
Post Prodigy
5 years agoHow can I add two variables and return the sum?
I have a measure that I want to add two variables: Var Week1 = Calculate([traveltime minutes], Dateadd(table[date], -7, day)) Var Week2 = Calculate([traveltime minutes], Dateadd(table[date], -14...
lkalawski
Resident Rockstar
5 years agoHi wpf_
Please add All to the measure codes:
Var Week1 = Calculate([traveltime minutes],All(table), Dateadd(table[date], -7, day))
Var Week2 = Calculate([traveltime minutes], ALL(table), Dateadd(table[date], -14, day))
_______________
If I helped, please accept the solution and give kudos! 😀