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 / Calculating totals in ...
Power Apps
Answered

Calculating totals in PowerApps

(1) ShareShare
ReportReport
Posted on by 30
Hi all - I'm working on an app  that will be used to track the capacity of a project management team which has multiple project managers.
 
Each row in the sharepoint list corresponds to a project and the columns contain different information e.g. Project manager name, project dates, status, etc. 
I also have 4 columns each representing current month, current month + 1, +2, +3 i.e. March, April, May, June and the purpose is to enter a decimal value representing how much of the project managers time is dedicated to the project.
 
On the app side, I have a vertical gallery which shows the information from the sharepoint list so a user can view the status of each project.
I am looking to setup a second gallery (or whatever is the best method to display the data) where i can display the total amount of time that each project manager is using across all of their projects and how much of their capacity is available. 
 
E.g. if John is working on Projects X, Y & Z and is dedicating 0.25 of his time to each project per month, I want to be able to show that John is committed for 0.75 of his time and 0.25 is available.
 
Looking for help on how to accomplish this as I have yet to get something to work
 
 
Categories:
I have the same question (0)
  • Suggested answer
    ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Have you tried using the plan designer Use the Plan designer to create a business solution with Copilot (preview) - Power Apps | Microsoft Learn. Flesh out your requirements a bit more and try using this to generate the initial app. You can then modify what is produced to match your requirements,
  • Verified answer
    CU28030254-0 Profile Picture
    18 on at
    Hi,
    try to add another gallery, use Distinct to get all your unique project managers. 
    Distinct(YourSharePointList, 'Project Manager') As PMs

    Display the name of porject managers by adding  label in your gallery. 
    in Text property add : PMs.Value

    Now, Add a new label for march and set Text property by adding a calculate worktime for each PM by using function sum and filter on march like this : 
    "March: " & Sum(
        Filter(YourSharePointList, 'Project Manager' = PMs.Value),
        March
    )
     
    Add another label for march’s free time  and set Text propety as : 
     
    "Free time March: " & 1 - Sum(
        Filter(YourSharePointList, 'Project Manager' = PMs.Value),
        March
    )
     
    repeat it for each month. 
    the filters i added above may be not working properly you have to adapt it to your sharepoint list and code .. 
     
    i hope this answer will help you
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,488 Super User 2025 Season 2 on at
     
    I would have to see the data a bit more to really help but logically you need to GroupBy the Project and User, then Sum up the columns you want into new columns in the grouped data
     
     
    Once you group it, you can even AddColumns to then calculate the difference between how much they spent and how much is available.
    Now it gets complicated, but possible, if you are looking at it like this
     
    Sum by Project Time, By Month, By Person and then per month, you want that total and subtract it from 1 to get that months left over time. Again completely doable.
     
    Completely doable though can you share more of what your data looks like in your collection or table?
  • CU29011704-0 Profile Picture
    30 on at
    @ - Thank you, what you suggested worked! Had to make a slight tweak but this accomplished what i wanted

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