Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.