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 / 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:
I have the same question (0)
  • 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

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 739 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 268

Last 30 days Overall leaderboard