Forum Discussion
ellynneu
2 years agoNew Member
DAX Measure with Parameter
Hello, I am struggling to write the correct DAX measure, most likely due to the measures referencing a paramater. Here is my current data: I have Shift (static within table 'Shift Hours') and a ...
- 2 years ago
I figured it out! I had to call the parameter values as the variables.
I used the following measure:Var sone = SELECTEDVALUE('577_1Active'[577_1Active])Var stwo = SELECTEDVALUE('577_2Active'[577_2Active])Var sthree = SELECTEDVALUE('577_3Active'[577_3Active])Var sfive = SELECTEDVALUE('577_5Active'[577_5Active])returnif(sone=1&&stwo=1&&sthree=1&&sfive=1,360,0)
ellynneu
2 years agoNew Member
I figured it out! I had to call the parameter values as the variables.
I used the following measure:
Var sone = SELECTEDVALUE('577_1Active'[577_1Active])
Var stwo = SELECTEDVALUE('577_2Active'[577_2Active])
Var sthree = SELECTEDVALUE('577_3Active'[577_3Active])
Var sfive = SELECTEDVALUE('577_5Active'[577_5Active])
return
if(sone=1&&stwo=1&&sthree=1&&sfive=1,360,0)