cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yanaaaaaaaaaaaa
New Member

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

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??? 

1 ACCEPTED SOLUTION

Accepted Solutions
JoeF-MSFT
Power Apps
Power Apps

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. 🙂

View solution in original post

1 REPLY 1
JoeF-MSFT
Power Apps
Power Apps

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. 🙂

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Top Kudoed Authors
Users online (3,169)