I am about at my wit's end thanks to the IN operator not being supported by Microsoft for SharePoint lists. I have a list called Categories with the following sample items:
ID | Item |
1 | Online |
2 | On-site |
3 | Private |
I am pulling those list items into a multi-select LOOKUP column called Categories in a SP list called Events that could appear as follows:
Event | Categories (Lookup) |
Planning Conference | On-site;Private |
Training Event | Private |
Webinar | Online |
Obviously, behind the scenes, the categories are the item IDs when pulled into Power Apps, so the same list appears as follows:
Event | Categories (Lookup) |
Planning Conference | 2;3 |
Training Event | 3 |
Webinar | 1 |
I need to be able to filter the LOOKUP column to show all list items that contain a particular category. In this case, I would want to filter to Private and have only "Planning Conference" and "Training Event" populate.
Please try this:
Filter(Event, 3 in Categories.Id)
Sik
The IN operator is non-delegable with SharePoint lists, so only the first 500 values will be returned.
I don't do it often...you will have to see if it slows it down but 500 is the default. You can go into the settings of the app and raise that 500 to 2,000 if you need to. I have one app I had to do that on.
User | Count |
---|---|
256 | |
108 | |
97 | |
51 | |
39 |