Forum Discussion
Med_Aziz
3 years agoFrequent Visitor
local variable or a separate measure ?
Hello Power BI Community. There's one thing I don't understand in Dax: when I write a Dax measure as follows: measure = var __sum = SUM(FactInternetSales[SalesAmount]) return CALCULATE(__s...
Wilson_
Memorable Member
3 years agoHello Med_Aziz,
Because "variable" is a misnomer; it doesn't work the way you would expect a variable to work in a programming language.
In the future, I would suggest searching for the answer to simple questions like this on your own because you'll likely get an answer much quicker from, say, google than you would from posting on a forum. 😄
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)