Forum Discussion

abeirne's avatar
abeirne
Helper II
4 years ago
Solved

SWITCH function help (does not support comparing values of type true/false)

Hi I have a measure that is supposed to be determining whether certain values are met, and should sort them into either tiers 1, 2, 3, or 4. I am getting an error that says the switch function does not support comparing values of type text with values of type true/false. Could someone explain what I am doing wrong? Thank you. 

SA Anc/Car =
IF(
[ANC $/ Car SA] >= 43.50,
Switch( [ANC $/ Car SA],
[ANC $/ Car SA] <= 49.49, 1,
[ANC $/ Car SA] >= 49.50 && [ANC $/ Car SA] <= 55.99 , 2,
[ANC $/ Car SA] >= 56 && [ANC $/ Car SA] <= 65.99, 3,
[ANC $/ Car SA] >= 66.00, 4 , 0)
,0)

3 Replies