Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ZpKnKEEsrfhUSUDExilqHZ
Power Apps - Building Power Apps
Answered

Calculating totals in PowerApps

Like (1) ShareShare
ReportReport
Posted on 27 Mar 2025 22:08:51 by 14
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:
  • CU29011704-0 Profile Picture
    14 on 02 Apr 2025 at 17:45:54
    Calculating totals in PowerApps
    @ - Thank you, what you suggested worked! Had to make a slight tweak but this accomplished what i wanted
  • Suggested answer
    Michael E. Gernaey Profile Picture
    41,254 Super User 2025 Season 1 on 28 Mar 2025 at 04:38:04
    Calculating totals in PowerApps
     
    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?
  • Verified answer
    CU28030254-0 Profile Picture
    18 on 28 Mar 2025 at 03:17:45
    Calculating totals in PowerApps
    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
    ronaldwalcott Profile Picture
    3,569 on 28 Mar 2025 at 01:58:41
    Calculating totals in PowerApps
    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,

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard