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 / How to add my combo bo...
Power Apps
Unanswered

How to add my combo box selections to my filter

(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 conditions is that it then searches by the two search boxes and the selected office value as per below. 

 

If('Select Office_(All)'.Selected.Value= "All Offices", Filter('CDR Tracker 1', StartsWith( 'Case Reference', searchCaseQuery ) && StartsWith(Requestor.DisplayName,searchRequestorQuery)), // First Part Filters via Case and requestor 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)) // If not all offices selected then this filters via the office select in addition to the Case Query and Requestor query.

 

I have a combo box whereby you can select multiple statuses (There are 7 Statuses in total), however every time I try to add it the filter I get errors, does anyone what I should be doing to ensure that I can include the selection criteria of the combo box within both conditions of this IF statement and Filter

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Cargue96 ,

     

    Could you please tell me:

     

    What is the data source? Is it a SharePoint list?

    What is the statuses column's data type? Is it a choice column? Does it allow multiple selections?

     

    I assume the statuses column is a choice column and do not allow multiple selections. Maybe you could try

     

    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)
    ) ,
    StatusColumn.Value=StatusCombobox.Selected.Value
    )

     

    Best Regards,

    Bof

  • Cargue96 Profile Picture
    38 on at

    Hi,

     

    The Data Source is a Sharepoint list and the combo box is a choice column which allows multiple selections.

     

    Many thanks!

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Cargue96 ,

     

    Ok. Please try

     

    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)
    ) ,
    StatusCombobox.Selected.Value in StatusColumn.Value
    )

     

    Best Regards,

    Bof

  • Cargue96 Profile Picture
    38 on at

    So, there are no errors in the formula, but this is what it's returning, the gallery now doesn't return anything at all as shown in the picture below.

     

    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)), 'Select Office_(All)'.Selected.Value in Status.Value
    )// If not all offices selected then this filters via the office select in addition to the Case Query and Requestor query

     

     

    Cargue96_0-1665158797062.png

     

  • Cargue96 Profile Picture
    38 on at

    Can you think of any reason why the gallery is returning nothing, from the formula you provided?

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard