Skip to main content
Community site session details

Community site session details

Session Id : pUA5Pbovgsw6+YvzzA6xXJ
Power Apps - AI Builder
Answered

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

Like (0) ShareShare
ReportReport
Posted on 28 Nov 2021 14:38:58 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:
  • Verified answer
    JoeF-MSFT Profile Picture
    on 28 Nov 2021 at 21:00:10
    Re: The CountRows doesn't change after new number of objects is detected

    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473