cancel
Showing results for
Did you mean:
Post Prodigy

Calculate Average from Text Input in Gallery

Happy Wednesday! Power Apps Community.

I'm creating an audit tool. What is the best way to achieve the average score from the Text Input result in a gallery?

Is the missing piece to have the Power Apps ready for testing‌😎

2 ACCEPTED SOLUTIONS

Accepted Solutions
Employee

Hi @oappdev

You could sum the values and divide by the number of rows?

Sum(Gallery1.AllItems,TextInput1)/CountRows(Gallery1.AllItems)

Damien

Super User

Also, you can use the Average function for this...

Average(yourGallery.AllItems, Value(TextInputControlName.Text))

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
4 REPLIES 4
Employee

Hi @oappdev

You could sum the values and divide by the number of rows?

Sum(Gallery1.AllItems,TextInput1)/CountRows(Gallery1.AllItems)

Damien

Post Prodigy

Thank you @DamoBird365  I will give it a try and circle back.

Super User

Also, you can use the Average function for this...

Average(yourGallery.AllItems, Value(TextInputControlName.Text))

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Post Prodigy

Thank you so much @RandyHayes I will also give it a try.

Announcements

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!