Hi -
I am trying to add a formula column in Structure to show if a label field is empty.
Currently, I am using this formula, but the case for nothing being selected isn't working. I have tried undefined, "", and "None".
CASE (profile;
undefined; "Profile: Not specified";
"TBD"; "Profile: TBD"
)
profile is a custom label field.
If I set value to TBD, I get the expected response. If the field is empty, I get no response.
Thanks.
Hi @Jeff Thielman ,
I don't believe that undefined is a value CASE() can check against. You can use a default value with CASE(). So, for example:
CASE (profile;
"TBD"; "Profile: TBD";
"Profile: Not specified"
)
This will make the return value "Profile: Not specified" if none of the other conditions are met. I will point out that this will be true if there is some label used that is not part of your list of conditions.
If this does not work, you may try using an IF() Conditional statement in addition to CASE(). Something like:
IF profile = undefined:
"Profile: Not specified"
ELSE:
CASE (profile;
"TBD"; "Profile: TBD"
)
Please let me know if this helps!
Best,
David
Thanks @David Niro
This makes sense. I went with the 2nd option, as I have dozens of other label options. It works perfectly.
Thanks for the advice.
Jeff
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.