Forum Discussion
nirvana_moksh
Impactful Individual
7 years agoCreating IF Statement Over Category
Hello All, I am running into an issue trying to write a measure/calc. column which is basically an IF statement that classifies items: Classification = IF([Sum] < 5000000 , "<$5M", IF([Sum] ...
- 7 years ago
vanessafvg
Community Champion
7 years ago
you should be abel to use a switch statement
Classification =
SWITCH (
TRUE (),
[Sum] < 5000000, "<$5M",
[Sum] > 5000000
&& [Sum] <= 10000000, "$5M - $10,",
[Sum] > 10000000
&& [Sum] <= 15000000, "$10M - $15M",
[Sum] > 15000000
&& [Sum] <= 20000000, "$15M - $20M",
[Sum] > 20000000, ">$20M",
BLANK ()
)
SWITCH (
TRUE (),
[Sum] < 5000000, "<$5M",
[Sum] > 5000000
&& [Sum] <= 10000000, "$5M - $10,",
[Sum] > 10000000
&& [Sum] <= 15000000, "$10M - $15M",
[Sum] > 15000000
&& [Sum] <= 20000000, "$15M - $20M",
[Sum] > 20000000, ">$20M",
BLANK ()
)