Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Including Switch/IF condition in measure

  Dear All,   I want Use according country my value has to divide with the given currency value, Switch and IF both are not Working In Measure Please find the Attached screenshot:    
  • rajulshah's avatar
    6 years ago

    Hello Anonymous,

    You can try below:

    Measure = 
    VAR CurrencyValue = CALCULATE(MIN(Table[Value]),Table[Country]="SINGAPORE")
    RETURN DIVIDE(SUM('Append-France,Greece,Monaco'[Base Amount])/CurrencyValue,1000000)

    Hope this helps.