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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
VidSagar
Frequent Visitor

can't find the missing dates from Date table those the users not enters the time sheet dates for day

Hi,
 
I have WorkLog table, in the table 'WorkLog Date' column contains the employees daily entered time sheet information as how much time they spent for issue by filling hours daily.. In my case, i have to find if an employee missed to enter the time sheet for the day, need to show the specific day for Missing day of filling time sheet. (Not Weekends, Working Day). I have created a LookUp table as DATE table from the period of 2016 to 2020 and applied the filter on the DATE table by Year wise and Month wise, and i have created a relationship for WorkLog table to DATE table, and wrote a calculation like as,
 
Missing Dates =
if(if(ISBLANK(LOOKUPVALUE(WorkLogs[Dated],
WorkLogs[Date],'DATEKey'[Date]))=true,
if(DATEKey[Date]>TODAY(),0,DATEKey[Date]),0)<Min(WorkLogs[Dated]),0,DATEKey[Date])
 
and
 
DAY = SWITCH(WEEKDAY(DATEKey[Missing Dates],2),1,"Monday",2,"Tuesday",3,"Wednesday",4,"Thrusday",5,"Friday",6,"Saturday",7,"Sunday")
but its not giving expected results,
 
Could someone guide me how to solve this issue..
 
Thanks.............

4 ACCEPTED SOLUTIONS
vanessafvg
Super User
Super User

@VidSagar can you post screenshots of the data with the relationship view?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

Hi @VidSagar,

 

First of all, I want to confirm that you wish to find the missing work date in your fact table, right?

 

If this is a case, perhaps you can take a look at below steps:

 

1. Filter on calendar table to get the work date(Monday to Friday).

2. Get users list from fact table and use 'CROSSJOIN' function to create the all users work date table.

3. Use 'EXCEPT' function to remove fact table records form all users general work date table, then you will get the not match work date.

 

I think if you share the sample file it will be help for write the detail formulas.

 

Regards,

Xiaoxin Sheng

 

View solution in original post

Hi XiaoXin, thank you for your suggestion, 

 

here i am facing the issue as below...worklog missing.pngdatetable.pngworklog table.pngtable.png

 

I have approached & tried multiple ways, Whenever if i am selecting an employee name in my report as per above,

 

Here, its not displaying dates for Employees working date missing time sheet days. I.E. for above employee has filled last time sheet on 7/17/2017, after that 7/18/2017 and 7/19/2017 he missed to fill the time sheets for these two days, whenever if i am seleting the employee name by applying the filter for Year 2017, JULY Month its not showing the Missing dates of Working days "7/18/2017 and 7/19/2017" in working day slicer, its displays as blank and for Weekend slicer displays "Saturday & Sunday". Not Displaying Missing Working Day Time Sheets "7/18/2017" & "7/19/2017"

 

Could you plz help on this....

 

Thanks...

View solution in original post

Anonymous
Not applicable

Hi @VidSagar,

 

Can you please share us sample pbix file to test?

 

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
vanessafvg
Super User
Super User

@VidSagar can you post screenshots of the data with the relationship view?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Untitled.pngUntitled1.png

Anonymous
Not applicable

Hi @VidSagar,

 

First of all, I want to confirm that you wish to find the missing work date in your fact table, right?

 

If this is a case, perhaps you can take a look at below steps:

 

1. Filter on calendar table to get the work date(Monday to Friday).

2. Get users list from fact table and use 'CROSSJOIN' function to create the all users work date table.

3. Use 'EXCEPT' function to remove fact table records form all users general work date table, then you will get the not match work date.

 

I think if you share the sample file it will be help for write the detail formulas.

 

Regards,

Xiaoxin Sheng

 

Hi XiaoXin, thank you for your suggestion, 

 

here i am facing the issue as below...worklog missing.pngdatetable.pngworklog table.pngtable.png

 

I have approached & tried multiple ways, Whenever if i am selecting an employee name in my report as per above,

 

Here, its not displaying dates for Employees working date missing time sheet days. I.E. for above employee has filled last time sheet on 7/17/2017, after that 7/18/2017 and 7/19/2017 he missed to fill the time sheets for these two days, whenever if i am seleting the employee name by applying the filter for Year 2017, JULY Month its not showing the Missing dates of Working days "7/18/2017 and 7/19/2017" in working day slicer, its displays as blank and for Weekend slicer displays "Saturday & Sunday". Not Displaying Missing Working Day Time Sheets "7/18/2017" & "7/19/2017"

 

Could you plz help on this....

 

Thanks...

Anonymous
Not applicable

Hi @VidSagar,

 

Can you please share us sample pbix file to test?

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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