Forum Discussion
misharaina
4 years agoAdvocate I
Using the parameter value in a measure
Using the parameter value in the measure doesn't work. Is this the standard behaviour? Vol/mix new = IF( SELECTEDVALUE('Parameter'[Parameter1]) = "Customer" && HASONEVALUE('CustomerTable'[Cust...
- Anonymous4 years ago
Hi,
No just declare it as a variable before the calculation
Vol/mix new =var valparameter=SELECTEDVALUE('Parameter'[Parameter1])var result =if(HASONEVALUE('CustomerTable'[Customer]),
[Vol/Mix Impact],
SumX( ADDCOLUMNS(SUMMARIZE('Segment (Control)','Segment (Control)'[Segment]), "Vol/Mix New2", Calculate([Vol/Mix Impact])), [Vol/Mix New2])))returnresult
misharaina
4 years agoAdvocate I
I created a numeric column inside the parameter and it works now. Thanks for your help in letting me know that it was essential to create a separate variable for the selected parameter value.