Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

dax switch

Hello, 
I would like to create a measure to workout the amount based on a currency as follows

Converted value = 

switch(

selectedvalue('Currency'[Code] = "GBP", valueMeasure * ColumnRateGBP

,selectedvalue('Currency'[Code] = "USD", valueMeasure * ColumnRateUSD

)

 

I do not seem to be able to get to ColumnRateGBP value as the dax code complains about it. It is a column in model.

Any suggestions please?

Thank you

3 Replies