Help with Switch () Enumlist

I have ColumnA as an ENUMLIST column type with REF Base Type with four different option (values). I have ColumnB that returns the values not picked from the ENUMLIST. Them I have ColumnC with the Switch() function. Let’s say one of the values returned in ColumnB is “Upgrade” (not picked from ColumnA), I want ColumnC to switch it to “Needs Upgrade” , which is it does as long as ColumnB returns only one of the options from CoumnA. If ColumnB returns more than option (not picked from ColumnA) then the Switch () Function doesn’t work. Is there a workaround or what am I doing wrong??

Thank you.
2X_c_c2ca90703d0a94d4cdeaa206c26eeee873e7a1fe.png
2X_b_badebcd50ce4ba1cd56c12c8b9db21cfd5d0f01d.png

Solved Solved
0 6 491
1 ACCEPTED SOLUTION

You’re awesome Steve! Thank you.

2X_3_3c1bc02ba38140948e6e6cdb41bbbe696ad4da23.png

View solution in original post

6 REPLIES 6

Steve
Platinum 4
Platinum 4

Perhaps something like this:

(
  LIST(
    IFS(IN("Upgrade", [ColumnB]), "Needs Upgrade"),
    IFS(IN("Leaks", [ColumnB]), "Needs Repair"),
    ...
  )
  - LIST("")
)

Hey Steve I tried you suggestion but no luck.

Is ColumnB not an EnumList? How is ColumnB given its value? Could you share a screenshot of the expression used?

Thank you for the screenshots!

Try changing the 17a. Needs Attention (Handwashing Station) column type from Text to EnumList.

2X_4_45afc70e34e7ba10db74ddb11ad81e179de9b7d3.png

You’re awesome Steve! Thank you.

2X_3_3c1bc02ba38140948e6e6cdb41bbbe696ad4da23.png

Top Labels in this Space