Forum Discussion
Anonymous
4 years agoNot applicable
Function SWITCH TRUE doesn't work
Hi! I need some help. I use the SWITCH function but with the same number, i don't have the same result and i don't known why. SWITCH( TRUE(), M <= 100 , "1", M <=500, "2", M <=1000, "...
- Anonymous4 years ago
Thanks, I found why it doesn't work.
It's because M was a measure and the M Score was a colomn. When i changed M Score in colomn. It's worked perfectly.
amitchandak
4 years agoSuper User
Anonymous ,Both seems fine, If you are using a measure this should work fine as measure and if you using a column (M) this work fine as new column
SWITCH(
TRUE(),
[M] <= 100 , "1",
[M] <=500, "2",
[M] <=1000, "3",
[M] <=1500, "4",
[M] > 1500,"5"
)
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Anonymous
4 years agoNot applicable
Thanks, I found why it doesn't work.
It's because M was a measure and the M Score was a colomn. When i changed M Score in colomn. It's worked perfectly.