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
Anonymous
4 years agoNot applicable
hat do you want to check on sgment ?
- misharaina4 years agoAdvocate I
The parameter is composed of dimensions. The parameter column has the following values -
Parameter1Products
Customers
Segments
I want to check if the "segment" is selected or not.
- Anonymous4 years agoNot applicable
Ok more complicatd. Can you send me a sample of your datas ?