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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Burubear
Helper I
Helper I

Counting the missing Log entries of employees

Hi There,

 

I'm currently working on employee daily log tracking. I have this database where each employee enters their daily task. As part of admin task, I want to see how many entries they missed/ forgot to do their entry. 

Originally i just use simple total count of entries from the database less total count of workweeks (simple Mon-Fri)

So if I lay it out on a table visual with the Employee name, they will give the missing count. Problem is it's not including the employees start date or if the partner is resigned. So let's say, the work week (including holidays) is 262 days for 2020, New employees starting in between have an issue of many missing entries since the count still includes the dates before their start date. 

 

EDIT: Sample data

Employee NameStart DateEnd Date
Employee 19/1/2020 
Employee 28/10/202010/15/2020
Employee 31/1/2020 

 

For work week, I create a conditional column in my calendar table that for all Mon - Fri, set as 1 and 0 if not

     Work Week = Count ('Calendar[workweek]) 

     Log Count = Distinctcount('Database'[Log date])

     Missing Entry = [Work Week] - [Log Count]

 

Sample Current Scenario for Year 2020

Employee NameLog CountWork WeekMissing Entry
Employee 184262178
Employee 231262231
Employee 32602622

 

I want to incorporate in the count workweeks to just count the dates from where that employee started upto today. and same goes with if the partner resigned to stop the count of workweek after the resigned date

GOAL sample:

Employee NameLog CountWork WeekMissing Entry
Employee 184851
Employee 2314514
Employee 32602622

 

 

Sorry if it's a bit confusing. Let me know where can I further explain the scenario if it's not enough

1 REPLY 1
edhans
Super User
Super User

You are going to have to provide sample data and expected results. How to get good help fast. Help us help you.

How To Ask A Technical Question If you Really Want An Answer

How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Solution Authors