Hi @Anonymous ,
You do not actually need it if you are filtering a collection as the filter is processed "locally"
Filter(
YourCollection,
Or(
Len(cb_Validation.Selected.Value) = 0,
Inspected.Value in cb_Validation.SelectedItems
)
)
You can also shorten your code a bit
Or(
Len(cb_Validation.Selected.Value) = 0,
Inspected.Value = First(cb_Validation.SelectedItems).Value,
Inspected.Value = Index(cb_Validation.SelectedItems,2).Value,
Inspected.Value = Index(cb_Validation.SelectedItems,3).Value,
Inspected.Value = Index(cb_Validation.SelectedItems,4).Value
)
I also have another approach in this blog of mine which can also be used directly on a list with Delegation only limited to the items returned on each of your item choices (it will work fine as long the total output is under this)
If(
Len(cb_Validation.Selected.Value) = 0,
YourCollection,
Ungroup(
ForAll(
cb_Validation.SelectedItems As aSel,
Filter(
YourCollection,
Inspected.Value = aSel.Value
)
),
"Value"
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps