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 Gallery Selected...
Power Apps
Unanswered

Count Gallery Selected Items that meet criteria

(0) ShareShare
ReportReport
Posted on by 41

Hello,

 

I have a Gallery that contains data about error reports. The gallery data is called "Table3.'Error No1' , Table3.'Error No2'....etc

 

This data is displayed as "OK" if there is no error or "Error" if there is.

I would like a label to display the amount of errors in the selected gallery item.

 

For example:

Gallery1.Selected:

Error No1 = OK

Error No2 = OK

Error No3 = Error

Error No4 = Error

Error No5 = OK

 

Error Count = 2 Errors

 

Any help would be appreciated.

Kyle

 

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

    I believe your datasource will be like this:
    [{Title:"Error No 1",IsError:"Error"},{Title:"Error No 2",IsError:"No Error"},{Title:"Error No 3",IsError:"No Error"},{Title:"Error No 4",IsError:"Error"}]

     

    Gallery will be as attached pic:


    Add a label outside gallery and display the Count as below formula:

     

    CountRows(Filter(Gallery.AllItems,Label.Text="Error"))

     

  • knsrinath Profile Picture
    527 on at

    Hi @theapurva 

     

    I have Radio Button and textinput in gallery1.

    knsrinath_0-1669298889004.png

    Request you help me to count Gallery1 selected items only

     

    Thanks & Regards

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard