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 / Show all gallery items...
Power Apps
Unanswered

Show all gallery items until filters are applied

(1) ShareShare
ReportReport
Posted on by 88

I have a gallery that is correctly filtering when I have 1 or multiple things selected (things = 2 combo boxes and 1 text search box).  However, I would like to have the gallery display everything when nothing is selected in the combo boxes and the text box.  Basically, start with the full list of items in the gallery, and whittle it down as items/values are selected in the combo boxes and text box.   The below formula starts with all blanks and brings in the appropriate values as combo box and text inputs are selected.  

 

 

Gallery Items Property:

 

Filter('Standards, Disclaimers & Disclosures', 'Review Element(s)' in ComboBox1.SelectedItems.Result || 'Subject Matter ' in ComboBox2.SelectedItems.Result || TextInput1.Text in 'Required Language')

 

 

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,923 on at

    If(IsBlank(TextInput1) &&IsEmpty(ComboBox1.SelectedItems)&&IsEmpty(ComboBox2.SelectedItems),

    Standards,

    Filter('Standards, Disclaimers & Disclosures', 'Review Element(s)' in ComboBox1.SelectedItems.Result || 'Subject Matter ' in ComboBox2.SelectedItems.Result || TextInput1.Text in 'Required Language'))

     

    I assume you Datasource is standards

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • enlitzinger Profile Picture
    88 on at

    Edited: Thanks for the help, regrettably the same issue remains.  But, I think it is related to a button I embedded:

     

    OnSelect: Reset(ComboBox1);Reset(ComboBox2);Reset(TextInput1)

     

    If I manually remove the selections in the comboboxes the gallery resets normal..so I think the button is the issue.  How do I clear the comboboxes and textbox with a click of a button?

     

    You are correct, Standards, Disclaimers & Disclosures is my Datasource.

  • eka24 Profile Picture
    20,923 on at

    Please I used only standard as the Datasource, did you correct to 

    'Standards, Disclaimers & Disclosures' 

     

    The formula should not be inside the Gallery but on the ITEMS property of the Gallery.

     

    Can you show a screenshot

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

     

  • enlitzinger Profile Picture
    88 on at

    you beat me to the punch on responding.  I tinkered with it and found the issue resides on my 'clear' button.  The formula you provided does in fact work.  When I manually remove the selections in the comboboxes or text box the gallery does reset to all items. 

     

    My button property is:

     

    OnSelect: Reset(ComboBox1);Reset(ComboBox2);Reset(TextInput1)

     

    I will need to rewrite that action.  Thanks for your help.  

     

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard