I am a frequent visitor of this forum and it is the first time when I couldn't find an answer (or at least not one that explains the solution at my rookie level). I've been fighting this for 2 straight days then I finally decided to post it here ... any help is appreciated.
I have the following canvas:

Based on selection (1), one of the options becomes visible (2) and the results are displayed in the gallery (3).
The gallery's Items=
If(DropdownSearchBy.Selected.Result="Name",Search('Document Ctrl',TextInputSearchName.Text,"Name"),
If(DropdownSearchBy.Selected.Result="Category",Filter('Document Ctrl',Category.Value=DropdownCategory.Selected.Value),
If(DropdownSearchBy.Selected.Result="Location",Search('Document Ctrl',DropdownLocation.SelectedText.Value,"Location"),
Search('Document Ctrl',DropdownDepartment.SelectedText.Value,"Department"))))
I also tried gallery's Items=
Filter('Document Ctrl',Status.Value="Approved")
Separately, they both work like a charm but I need to combine them: I need to have the gallery filtered for "Approved" and then by one of the 4 options.
- (1) DropdownSearchBy has 4 options: Name, Category, Location, Department
- (2) The equivalents (made visible as selected in (1)) are:
-- TextInputSearchName <text input>
-- DropdownCategory <Items=Choices([@'Document Ctrl'].Category)>
-- DropdownLocation <Items=Distinct('Document Ctrl',Location)>
-- DropdownDepartment <Items=Distinct('Document Ctrl',Department)>
- (3) The gallery name is: GalleryDocumentCtrlSearch
- Data source is a SP List named 'Document Ctrl' and the settings are:

I hope I posted enough info for a solution (and if not ... I will provide more, as needed).
As a "first time poster", I am so looking forward to mark it as "ACCEPTED SOLUTION". Thank you in advance for your efforts