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 filtered rows.
Power Apps
Unanswered

Count filtered rows.

(0) ShareShare
ReportReport
Posted on by 242

I am trying to count the filtered rows in my gallery. For the filter I use a dropdown that filters a choicecolumn. I want to use a textlabel to count the rows in the filter. I cannot seem to make it work. This is my latest try. What am i doing wrong?

 

 

CountRows(Filter(testList, Status.Value = DropdownStatus.Selected.Result))

 

 

Categories:
I have the same question (0)
  • Verified answer
    Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    Hi @Mirtemir 

     

     

    For Gallery 
    Gallery2.Items = Filter(testList,Title=Dropdown1.SelectedText.Value)
    
    For Label Text
    Label1.Text = CountRows(Gallery2.AllItems)
    or 
    Label1.Text = $"Total Records: {CountRows(Gallery2.AllItems)}"

     

     

    shujaathkhan_0-1655116949971.png

    Thanks

    Please click Accept as Solution on this reply if it helped to solve your issue, and thumbs-up if you feel this is useful or important in other ways as a boost.

  • Mirtemir Profile Picture
    242 on at

    thank you, both solutions work!

  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    Great,

     

    Also to be aware, the count is shown as total items rendered in the gallery, the more you keep scrolling lazyload gallery the items would keep increasing and so is the count number. hope you're aware.

    thanks.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard