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 / Gallery Count for each...
Power Apps
Answered

Gallery Count for each item

(0) ShareShare
ReportReport
Posted on by 49

Hello!  I have an app similar to a help desk where there are tasks with a specific status.  The status is on a sharepoint list using the multiple choice option.  There is "To Do, In Progress, Published".  I want the gallery to show the count of the rows.  I cannot figure out how to change the text so that it shows the count for each one.  Is this possible using the gallery?

 

ecubugg_0-1708699624867.png

 

Categories:
I have the same question (0)
  • Verified answer
    Yogesh Murugan Profile Picture
    451 Moderator on at

    Try this method;

    First get Counts into Set variable 

     

    Set(VarCountTo-DO,Count(Filter({YourDataSource},{ChoiceFiled}="To Do")));
    
    Set(VarIn Progress,Count(Filter({YourDataSource},{ChoiceFiled}="In Progress")));
    
    Set(VarPublished,Count(Filter({YourDataSource},{ChoiceFiled}="VarPublished")));

     

    Create one collection for Status 

     

    Clearcollect(ColStatus,{Status:"To Do",Count:VarCountTo-DO},{Status:"In Progress",Count:VarIn Progress},{Status:"Published",Count:VarPublished})

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. , please consider giving it Thumbs Up.

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @ecubugg ,

     

    If you have a label control outside Gallery then you can check the total rows current in your Gallery as 

    CountRows(Gallery1.AllItems)

     

    If you have label controls outside Gallery where you need to display other count of records in database with respect to each status

    Try following:

    Filter(
     <dataSource>,
     <ChoiceField> = "In-Progress"
    )
    //Add respective status

     

    Hope this helps

  • ecubugg Profile Picture
    49 on at

    Amazing!  Thank you!  This worked perfectly.

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