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 / The CountRows doesn't ...
Power Apps
Answered

The CountRows doesn't change after new number of objects is detected

(0) ShareShare
ReportReport
Posted on by 2

So, I have an app and I have an object detection AI in it. I put a gallery and a label to count the total number of objects, the code is like this:

Yanaaaaaaaaaaaa_0-1638110059570.png

this is the code of the label and it counts the number of items in the gallery

however, after I upload a new pic in on the detector, the number of this countrows is supposed to be updated too. And the problem is, it doesn't. I've checked the gallery, and the gallery can be updated. So why the label can't??? 

Categories:
I have the same question (0)
  • Verified answer
    JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @Yanaaaaaaaaaaaa,

     

    Thanks for the question. I'd recommend using the following formula instead:

     

    "Number of food that you can't eat: " & Sum(ObjectDetector1.GroupedResults, ObjectCount)

     

    ObjectDetector1 is the name that the Object Detector AI control has in the app. 

     

    I hope this helps to prevent eating food that should not be eaten. 🙂

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 977

#2
Valantis Profile Picture

Valantis 664

#3
11manish Profile Picture

11manish 530

Last 30 days Overall leaderboard