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 / Filter a collection wh...
Power Apps
Unanswered

Filter a collection when the field is a single line of text and/or the user()email

(0) ShareShare
ReportReport
Posted on by 138

I'm working on a gallery where the data is coming from a SharePoint list (Elevate Application Dashboard). Given that my SP list has more than 2,000 rows of data I thought I'd create a collection with the information I need to then create the gallery from. 

 

If I create a collection from the SharePoint list so that it only lists those with a status of "Application" in the RoleValueApp field, I can cut my list down to 300 and I think successfully display in a gallery.

 

I've tried the following with double and single quotes around application to no success.

Collect(MySPCollection,Filter(ElevateApplication Dashboard,RoleValueApp = "Application")

 

ISSUE: How to generate the collection to only use the columns I need so the returned result is less than 2,000.

 

Here are the fields I want to include from the collection in my gallery:

Applicant - single line of text

RoleValueApp - single line of text

Location - single line of text

Manager - Person/Group

Manager ID - single line of text

Manager status - single line of text

RPLs - Multiple person/group

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    If the Filter you are using returns less than 2,000 records then there is no reason to use a collection.  Filter() is a delegable query so it will pass the query to SharePoint and return the appropriate records.  Just use the following in the Items property of the gallery

    Filter("ElevateApplication Dashboard",RoleValueApp = "Application")
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @Jltitus 

     

    Editing my reply as @Pstork1  is correct here - avoid collections with delegation if you can.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Jltitus 

    Agreeing with @Pstork1 on the collection point...it will only slow down your app as it is going to try and collect ALL of the records, not just those that the app determines to be "on demand" (a whole other subject - but suffice to say, you would still see all of your data).

    However, the formula mentioned should be:

    Filter('ElevateApplication Dashboard', RoleValueApp = "Application")

    Was just popping into this post to point out that it should be single quoted (the datasource that is).

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @Jltitus  - Thank you for marking my reply as a solution and I'm glad you got sorted.

     

    @Pstork1's reply was before mine and he rightly flagged from the off the point that the expression is delegable, so I think he is more deserving of this solution. If possible, please can you reallocate the solution or if that isn't possible, please also mark @Pstork1's reply as a solution?

     

    Many thanks and good luck with the rest of your build.

  • Jltitus Profile Picture
    138 on at

    @AmDev thanks for the call out. I appreciate you letting me know. I think I've been able to change it so that @Pstork1 's reply is accepted as Solution.

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard