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 / selecting multiple rec...
Power Apps
Answered

selecting multiple records in gallery

(0) ShareShare
ReportReport
Posted on by 525

Hi Reader,

 

I'm having a gallery with 5000 records, when i click select all option I'm able to get only 100 records out of 5000

the formula i was using is filter(gallery.allitems, cbox.value)

Krishna_R_0-1624014271484.png

 

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    because the initial load limit is 100. I don't think there is a direct solution for that. Maybe someone here has a work around for that.

    when you scroll the gallery to the bottom it will select more records.

  • Krishna_R Profile Picture
    525 on at

    Hi @zmansuri ,

    yes until & unless the user scrolls till down remaining records are won't come up. hope there might be a work around for this

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    a20.jpg

    I can select all the record i see in gallery. I just remember i have this in one my apps.

    I haven't scroll the gallery and when i clicked select all it selected all 507 records.

    Checkbox inside the gallery is named Checkbox1

    Checkbox outside gallery is named Checkbox2.

    Checkbox1.Default: Checkbox2.Value

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Krishna_R what's the Items property of the Gallery? 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Krishna_R 

    It seems ridiculous to expect a user to search through 5k records to choose from in a gallery.  It makes more sense to filter the galleries items property first and then select records. 

  • Krishna_R Profile Picture
    525 on at

    @CNT 
    SortByColumns(SQLTable,"Modified")

  • Krishna_R Profile Picture
    525 on at

    @Drrickryp 

    if we can limit 1000-2000 items. is there a way to selectall option at a time ? 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Krishna_R 

    This worked for me to change the name of one of the products in a fictitious financial sample list. 

    You could modify the formula to meet your needs

    With(
     {
     fs: Filter(
     Financialsample,
     Product = "Amarilla"
     )
     },
     ForAll(
     fs,
     Patch(
     Financialsample,
     LookUp(
     Financialsample,
     ID = fs[@ID]
     ),
     {Product: "Amarillo"}
     )
     )
    )

    It takes a while but worked well on a large data set.  

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Krishna_RPowerApps does not load all the items into the Gallery in the beginning. Items get loaded as you scroll. When you try to set the checkbox to true it will not work. But you can do this,

    1. Load the records into a collection. ClearCollect(myCollection, SortByColumns(SQLTable,"Modified"))
    2. Add one extra column to this collection , IsSelected. AddColumns(myCollection, "IsSelected")
    3. Set this collection in the Items property of the Gallery.
    4. Set ThisItem.IsSelected as the default property of the checkbox in the Gallery.
    5. In the OnCheck of the SelectAll checkbox, ForAll(collection, Patch(collection, ThisRecord, {IsSlected:true}).
    6. In the OnUnCheck of the SelectAll checkbox, ForAll(collection, Patch(collection, ThisRecord, {IsSlected:false}).

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard