Using [List.Where:] supports filtering a larger list to only those elements meeting certain criteria. From the examples in the help, numerical operators and exact string matches are shown:
[List.Where: values={=List}, condition=“value == ‘banana’”, mode=Normal, storeAs=OutputList]
[List.Where: values={=TheArray}, condition=“jPath(value,‘Count’) > 2”, mode=normal, storeAs=Result]
What is the full list of supported operators in the condition clause?
Specifically,
- Is there anything equivalent to LIKE, CONTAINS, BEGINS WITH, etc. for string comparisons?
See the example below (which didn’t work when tried in Report Studio):
[Toggl.ProjectList: properties=Id;Name, storeAsHidden=ProjectList]
[List.Where: values={=ProjectList}, condition=“jPath(value,‘Name’) == ‘ABC Project Name 1’”, storeAs=OrgProjectList] // Returns single value
[List.Where: values={=ProjectList}, condition=“jPath(value,‘Name’) == ‘ABC Project Name 2’”, storeAs=OrgProjectList] // Returns single value[List.Where: values={=ProjectList}, condition=“jPath(value,‘Name’) contains ‘ABC’”, storeAs=OrgProjectList] // Doesn’t work
Thanks.