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 Apps
Answered

gallery

(0) ShareShare
ReportReport
Posted on by 162

Good day

asking for help.

how to count all rows in gallery without pulling the first 100 records

my formula:
CountRows(Gallery1.AllItems)

thanks and advance

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

    Galleries are designed to be paged and load records 100 at a time.  So if you count the rows in a gallery you will always get the number of records that have currently been loaded through paging.  There is no way around that.  But you can do a CountRows() on the Data Source itself or whatever filtered set of Items is in the Items property of the Gallery.  That will give you the total number of records that will eventually be displayed in the gallery through paging.  The one problem is that CountRows() can't be delegated so if its a large data source there is no way to get the total number of records.

  • v-albai-msft Profile Picture
    on at

    Hi @DHAGZ ,

    How are things going?

    Has @Pstork1 's answer solved your question?

    Best regards,

    Allen

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