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.
Anonymous
4 years agoNot applicable
i can't share the data but i can show you some result.
| id | M | Score |
| 1 | 1175,02 | 3 |
| 2 | 1174,4 | 4 |
| 3 | 1159,96 | 3 |
| 4 | 1159,9 | 4 |
| 5 | 39,6 | 1 |
| 6 | 257,3 | 2 |
| 7 | 520,1 | 2 |
| 8 | 178,95 | 1 |
For calculate M , i use this :
SUM('Commandes'[CA Marchandise TTC]),
But the switch function doesn't work correctly.
amitchandak
4 years agoSuper User
Anonymous , can check the data type or M, it should be number - Decimal ?
- Anonymous4 years agoNot applicable
the column M is General Number
the column CA Marchandise TTC is devise
and the column Score is Standard