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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to sum up values f...
Power Apps
Unanswered

How to sum up values from a DataSource based on a filter

(0) ShareShare
ReportReport
Posted on by 364

Hi all, 

 

I am wondering what the most efficient way to Sum up numbers from my Dataverse table "Goal Managements" would be. In the app I am developing, employees set goals for the year, and their supervisor assigns a "weight" (value between 0 & 1) to the goals so we can determine how much of an end of year bonus the employee should receive. 

 

Currently, I have a managers screen that filters employee by Office location and Department, but now need to figure out how to sum up the weights for each goal that has been achieved, by each person. (EX: If a person has 4 goals with a .25 weight each meets all of their goals, they should receive 100% of their total possible bonus.) I'd like to be able show the percent value that the employee has currently achieved in a label inside my app, so that a manager can quickly see how much of the bonus the employee has currently earned. 

Aurora_1-1651152336560.png

 

Really, I am just not sure how to grab all the values of goals that are "achieved". I load this form with a gallery that references the DataSource. 

 

If anyone has an ideas or suggestions, I would greatly appreciate it. I can provide more picture / my code for various objects if necessary. 

Categories:
I have the same question (0)
  • filipovicdino Profile Picture
    88 on at

    Hi @Aurora, if you have some kind of Lookup Column which is related to Employee card you can create a RollUp Calculated field which will sum all entered information into weight field if it is numeric field.

     

    Best regards,

    Dino

  • Aurora Profile Picture
    364 on at

    Hi @filipovicdino, would this be done in my dataverse table? I could create a calculated column that sums up all weight values based on the status of another column titled "Achieved". If there is a way to do it inside the app with a Rollup Calculated field, how would I reference each value in the list for the selected employee? 

     

    Thanks for the feedback!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard