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 show all items ...
Power Apps
Answered

How to show all items in gallery before clicking on filter

(0) ShareShare
ReportReport
Posted on by 161

Currently, I am fetching data from a table, but when I enter the screen, the gallery is empty. Only if I choose a button, it shows the results...

 

How can I have some 'default' value when I enter the screen or - even better - show all items from the table? I tried to set the visible parameter, but nothing seems to work.

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    Go through this link. you get proper solution.

    PowerApps Gallery Control Filter Example - SPGuides

    If this post helps, then please consider Accept it as the solution to help the others and consider giving it a "Thumbs Up."

  • Siyaho Profile Picture
    161 on at

    Where, what exactly? What snippet? I tried them before...

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

     Hi @Siyaho,

    Could you please share  bit more about your app configure?

    How you set the Items property of the Gallery and why you have to click a button to display the Gallery items?

     

    Generally, a Gallery has its Items property to display as it is set, like I set the Items property with a SP list name, then the Gallery will automatically display all the items within.

     

    There must be some extra settings for the Gallery or the Button that you do not tell us.

     

  • Siyaho Profile Picture
    161 on at

    This is the gallery item code:

    Search(HeedCollection, TextInput3_5.Text, "title"

    This is the button code:

    ClearCollect(HeedCollection, RSS.ListFeedItems("MYFEEDHERE"))

    I don't know how to set the RSSfeed into a collection and then do a search on this collection.... it seems like I am not setting the collection properly.

     

    There are three elements: a button, search and the gallery itself.

     

    Crazy thing = if I change HeedCollection with the actual RSS feed, it works. But then, the search is super slow.... 😞

     

    Does this help?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Siyaho,

    If you want to display all the items within the Gallery when there is nothing input within the TextInput3, please modify your formula as below:

    If(!IsBlank(TextInput3_5.Text),Search(HeedCollection, TextInput3_5.Text, "title"),HeedCollection)
  • Siyaho Profile Picture
    161 on at

    I tried this, but it did not work. For HeedCollection, it says: "we did not find any data"

     

    Again, if I change HeedCollection to the direct link of my RSS feed, it works... why is that and how can I change that? It seems like I can not set the RSS feed to that variable. Where do I have to do this?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Siyaho,

    I get what you mean! I think the collection should be generated on the OnStart property of the App so that once the app is on, the HeedCollection appears. Then you could display the Gallery as you search in the search box.

    vqiaqimsft_0-1645779832108.png

     

  • Siyaho Profile Picture
    161 on at

    Oh wow, this is interesting. But what if I have multiple sources per page? There is only one app, of course... but some pages are fetching other lists from different feeds. How to do that?

  • Siyaho Profile Picture
    161 on at

    I mean like: can we do something like this:
    If (Screen1),

    Set(
    ClearCollect(HeedCollection,
    RSS.ListFeedItems("MyRSSfeed"))
    )

    If (Screen 2),

    Set(

    ClearCollect(HeedCollection2,
    RSS.ListFeedItems("MyRSSfeed"))
    )

     

    Etc? Or only one source?

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Siyaho,

    Do you want to display different sources in different screens?

     

    If so, please set the OnVisible property of each screen where you want to display different sources, so that a source will display in the Gallery once you navigate to this screen.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard