Forum Discussion
Advanced filtering in power query - multiple conditions
- 5 years ago
Please try this instead
= Table.SelectRows(#"Added Custom", each not ([public.sale_order.confirmation_date] = null and [state] = "cancel"))
Pat
Please try this instead
= Table.SelectRows(#"Added Custom", each not ([public.sale_order.confirmation_date] = null and [state] = "cancel"))
Pat
- zenisekd5 years agoSuper User
You are the boss, sir 🙂
However, do you think, that the user interface window just doesn't function properly (giving incorrect code), or am I doing something wrong?Thanks
- DU1231 year agoNew Member
Thanks. I have been having the same problem.
I have a table where Number column and Amount column have numerical values. If both values are zero ("0"), I want them filtered out. But if one of them has a non-zero value, I want the line retained. Below is the advanced filter.
The Advanced Filter creates the following, which does not give me the desired result:
= Table.SelectRows(#"Expanded MasterTBL", each [Number] <> 0 and [Amount] <> 0)
Using the solution above, I've altered the filter to be (changes highlighted):
= Table.SelectRows(#"Expanded MasterTBL", each not ([Number] = 0 and [Amount] = 0))
This solution works. Thanks 🙂