Hi @GeneErz,
'in' is not a delegable operator for SharePoint, a workaround would be using StartsWith(). I have also made some slight adjustments to the code which will make it more readable:
Filter(
'Legal Library',
IsBlank(cboDate.SelectedItems) || IsEmpty(cboDate.SelectedItems) || Date.Value = cboDate.Selected.Value,
IsBlank(cboDivision.SelectedItems) || IsEmpty(cboDivision.SelectedItems) || Division.Value = cboDivision.Selected.Value,
IsBlank(cboJudge.SelectedItems) || IsEmpty(cboJudge.SelectedItems) || Judge.Value = cboJudge.Selected.Value,
IsBlank(TextDocket.Text) || Docket = TextDocket.Text,
IsBlank(cboDocketType.SelectedItems) || IsEmpty(cboDocketType.SelectedItems) || DocketType.Value = cboDocketType.Selected.Value,
IsBlank(cboMotion.SelectedItems) || IsEmpty(cboMotion.SelectedItems) || Motion.Value = cboMotion.Selected.Value,
IsBlank(cboCharges.SelectedItems) || IsEmpty(cboCharges.SelectedItems) || Charges.Value = cboCharges.Selected.Value,
IsBlank(cboTrialPrep1.SelectedItems) || IsEmpty(cboTrialPrep1.SelectedItems) || TrialPrep.Value = cboTrialPrep1.Selected.Value,
//Changed to StartsWith
txtSearch1.Text = Blank() || StartsWith(Name, txtSearch1.Text)
)
The downside to StartsWith is that the Name has to start with the provided text, it does not do a 'contains' query. Should you want to use the in operator instead, you can use nested filters:
Filter(
Filter(
'Legal Library',
IsBlank(cboDate.SelectedItems) || IsEmpty(cboDate.SelectedItems) || Date.Value = cboDate.Selected.Value,
IsBlank(cboDivision.SelectedItems) || IsEmpty(cboDivision.SelectedItems) || Division.Value = cboDivision.Selected.Value,
IsBlank(cboJudge.SelectedItems) || IsEmpty(cboJudge.SelectedItems) || Judge.Value = cboJudge.Selected.Value,
IsBlank(TextDocket.Text) || Docket = TextDocket.Text,
IsBlank(cboDocketType.SelectedItems) || IsEmpty(cboDocketType.SelectedItems) || DocketType.Value = cboDocketType.Selected.Value,
IsBlank(cboMotion.SelectedItems) || IsEmpty(cboMotion.SelectedItems) || Motion.Value = cboMotion.Selected.Value,
IsBlank(cboCharges.SelectedItems) || IsEmpty(cboCharges.SelectedItems) || Charges.Value = cboCharges.Selected.Value,
IsBlank(cboTrialPrep1.SelectedItems) || IsEmpty(cboTrialPrep1.SelectedItems) || TrialPrep.Value = cboTrialPrep1.Selected.Value
),
txtSearch1.Text = Blank() || StartsWith(Name, txtSearch1.Text)
)
The code will provide the delegable query, after which the out filter applies the non-delegable query to that output.
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!