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 / Gallery Not Displaying...
Power Apps
Unanswered

Gallery Not Displaying Anything

(0) ShareShare
ReportReport
Posted on by 56

I am a little new but I am trying to create a gallery connected to my form, it currently isn't showing anything at all and it isn't giving any errors with the formula. The gallery is also connected to a search bar and dropdown. The items property of the gallery is With({wData: Filter(Sort('Inventory Managment Practice', Modified,SortOrder.Descending), Dropdown1.Selected.Value = "All Categories" || Category = Dropdown1.Selected.Value)}, Search( wData, TextInput1.Text, "{Identifier}","Title","Category","DealerID"))

 

The default property of the drop down is one of the categories and the items is a list of the categories.

Please help!

Categories:
  • madlad Profile Picture
    2,637 Moderator on at

    I think it might be because you're using With(), which looks to be only for single records,  and as such won't work to populate a gallery. I created a similar situation to what you have, and while with() displayed no records, using something like this worked for me:

     

    Search(
     Filter(
     Sort(
     'Inventory Managment Practice', 
     Modified, SortOrder.Descending
     ),
     'All Categories' = Dropdown1.Selected.Value || Category = Dropdown1.Selected.Value
     ),
     TextInput1.Text,
     "{Identifier}",
     "Title",
     "Category",
     "Dealer"
    )

     

    You may have to make some slight changes to this

     

    Hope this helps!

  • MH81003 Profile Picture
    56 on at

    @madlad  Thank you for the reply, that formula works fine it doesn't give me any errors but it still isn't populating anything in the gallery. Should I have something different in the default maybe? Currently I have Form1.LastSubmit in the default property of the gallery.

  • madlad Profile Picture
    2,637 Moderator on at

    @MH81003 , I don't think the default of the gallery should affect what's appearing.

    I would try removing the filter part of your statement, and if that doesn't change anything, then the search portion. If removing either of these makes the items appear, you know where your problem is. If you've removed both of these and the items still don't appear, it's likely that your datasource is currently blank. 

     

    Hope this helps!

  • MH81003 Profile Picture
    56 on at

    @madlad It seems that it is the search function not working, it will work with just the filter but then the search box doesn't work to search through the gallery. I even tried it with this equation for the items If(Dropdown1.Selected.Value="All Categories",Sort(Search('Inventory Managment Practice',TextInput1.Text,"Title","Category"),Modified,SortOrder.Descending),Sort(Search(Filter('Inventory Managment Practice',Category= Dropdown1.Selected.Value),TextInput1.Text,"Title","Category","DealerID"),Modified,SortOrder.Descending)) and it won't populate. Do you know why the search wouldn't work with the gallery/sharepoint list

  • madlad Profile Picture
    2,637 Moderator on at

    I can't really say I do unfortunately. The only thing I thought of based on what you've sent would be if DealerID was number values, but that would throw an error visible from the editor I'm pretty sure.

     

    Hope you can figure this out though!

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