Forum Discussion
tusmo
8 years agoFrequent Visitor
Confusing DAX measure behavior
Hi, Sorry for the vague variable names but I'd rather not reveal too many details. I'm kind of new to DAX and the problem I'm having is that I have defined a measure that looks like this: SUM...
Anonymous
8 years agoNot applicable
Hi tusmo,
since I don't really see the context of the calc here it's going to be a blind guess based on the syntax of the calc.
I might would try to define the variables at the begining of the calc and then write the SUMX part after the RETURN
Like this:
Measure 3 = VAR var1 = CALCULATE([Measure])
VAR var2 = CALCULATE([Measure 2])
RETURN
SUMX(Table1,var1*var2)Bests,
Barna