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 / CountIF the Student na...
Power Apps
Answered

CountIF the Student name based on their status.

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

i have a student table in excel sheet and I am using this formula (CountIf(Attendance,Status="Present" && 'Name '=Gallery5_1.Selected.'Name ')) to count the number of students based on their status which is "present" inside of a gallery. but it does not work correctly. So, could someone help me please. 

Smm1_0-1720184249004.png

 

Categories:
I have the same question (0)
  • Verified answer
    madlad Profile Picture
    2,637 Moderator on at

    Hi!

     

    Referencing Gallery5_1.Selected will just reference the item in the gallery you have selected - the top one by default.

    Since this is a text box inside the gallery, try something like:

     

    CountIf(Attendance,Status="Present" && 'Name '=ThisItem.'Name ')

     

     

    Hope this helps!

  • Smm1 Profile Picture
    Microsoft Employee on at

    Thank you so much it works now.

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard