Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Check box selection and show all items in Gallery on re load / reset

Hi All

Ok so learning lots about Power Apps now which is enjoyable! 

I'm learning about filtering a gallery but delegating the responsability of the filter to the control so it's much easier to maintain.

Currently the filter is simple but will grow allot so trying to do the right thing from day one. 

Here is my situation
1. Bring in simple and small SQL table as a collection on start - ResourceData

2. Have a check box that creates a collection which is a filter of my data above

If('Not With Client'.Value = true,
Filter(ResourceData,Status = "Not With Client"),
Filter(ResourceData,Status <> "")))

3. Apply the collection in the items of the gallery so that it filters when pressing or un-pressing the check box

Filter(ResourceData,Status in FindResourceNotWithClient.Status)

4. This works a treat !

Here is my problem
When I load the app the gallery is always blank!
Am I doing something wrong or is there a way to ensure the gallery shows all data when I load the screen ?

Any help will be greatly appreciated Smiley Happy
Many thanks! 

Super User
Super User

Re: Check box selection and show all items in Gallery on re load / reset

Have you tried adding the following to the OnStart property of the app or the OnVisible property of the screen:

ClearCollect(FindResourceNotWithClient, Filter(ResourceData,Status <> "")


This should load your gallery with all the data until someone clicks a checkbox and the collection gets reset.

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources


Watch Sessions On Demand!

Continue your learning in our online communities.


PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!


Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 18 members 4,224 guests
Please welcome our newest community members: