Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Using Switch

I am trying to add a new measure to a table and using data from another column to standardize some fields.

This is what I have an keep getting errors

 

Status = SWITCH(FRAM[elgibility},'Free', "Free",'Reduced', "Reduced",'Paid')
TIA
  • Try this 

    Status =

    SWITCH(

        FRAM[eligibility],

        "Free", "Free",

        "Reduced", "Reduced",

        "Paid", "Paid",

        "Other" -- optional default value

    )

1 Reply

  • Chanty4u's avatar
    Chanty4u
    Frequent Visitor

    Try this 

    Status =

    SWITCH(

        FRAM[eligibility],

        "Free", "Free",

        "Reduced", "Reduced",

        "Paid", "Paid",

        "Other" -- optional default value

    )