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 / Calculate the sum of V...
Power Apps
Answered

Calculate the sum of Values

(0) ShareShare
ReportReport
Posted on by 41

Hi have a table with where each person has different project with hours 

RaymondAwo_0-1689782572198.png

But when i got to the summary screen: 

RaymondAwo_1-1689782643597.png

get values in fields where no value should be: 
this is my code:

Sum(
Filter(
ResPers,
Name.Value in ResAllocation.Titel
),
Hours
)

 

So what I am trying to do is to get the sum of every value of the column Hours in the List ResPers where the Name is equal to the name of the Column Titel in ResAllocation. but for each name idividually. 

Thank you all for the help

Categories:
  • RaymondAwo Profile Picture
    41 on at

    so anybody has a solution for that ?

     

  • CU22040918-0 Profile Picture
    195 on at

    Hi @RaymondAwo 

     

    At first glance, if no data returned, the filter condition could be the issue. Could you elaborate on it?

     

    Sharing more screenshots about the data source, column type and some sameple data will be good.

     

    Thanks,

    Nelson

  • RaymondAwo Profile Picture
    41 on at

    Yes of course, 

    RaymondAwo_0-1690189155676.png

    the List I am filtering from has the Names as drop down list (necessary for the Use-Case)

     

    In comparison the Table where the Values fo ResPers should be compared to and the correct Sums of the Hours should be applied to is in a text label: 

    RaymondAwo_1-1690189275045.png

    Here is some sample data

    TitelNameProjectStartEndHoursElementtypPfad

    1Dummy1 13.07.202315.07.20231Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    2Dummy1Yetu12.07.202331.07.20237Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    3 Yetu12.07.202319.07.20236Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    4Dummy1BD17.07.202317.07.20238Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    5Dummy1Yetu17.07.202317.07.20238Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    6Dummy 1Yetu18.07.202318.07.20238Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    7Dummy 1 19.07.202319.07.20238Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    8dummy 2 19.07.202319.07.20238Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    9Dummy1 19.07.202319.07.20238Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
    10Dummy 2Yetu20.07.202320.07.20238Itemsites/TC-Ressource-PlanningDev/Lists/ResPers
            

     

  • Verified answer
    CU22040918-0 Profile Picture
    195 on at

    Let's say that there is a gallery showing all Names from ResAllocation, so each line of gallery is showing the name.

     

    To both show the sum value inside the gallery, try below code.

     

    Sum(
     Filter(
     ResPers,
     Name.Value = ThisItem.Titel
     ),
     Hours
    )

     

    Thanks,

    Nelson

  • RaymondAwo Profile Picture
    41 on at

    Thank you 

    It worked ❤️

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard