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 function dependi...
Power Apps
Answered

Count function depending on galery item

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone!

 

My app is linked to a SharePoint list.

I have a gallery which show registration plates (see attached file) and I want to put a label which shows the number of values of a colum that meet these requirements:

1. The registration number is the same that appears in the gallery

2. The value is blank

 

I've tried the folowing:

CountIf(MySharePointList, Registration=ThisItem.Registration && Colum1=Blank())

 

The condition for the 1st requirement does not work. Can someone help me with this?

 

Thank You!

Masoud9

label.PNG
Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

     

    Try below 

     

    Set(totalCount, CountRows(Filter(MySharePointList, filtercriteria))

     

    totalCount gives the count based on the filter criteria.

     

    Hope this helps.

     

    Thanks.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Many Thanks! @Anonymous 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard