Hi,
I'm trying to filter my gallery using two combo boxes each linked to a choice multi select SharePoint column.
I'm using the follwing code, it allow me to filter to some extend but i'm not able to display any record that is under two choices. or more
looking forward for your support
With(
{
kData: Filter(
Sort(
PortfolioProjectList,
Modified,
SortOrder.Descending
),
VarUserEmail in BO.Email || VarUserEmail in BusinessPartner.Email || VarUserEmail = BUPortfolioOwner.Email || VarUserEmail = ProjectApplicant.Email
)
},
Sort(
AddColumns(
Filter(
kData,
(Len(Performance.Selected.Value) = 0 || IsEmpty(Performance.SelectedItems) || Concat(
'BusinessUnit(s)'.Value,
ThisRecord.Value,
", "
) in Performance.SelectedItems.Value) && (Len(HRSub.Selected.Value) = 0 || IsEmpty(HRSub.SelectedItems) || Concat(
'HRSubFunction(s)'.Value,
ThisRecord.Value,
", "
) in HRSub.SelectedItems.Value)
),
"StatSort",
Switch(
Status.Value,
"Approved",
1,
"Applied",
2,
"Draft",
3
)
),
StatSort
)
)