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 / Filter Gallery with Mu...
Power Apps
Answered

Filter Gallery with Multiple Selection ComboBox

(0) ShareShare
ReportReport
Posted on by 27

Hello,

 

I have a Gallery that is filtered by 4 different ComboBoxes. Currently it works in this state if the user is only choosing one option per ComboBox. The ComboBoxes I currently have are set to use multiple selections per ComboBox. I was wondering if this can be done. I am trying to use ForAll in the Filter statement but that does not seem to work. Notice the ForAll in the middle section in the Filter statement.

 

Switch(true, IsBlank(ComboBox1.Selected.Value) && IsBlank(ComboBox2.Selected.Value) && IsBlank(ComboBox3.Selected.Value) && IsBlank(ComboBox4.Selected.Value), 
'Software Request',

Not(IsBlank(ComboBox1.Selected.Value)) && IsBlank(ComboBox2.Selected.Value) && IsBlank(ComboBox3.Selected.Value) && IsBlank(ComboBox4.Selected.Value),
Filter('Software Request', ForAll(ComboBox1.SelectedItems, Value) in 'Content Areas'),

Not(IsBlank(ComboBox1.Selected.Value)) && Not(IsBlank(ComboBox2.Selected.Value)) && IsBlank(ComboBox3.Selected.Value) && IsBlank(ComboBox4.Selected.Value),
Filter('Software Request',ComboBox1.Selected.Value in 'Content Areas' && ComboBox2.Selected.Value in 'Grade Level Access'))

 

Any help or other methods of going about this would be greatly appreciated. Thank you!

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Hi @NHammond37 

     

    Have you tried something like this? 

     

    Switch(true, IsBlank(ComboBox1.Selected.Value) && IsBlank(ComboBox2.Selected.Value) && IsBlank(ComboBox3.Selected.Value) && IsBlank(ComboBox4.Selected.Value), 
    'Software Request',
    
    Not(IsBlank(ComboBox1.Selected.Value)) && IsBlank(ComboBox2.Selected.Value) && IsBlank(ComboBox3.Selected.Value) && IsBlank(ComboBox4.Selected.Value),
    Filter('Software Request', 'Content Areas' in ComboBox1.SelectedItems.Value),
    
    Not(IsBlank(ComboBox1.Selected.Value)) && Not(IsBlank(ComboBox2.Selected.Value)) && IsBlank(ComboBox3.Selected.Value) && IsBlank(ComboBox4.Selected.Value),
    Filter('Software Request',ComboBox1.Selected.Value in 'Content Areas' && ComboBox2.Selected.Value in 'Grade Level Access'))

     

    Basically updating the middle filter with this: 

    Filter('Software Request', 'Content Areas' in ComboBox1.SelectedItems.Value)

     

    It might require some adjustments but let me know if this helps. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @NHammond37 ,

    Do you want to filter based on 4 combo boxes and these combo boxes are all multiple choice?

    If so, you just need to use if statement to represent different conditions and do not need to use forall.

    Try this formula:

    Filter('Software Request',
     If(IsBlank(ComboBox1.Selected.Value),true,'Content Areas' in ComboBox1.SelectedItems.Value),
     If(IsBlank(ComboBox2.Selected.Value),true,'Grade Level Access' in ComboBox2.SelectedItems.Value),
     If(IsBlank(ComboBox3.Selected.Value),true,combobox3 filter rule),
     If(IsBlank(ComboBox4.Selected.Value),true,combobox4 filter rule)
    )
    
    //please replace with your filter rule for combo box3 and combo box4
    
    

     

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 993

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 545

Last 30 days Overall leaderboard