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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter conditionals bu...
Power Apps
Unanswered

Filter conditionals but omit when no selection

(1) ShareShare
ReportReport
Posted on by

So in short, I have some number of combo boxes.. some are multiselect some are single select.. These selections then filter out content in a gallery. My question is how do you omit a combo box, when there isnt a selection to filter against??

 

Thanks

Categories:
I have the same question (0)
  • 365-Assist Profile Picture
    2,324 Moderator on at

    Firstly you need to count the records in the source of your Combo Box Items. In my example I have the source as a Collection. I used the CountRows function and then set a variable based on if blank rows or has rows

    If(
     CountRows(colDropDown) = Blank(),
     Set (varVisibleDropDown,false),
     Set (varVisibleDropDown,true);
    )

     

    Then in the Visible Property of the Combo Box set it to the variable. 

    365Assist_0-1674173520373.png

     

    ---------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

  • jimi_hendrix Profile Picture
    on at

    @365-Assist I think there is some confusion. Let me clarify.. Im not looking to hide the combobox.. 

     

    I have a gallery with a list of records. Say I have a column for office, and a column for job title. And I have a combo box for office and a different combo box for job title. When I have selections in both job title and office, I want the dataset to be filtered.. BUT if someone only wanted to filter on office and NOT job title or vice versa, how would I go about making the Filter for the Gallery. I obviously need to call out both comboboxes selections so I can filter on them but when there arent any selections it doesnt work. Seems like I would need a conditional in there. Whatever solution, please help provide an example

  • 365-Assist Profile Picture
    2,324 Moderator on at

    I found a few videos that may help guide you.

    https://www.youtube.com/watch?v=bujH2gzTduQ

    https://www.youtube.com/watch?v=Wr42PeW6_wU

    https://www.youtube.com/watch?v=5dSk5iOgT68

     

    ---------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard