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 / Most efficient way to ...
Power Apps
Answered

Most efficient way to filter large list

(0) ShareShare
ReportReport
Posted on by 1,257 Super User 2024 Season 1

I have a sharepoint list with 1K+ Items.  I am using it to populate a gallery.  However I only want specific items from this list in the gallery.    What is the best way to do this?

 

I am currently pulling the complete list in in a collection, (When creating the collection I use the show columns feature as I only want a handful of the columns from the list.) and then using that collection as the basis for the gallery and filtering at the [Items] level.  But should I filter it at the collections level?   or can I do that?  Only put into the collection the items that I want?,  

 

What is the most efficient way to do this?

 

TIA

 

 

 

 

Categories:
I have the same question (0)
  • LRVinNC Profile Picture
    2,297 on at

    It depends.  If you will make sure of other items in that list while the app is loaded, then it makes sense to bring them all in as you are doing and simply filter the gallery in your items property with Filter(<ListName>, <columnname> = filter criteria)

     

    If you will ONLY use a subset of the items in the list, the filter when you load your collection with Collect(<CollectionName>,Filter(<ListName>, <columnname> = filter criteria))

     

    LRVinNC

  • Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @vffdd 

     

    I say delegate the filtering to Sharepoint instead of getting a ton of data to Power Apps and making your browser do the dirty work. That means filter as much as possible on Sharepoint first then add the results to your collection.

  • vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    so do you mean filter at the sharepoint end, by creating views on sharepoint and then using those views to populate the collection?

  • vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    Thanks yeah I thought about that.. and I may use other items at some stage, if I do I will probably create another collection for them.. I was just wondering if was better to do it at the collectioin stage or the gallery stage but I guess it doesn't really matter does it?

  • Verified answer
    LRVinNC Profile Picture
    2,297 on at

    It depends on how you are going to use it, but you always want to load the least information possible as IO is your slowest process.  As I said, if you will only need to use the filtered data in your app, then filter it on the way in so you only load what you need.  If you might need all of the data during a run of the app, in different filtered groups based on some criteria, then load it all (once) and filter the groups in the gallery.  

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard