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

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Kudoed Authors
Users online (1,550)