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 / Count of Gallery Items
Power Apps
Unanswered

Count of Gallery Items

(0) ShareShare
ReportReport
Posted on by 117

Hello,

 

Have a gallery that lists items from a dataverse table.

Have a label that displays the number of gallery items (total records is 134).

There are also 2 filters for the gallery.

When one of the filters is selected, 102 records should be displayed. Instead it shows 0.

 

Does anyone know how to show an accurate count of gallery items displayed when gallery filters are involved? 

 

P.S. I also tried loading it to a collection (gallery source = collectionname) but had the same results.

Categories:
  • TheRobRush Profile Picture
    11,128 Moderator on at

    What is the current formula you are using to display your count

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Should be something like

     

    CountRows( Gallery.AllItems )

  • luvagoldenk9 Profile Picture
    117 on at

    Hi,

     

    I am filtering the gallery based on the values selected in either of 2 filters. Initially, I tried using the CountRows(Gallery.Allitems). Problem is that when the screen is first opened or displayed, the count is only 100 as that is how many rows are initially loaded into cache - I received a complaint from the users as they have to scroll to the bottom of the gallery to get the total count when it exceeds 100.

     

    So I changed the label to Filter the same as the gallery but added a CountRows also:

     

    Total Employee Count=" & CountRows(
    Filter(
    colEmployees,
    Team = ddlbTeam.Selected.Result || ReqStatus=ddlbReqStatus.Selected.Result)

     

    It works initially when nothing is selected (134 records). But when I select a Team, it should show 102 but the label displays 0.

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 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard