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

Community site session details

Session Id :
Power Apps - Power Query
Answered

Filter & sum

(0) ShareShare
ReportReport
Posted on by 51
I have a share point list Time Entries and I am creating a simple timesheet app.  I have a drop down called WeekNoDropdown where the week number can be selected and time entries for that week shown, I now want to select a week and sum all the hours worked for that week ('Number of Hours' in list) so for example if week 29 is selected it will sum all the hours worked for week 29.  I have tried various things without success and the latest:-
 
Sum(Filter(TimeEntries, WeekNoDropDown.Selected.Value),'Number of Hours' )     this add up hours worked for all week numbers not the week number filtered by dropdown so does not work.  Any ideas?
 
 
Categories:
I have the same question (0)
  • michalison Profile Picture
    51 on at
    Filter & sum
    Thank you that worked
  • Verified answer
    Hamza Khalid Profile Picture
    61 on at
    Filter & sum

    Hello,

    The issue with your formula is that the filter function needs a comparison to know how to filter. You're currently just providing WeekNoDropdown.Selected.Value as the filter condition, which isn't a complete comparison.

    Assuming your 'TimeEntries' SharePoint list has a column that stores the week number (let's call it WeekNo for this example), your formula should look like this:

    Sum(Filter(TimeEntries, WeekNo = WeekNoDropDown.Selected.Value), 'Number of Hours')

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics