I have the following slice filter expression:
In([HazardID], (HazardSelected[HazardID], [HazardSelected]=โTRUEโ))
It works fine, but if in all rows, [HazardSelected] = โFALSEโ (ie, no columns contain the value, โTRUEโ) the slice returns all table rows. Is this normal behavior?
Your IN() expression is invalid.
Try adding SELECT to your formula.
Adding SELECT did the trick. Not sure why it filtered properly without having a proper select statement.
Yeah, falls into a weird technical hole.
The first part of the SELECT() - thatโs missing the select - is a formula for a list:
(HazardSelected[HazardID],
So thatโs valid.
And the second argument of SELECT() is to determine if the list the SELECT() is providing should be restricted to unique recordsโฆ so since [HazardSelected]=โTRUEโ is a true/false statementโฆ itโs valid.
If the formula parsing was a little tighter on AppSheetโs end, it might have cought the missing SELECT. (But itโs fine as it is! DON"T change it. (^_^) Itโs right in that Goldilocks zone, just enough wiggle room when you need it. )
Thatโs all very good information to know. Thanks
User | Count |
---|---|
42 | |
29 | |
25 | |
23 | |
13 |