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 Rows in Gallery ...
Power Apps
Answered

Count Rows in Gallery Only when specific row is Filled

(0) ShareShare
ReportReport
Posted on by 96

Hi there,

 

Been trying to figure out how I can Count rows of a gallery, but only count ones that have a specific field filled and not count the ones that do not have that field filled. Basically, I want to count every row in my gallery, with a text label, except the one filling the subtitle1 slot, this field is also named Action in the Gallery.

 

Thanks in advance,

KeeganEXP.PNG

Categories:
  • Verified answer
    BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Keegancurrie ,

     

    The CountIf function allows you to count all items in a table that match a condition. For instance the below will count all items in Gallery1 where the Action label is not blank:

    CountIf(
     Gallery1.AllItems,
     !IsBlank(Action.Text)
    )

     

     

  • Keegancurrie Profile Picture
    96 on at

    Perfect thank you!!

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard