Why a Boolean expression is accepted in a Show_If but not if I include it in an if()

I do NOT get an error when my Show_If is Table[Field] (Boolean), but I get an error if I use it as if( Table[Field], true, false). Thoughts?

0 4 355
4 REPLIES 4

Steve
Platinum 4
Platinum 4

Itโ€™s a limitation in the syntax checker. It has a lot of flaws like that. Both of your expressions are bad.

I thought my Table[Field] would return a true or false since my [Field] is a Boolean field in my Table. Iโ€™m using โ€œTableโ€ as a placeholder of the name of my Table and โ€œFieldโ€ as the placeholder of my Boolean field. My actual syntax in the Show_If is Filtering[Show Name] since Filtering is the name of my Table and โ€œShow Nameโ€ is the name of my Boolean field.

What syntax can I enter in the Show_If to get the true or false stored in my Filtering[Show Name]?

Thank you.

Table[Column] always returns a List type.

You might try ANY(), or INDEX(), or LOOKUP() ,which is just ANY(SELECT())

Thank you! I used the following and it is exactly the behavior I wanted.

IF( IN( CONTEXT( โ€œViewโ€), LIST(โ€œProficiency Funnelโ€, โ€œProficiency Resultsโ€) ), ANY ( SELECT(Filtering[Show Name], [Email] = USEREMAIL() ) ), true )

Top Labels in this Space