cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cwent
Helper I
Helper I

Report submittal compliance

Each week managers at our company are required to submit timesheets for their team, I am trying to create a dashboard showing the status of the timesheet submittal by all managers. 

 

Currently, I have a database that immediately updates to show the timesheet information once submitted, this includes a column named "Created By" containing the manager's name. In a separate database, we have our employee directory information including "employee name" and "job_title".  

 

I would like to create a table that updates as employees submit their timesheets (similar to what I have below), I would like the "timesheets submitted" column to indicate how many timesheets they've entered for the week (there should always be more than 1), and if they've not submitted one I'd like it to read 0. I'd like this column to also reset each work week. 

 

Employee NameJob Titletimesheets submitted
John DoeManager4
David JacksonManager0
Deb BakerManager5
Ryan WilliamsManager2
Drew BranchManager0
Pam BrownManager

3

 

I've been able to use the following formula to count the number of time entries from each manager:

Number of Timesheets =
var countoftimesheets =
CALCULATE(COUNTA('public procore_timecard_entries'[created_by_name]),
FILTER(ALL('public procore_timecard_entries'),'public procore_timecard_entries'[created_by_name]=ProjectUser[Full Name]))
return
if(ISBLANK(countoftimesheets),0,countoftimesheets)
 
However, I've not been able to figure out how to get the "Timesheets Submitted" column to reset every week. I have a weeknum column which is set to include the proper week start and end days, but don't know how to use that column to reset the count. 
 

Any direction would be greatly appreciated, I've been trying to figure this out for some time now. 

 

thanks!

1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors