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 - Building Power Apps
Answered

timesheet app

(0) ShareShare
ReportReport
Posted on by 407

Hi, there seems to be an error in the days formula, can anyone assist?

 

Sum(Filter(TimeEntries,Employee.Email = currentUser.Email && 'Week Start' = DateAdd(
Today(),
-1 * (Weekday(
Today(),
Monday
) - 1),
Days
)),Total) &" / 40 " & Char(10) & "Hours"

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    152,811 Most Valuable Professional on at
    Re: timesheet app

    Hi @Matt383 ,

    Please see below - you have also quotes around " / 40 " which appears to be a division calculation?

    Sum(
     Filter(
     TimeEntries,
     Employee.Email = currentUser.Email && 
     'Week Start' = 
     DateAdd(
     Today(),
     1-Weekday(
     Today(),
     Monday
     ),
     Days
     )
     ),
     Total
    ) / 40 & Char(10) & "Hours"

    also DateAdd is not Delegable, however this should be

    With(
     {
     wDate:
     DateAdd(
     Today(),
     1-Weekday(
     Today(),
     Monday
     ),
     Days
     )
     },
     Sum(
     Filter(
     TimeEntries,
     Employee.Email = currentUser.Email && 
     'Week Start' = wDate
     ),
     Total
     ) / 40 & Char(10) & "Hours"
    )

     

    Please click Accept as solution 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 Thumbs Up.

  • Verified answer
    WarrenBelz Profile Picture
    152,811 Most Valuable Professional on at
    Re: timesheet app

    Hi @Matt383 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution 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 Thumbs Up.

  • Matt383 Profile Picture
    407 on at
    Re: timesheet app

    Thanks Warren

  • Matt383 Profile Picture
    407 on at
    Re: timesheet app

    Thanks Warren

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

Coming soon: forum hierarchy changes

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 803 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 314 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 253 Super User 2025 Season 2

Last 30 days Overall leaderboard