web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / CALCULATING AVERAGES U...
Power Apps
Answered

CALCULATING AVERAGES UPON FILTER SELECTION

(0) ShareShare
ReportReport
Posted on by 211

Customer Service data comes from SharePoint list.  When list is filtered by Division, FY and/or Employee, need the average score to change at the top.  The score of 4.8 if for the entire list, Text = Average(Customer, Resp).  Need this to change upon selected dropdowns and/or search.  So far (for one drop-down):  If(ddDiv).Selected.Result = "Select Division",  Average(Customer, Resp) 

Any suggestions how the formula can be revised/completed to accommodate both dropdowns and search?

 

Screenshot 2020-10-14 101738.png

Thanks!

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @chudson002 

    Change your average to perform the average on the items in the Gallery.

       Average(yourGallery.AllItems, Resp) 

     

    I hope this is helpful for you.

  • chudson002 Profile Picture
    211 on at

    @RandyHayes   Worked like a charm😊.

    Thanks so much!

  • chudson002 Profile Picture
    211 on at

    @RandyHayes 

     

    Thanks again for the assist.  All numbers filter out great...just need help with the formatting.

    For the individual ratings, formatted with:  Text(ThisItem.Expect, "[$-en-US]0.00") and returns 2 decimals. i.e., 4.81 - perfect!

    Trying to get the number 4.82312935 from the average formula to display 2 decimal as well.

    When I tried to combine the above with your solution, and other combinations, I am getting errors all around.

    Please advise.

     

    Thanks again, 

    V/R

    chduson002

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @chudson002 

    Can you let me know what kind of errors you are getting and what your formulas are that are producing the errors?

  • chudson002 Profile Picture
    211 on at

    @RandyHayes 

    Below is the formula used.

     

    Average(Monica1.AllItems, Resp, "[$-en-US]0.00")

    chudson002_0-1603145144543.png

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @chudson002 

    Consider changing your formula to the following:

    Text(Average(Monica1.AllItems, Resp), "0.00")
  • chudson002 Profile Picture
    211 on at

    @RandyHayes 

     

    Worked!!!!

     

    Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard