AND condition

tatiya
New Member

Is there anything wrong in this statement. I am using this in Slice to filter out Rows when both condiions are TRUE. Status is ENUMLIST.

AND([Route] = โ€œYelahankaโ€, ANY( [Status]) = โ€œWonโ€)

This conditon is not working for me.

0 2 376
2 REPLIES 2

Steve
Platinum 4
Platinum 4

Note that in AppSheet, if the left-side operand value of an is-equal-to (=) or is-not-equal-to (<>) operator is blank, the expression will be TRUE regardless of the right-side operand.

In your expression, if [Route] is blank, [Route] = โ€œYelahankaโ€ is TRUE; likewise, if [Status] is blank, ANY( [Status]) = โ€œWonโ€ is TRUE.

The simplest way to avoid this behavior is to put the non-blank value on the left side:

AND(โ€œYelahankaโ€ = [Route], โ€œWonโ€ = ANY( [Status]))

thanks will try didnt know the " " values can be placed in left of = sign.

Top Labels in this Space