Hey all,
I'm currently building a PowerApps frontend for an internal Risk Register, utilising a SharePoint list as the data source.
I have two combo boxes I'd like to use for filtering, the first combo box is the Risk Owner (Person field), the second is the Risk Status (choice field).
My current formula for the gallery is:
Filter(
'Risk Register',
Or(
IsBlank(ComboBox1.SelectedItems) && IsBlank(ComboBox2.SelectedItems),
IsEmpty(ComboBox1.SelectedItems) && IsEmpty(ComboBox2.SelectedItems),
RiskOwner.DisplayName in ComboBox1.SelectedItems.DisplayName && RiskStatus.Value in ComboBox2.SelectedItems.Value
)
)
Now this half works, if I don't select either filter I can view all of the risks, great.
If I use both of the filters I can view the risks I've filtered by, great.
If I use just one of either filter, the list goes blank and I cannot view any risks until I either remove the filter or use both filters.
I want to be able to filter by either or both combo boxes, not both of them or none of them.
I've tried googling this problem for a couple of hours now and have not been able to make any progress, thanks in advance!