Forum Discussion
Lotfi96
2 years agoRegular Visitor
Using Calculate function with special conditions
Hello, I ran in a bit of an issue while trying to write a measure. Here's an example of currencies. Country Currency USA USD UK GBP What I'm trying to do is calculate the sum ...
ChiragGarg2512
2 years agoSolution Sage
Create a measure using if statement,
Sum = if(values(Data[Currency] <> "USD", Calculate(sum(data[sales])/1000), calculate(sum(data[sales])/10))
This easure can be wrong but it can give an idea on how to proceed.
Or, SWITCH statement can also be used.