Column Coditions

Hi,
Seeking advise here. I can’t seem to work around with the exact expression:

Column A is text column with a valid_if statement {“boy”,“girl”,“none”},
Column B is also a text column with a valid_if statement {“one”,“two”,“three”} and a show_if condition OR([A]=“boy”,[A]=“girl”) and all just works fine but here’s where I can’t move forward because additionally, I also want column B to just put in “NA” remark whenever a user chooses “none” in column A. I tries this expression in the formula [A]=“none”.“NA” but not working.

Thanks in advance for any help.

BR.

Try

IFS( [A]=“boy”, TRUE, [A]=“girl”, TRUE, [A]=“none”, “N/A”)

2 Likes

Thank for this @Douglas_English, unfortunately it broke my app… :laughing: :laughing:
it just converted my column into a yes/no type. :laughing:

1 Like

Valid If expression for column B:

IF(
  IN([A], {"boy", "girl"}),
  {"one", "two", "three"},
  {"N/A"}
)

Initial value expression for column B:

IFS(
  IN([A], {"boy", "girl"}),
    "N/A"
)

Editable? expression for column B:

IN([A], {"boy", "girl"})
2 Likes

Tried 'em @Steve, but didn’t work as expected. It still didn’t fill in the “N/A” output in my source table. Thanks anyway.

@Steve,
I believe a slight mod is needed for your Initial Value expression as per @Jerome_Canete’s description

IFS(
  IN([A], {"none"}),
    "N/A"
)
2 Likes

Whoops! Thanks, @LeventK!

1 Like

Wow, nice… that did just the trick. Thanks @LeventK

Another thing, need some more help with same scenario but instead of text type columns, I’d like to work on enum and enumlist columns. Thanks in advance.

1 Like

Thanks @Jerome_Canete, but you shall thank to @Steve actually, mine was just an eye-catch, that’s all. So kudos to him.

1 Like

Of course, big thanks first of all to @Steve:+1: :+1:

1 Like

Teamwork, friends. :slight_smile:

4 Likes