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 / Sum based on filters
Power Apps
Answered

Sum based on filters

(1) ShareShare
ReportReport
Posted on by 51
Hi there,
 
Without applying filters I am getting total hours in Table2
 
However I cannot seem to apply the filters? I keep getting blanks
 
Any ideas???


I need to filter this based on :
Date DatePickerCanvas2_1
Employee Name ComboboxCanvas5_1
 
current formula not working as selected
Value not populating and selected items erroring
 

Sum(Filter(Datasource, Date = DatePickerCanvas2_1.SelectedDate, EmployeeName = ComboboxCanvas5_1.Selected.Value || IsBlank(ComboboxCanvas5_1.Selected.Value), 'Hours Qty')
 
I want to sum hours of hours quantity of truck driver time card based on selected values in date and employee name
Thanks
I have the same question (0)
  • WarrenBelz Profile Picture
    155,240 Most Valuable Professional on at
    Firstly you are missing a bracket
    Sum(
       Filter(
          Datasource, 
          Date = DatePickerCanvas2_1.SelectedDate, 
          EmployeeName = ComboboxCanvas5_1.Selected.Value || IsBlank(ComboboxCanvas5_1.Selected.Value)
       ), 
       'Hours Qty'
    )
    but you may have a Delegation limitation here so
    With(
       {
          _Data:
          Filter(
             Datasource, 
             Date = DatePickerCanvas2_1.SelectedDate, 
             EmployeeName = ComboboxCanvas5_1.Selected.Value || Len(ComboboxCanvas5_1.Selected.Value) = 0
          )
       },
       Sum(
          _Data,
          'Hours Qty'
       )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • Verified answer
    WarrenBelz Profile Picture
    155,240 Most Valuable Professional on at
    Just following up to see if you received the answer you needed, or if you require further assistance.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard