web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combo Box filtering Ga...
Power Apps
Unanswered

Combo Box filtering Gallery not working

(0) ShareShare
ReportReport
Posted on by 38

Hi,

 

I have a filter whereby, it utilises an IF statement to check if a selected value "All Offices" is selected, it then filters by two search boxes, if "All Offices" is not selected the else condition is that it then searches by the two search boxes and the selected office value as per below. 

I then have a filter whereby it checks the selection of the status in a combo box which allows multiple selection; the filter however only filters by one selection on the combo box.  e.g I could select picked up & Complete, but the gallery will only show the one I selected most recently. 

 

 

Filter(If('Select Office_(All)'.Selected.Value= "All Offices", Filter('CDR Tracker 1', StartsWith( 'Case Reference', searchCaseQuery ) && StartsWith(Requestor.DisplayName,searchRequestorQuery)), 

 

Filter('CDR Tracker 1',StartsWith('Case Reference',searchCaseQuery) && StartsWith(Requestor.DisplayName,searchRequestorQuery) && Office.Value = 'Select Office_(All)'.Selected.Value)), 'Status Filter (All)' .Selected.Value in Status.Value
)

 

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @Cargue96 ,

     

    Can you please try the below:

     

    Filter(
    	'CDR Tracker 1',
    	StartsWith('Case Reference',searchCaseQuery),
    	StartsWith(Requestor.DisplayName,searchRequestorQuery),
    	'Select Office_(All)'.Selected.Value= "All Offices" || Office.Value = 'Select Office_(All)'.Selected.Value
    )

     

    What I have done is use formatting to make the code more readable and found that the two filters are almost identical. Then I replaced && operators with commas for more logical separation of the conditions and merged the differences between the two filters using a || operator. This will return true in case "All office" are selected, effectively ignoring the second part of the condition where it filters for selected office.

  • Cargue96 Profile Picture
    38 on at

    My deepest apologies, I have posted the wrong code on here and just realised.

     

    So, this is the actual code, I need the gallery to filter by multiple selections in the status value, it only seems to return one selected value.

     

    Filter(If('Select Office_(All)'.Selected.Value= "All Offices", Filter('CDR Tracker 1', StartsWith( 'Case Reference', searchCaseQuery ) && StartsWith(Requestor.DisplayName,searchRequestorQuery)), // First Part Filters and checks if All Offices is Selected

    Filter('CDR Tracker 1',StartsWith('Case Reference',searchCaseQuery) && StartsWith(Requestor.DisplayName,searchRequestorQuery) && Office.Value = 'Select Office_(All)'.Selected.Value)),'Status Filter (All)' .Selected.Value in Status.Value
    )

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard