Forum Discussion

JoshuaOlayori's avatar
JoshuaOlayori
New Member
3 years ago
Solved

Conditional Column

I have three columns filled with 'yes/no' responses. I want to create a conditional column based on these three columns such that if there are three 'yes', I'll get an output 'this, this, and that'. ...
  • v-jingzhang's avatar
    v-jingzhang
    3 years ago

    Hi JoshuaOlayori 

     

    You can add a custom column with below code. You can add multiple "else if ... then ..." in the if condition statement for the other six outcomes.

     

    Example:

    if condition1 then outcome1 

    else if condition2 then outcome2

    else if condition3 then outcome3

    else if ... then ...

    else ...

    if {[Streaming TV],[Streaming Movies],[Streaming Music]} = {"No","No","No"} then "no streaming" else if {[Streaming TV],[Streaming Movies],[Streaming Music]} = {"Yes","Yes","Yes"} then "TV, Movies, Music" else ""

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.