Hi
This is a small point but I’d like to understand if there is a different between ‘and’ and ‘or’ when including or excluding items for a given column.
Here’s the code
In this code, I want to select only those with a Status of Done or Awaiting Acceptance. Ignore the rest of the query.
So should it be ‘and’ or 'or?
Table.SelectRows(Keep, each ([Status] = “Done” or [Status] =“Awaiting Acceptance” ) and (not Text.Contains ([Issue Type],“ask”) and ([Keep] =“Keep”)))
Not urgent by any means. But I know many of you will know if it matters.
Status - exclude those statuses
Issue Type - exclude any status that has the string ‘ask’ ie Task, task, sub-task, sub task
Status - exclude the string with ‘est’ ie Test, test
= Table.SelectRows(Keep, each ([Status] <> “Cannot Reproduce” or [Status] <> “Not A Bug” or [Status]<> “Duplicate” or [Status]<>“Work As Designed” or [Status]<>“Work As Designed” or [Status]<>“Cancelled”) and (not Text.Contains([Issue Type],“ask”)) and (not Text.Contains ([Issue Type],“est”)))