Skip to main content

Notifications

Power Apps - AI Builder
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:
  • Verified answer
    JoeF-MSFT Profile Picture
    JoeF-MSFT on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard