Forum Discussion
Anonymous
6 years agoNot applicable
IF-CALCULATE
Hello All, I want to filter with rating as per below Total Sales < 8000 = 1 Total Sales 8000 to 10000 = 2 Total Sales > 10000 = 3 I have created new column with follwing filter and it...
az38
6 years agoCommunity Champion
Hi Anonymous
try SWITCH()
Measure =
var _SumPrice = CALCULATE(SUM(Trans[Price.PRICE]),ALLEXCEPT(Trans,Trans[CUSTNUM1]) )
RETURN
SWITCH(TRUE(),
_SumPrice < 8000 , "1",
_SumPrice > 8000 && _SumPrice < 10000, "2",
"3"
)