Forum Discussion
Nino1
3 years agoFrequent Visitor
Creating Calculation using Selected Value function
Hello Everyone, It's not been a long time I started using Power BI and need your help. I have two measures: "sum of portfolio with nominal values" and "sum of portfolio with adjusted currency value...
- Anonymous3 years ago
Use the below dax it will work
VAR SelectedValue = SELECTEDVALUE(CurrencyAdjustment)
RETURN
SWITCH(
SelectedValue,
"Yes", SUM('Portfolio'[AdjustedCurrencyValue]),
"No", SUM('Portfolio'[NominalValue])
) - 3 years ago
Thank you very much, it works !
Anonymous
3 years agoNot applicable
Use the below dax it will work
VAR SelectedValue = SELECTEDVALUE(CurrencyAdjustment)
RETURN
SWITCH(
SelectedValue,
"Yes", SUM('Portfolio'[AdjustedCurrencyValue]),
"No", SUM('Portfolio'[NominalValue])
)
Nino1
3 years agoFrequent Visitor
Thank you very much, it works !