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

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"))

     

    GalleryIssue.PNG
  • 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

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

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard