Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

SumIf?

Hi folks,

 

Ending for the night with, I hope, a quick question here...

 

I have query1 and query2. 

Query1 has employee, timesheet_day, num_hours fields which hold the total number of hours per day/employee

Query2 has all employees

 

I want to add a column to Query2 that essentially sums num_hours from Query1 within the last week.  I know this will use DateTime.LocalNow().  However, I'm not sure to the syntax of using a SumIf function.

 

Any help would be much appreicated!

 

-Brett

4 Replies