Notifications
Announcements
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))
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)}"
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.
thank you, both solutions work!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268