Hi all,
I'd be really grateful if you help me with an issue I have.
I'm trying to filter a gallery based on two comboboxes. Both of the comboboxes get their data from a SP list Choices columns with "Allow multiple selections" option enabled.
I tried so many formulas found here but I always get different error messages (Invalid argument type - Tables/Text cannot be used in this context; Expecting a text value instead, etc).
I got to a point where I have a code without errors for just one of the comboboxes but it doesn't actually filter anything in the gallery.
My 2 comboboxes are BoxProcess (the respective SP column is BusinessProcess and BoxRole (SP column is BusinessRole). Here's the one formula I got to without errors but without any results shown.
Filter(
'DataSource',
If(
IsEmpty(BoxProcess.SelectedItems),
true,
IsBlank(BoxProcess.SelectedItems),
true,
CountRows(
Filter(
'DataSource',
CountRows(
Filter(
BoxProcess.SelectedItems.Value,
Value in BusinessProcess.Value
)
) > 0
)
) > 0
)
)
Can you point me out where is the discrepancy in this code?
Thank you in advance!