Hi all
I'm trying to build a complex filter that filters by user, search term, status. I can get the user and search term however the status sits on a linked sharepoint list B (i.e. the user and search terms are from sharepoint list A which pulls 'status' from B) - hope that makes sense.
I basically tried to use the same IF formula presented here: https://www.youtube.com/watch?v=vyBsk7-1Mxk

I am having trouble incorporating a dropdown filter list that can filter by status (which sits on another sharepoint list)
My formula is:
If(Dropdown1.Selected.Value = "All",
//below is filter if true:
Filter('Consumer Sample for Survey FINAL', StartsWith(Caller,varUserEmail), Or(StartsWith(CLIENT_FIRST_NAME, SearchBox.Text),StartsWith(ACMPS_CARE_RECIPIENT_ID, SearchBox.Text))),
//below is filter if false:
Filter('Consumer Sample for Survey FINAL', StartsWith(Caller,varUserEmail), Or(StartsWith(CLIENT_FIRST_NAME, SearchBox.Text),StartsWith(ACMPS_CARE_RECIPIENT_ID, SearchBox.Text)) &&
LookUp(Rep_SurveyResults, ACMPS_CARE_RECIPIENT_ID = 'Consumer Sample for Survey FINAL'.ACMPS_CARE_RECIPIENT_ID, Status).Value = Dropdown1.Selected.Value)
)
)
The text in red is the part that's giving me issues. The error is invalid argument. I understand LookUp gives a scalar result but the overall filter returns a table.
I'm lost as to how I can solve this.
Does anyone have any suggestions?
Thanks in advance