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

Attendance report that shows daily employee attendance even if no data was recorded

Hi,

 

I am trying to put together an attendance report that tells me what days an employee attended the office per week. I only have data collected for days where they came in, and I would like to trasnform or visualize the data so that it displays a column for "attended" or "did not attend." This would allow me to add slicers that narrow down the data in the report even for days with no data.

 

I tried using CROSSJOIN so that all names are assigned a day of the year, and I was trying to find a way to combine that with the original data set so that I can clean the data and have a sort of date table with all employees. This was close to what I wanted but I am left with a lot of null values for the rest of the columns since I only use the name and a date table to create a the name-date table. It is important that the data also lets me create a slicer specifically for " attended" or "did not attend" and for me to count "days attended per week" so I can filter the data down to values 0-5 days/week.

 

Ultimately, I want each name to have a daily data entry but I am not sure how I can add the missing days with no data into the original set. Does anyone have a solution for this? I included some sample data - the card numbers correspond to individual employees.

4 REPLIES 4
v-mengzhu-msft
Community Support
Community Support

Hi @Anonymous ,

 

I'm sorry I don't clearly understand what you mean, are you trying to count the number of days an employee works per week? I see this column in your sample data.

vmengzhumsft_0-1660643249236.png

Is this the number of days worked?

 

Also, I have a question about what you mean "add the missing days with no data into the original set"?

 

I'm sorry there are so many things I don't understand and I would be very happy if you could answer my doubts.

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi thank you for your response!

 

Yes I am trying to find the number of days an employee attended per week for every week of the year. o I want a column telling me what day of the week it is, and a column with the # of days attended per week as seen in the table below. 

 

I also want to see a column for each day of the week telling me if they attended for that day : (e.g. Y/N). Currently I only have days when they did attend and I want to add days when they didn't. 

 

By missing days, I mean the days where an employee didn't show up. So If they showed up 8/16 but not 8/17, they only appear for 8/16 on the data set. But I want the table to also show a value for 8/17 telling me they did not attend. 

 

Sorry the data set isn't the best to work with. I may repost with a new data set or rephrase the question. Thank you again!

Hi @Anonymous ,

 

Thank you very much for your patience and I look forward to receiving a sample data or a PBIX file (make sure not to include private data) so that I can better help you with your test calculations.😊

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Here is some sample data:

DateWeek of YearWeekDay NameDay of WeekOfficeCard NumberDIstinct Staff Count / WeekOffices / Employee# Days Atttended / WeekEmployees / Office
1/3/2022101/03 - 01/07Monday1NEW YORK CITY2302663101163
1/11/2022201/10 - 01/14Tuesday2NEW YORK CITY2248776101163
1/18/2022301/17 - 01/21Tuesday2NEW YORK CITY2248790101163
1/20/2022301/17 - 01/21Thursday4NEW YORK CITY270449011163
1/24/2022401/24 - 01/28Monday1NEW YORK CITY2704412312163
1/26/2022401/24 - 01/28Wednesday3NEW YORK CITY106612311163
1/27/2022401/24 - 01/28Thursday4NEW YORK CITY2704412312163
1/28/2022401/24 - 01/28Friday5NEW YORK CITY29938123101163
1/31/2022501/31 - 02/04Monday1NEW YORK CITY2704414112163
2/1/2022501/31 - 02/04Tuesday2NEW YORK CITY2700814112163
2/1/2022501/31 - 02/04Tuesday2NEW YORK CITY2704414112163
2/1/2022501/31 - 02/04Tuesday2NEW YORK CITY28388141101163
2/2/2022501/31 - 02/04Wednesday3NEW YORK CITY22929141101163
2/3/2022501/31 - 02/04Thursday4NEW YORK CITY2700814112163
2/4/2022501/31 - 02/04Friday5NEW YORK CITY29938141101163
2/8/2022602/07 - 02/11Tuesday2NEW YORK CITY2700814212163
2/8/2022602/07 - 02/11Tuesday2NEW YORK CITY2704414212163
2/8/2022602/07 - 02/11Tuesday2NEW YORK CITY29938142101163
2/10/2022602/07 - 02/11Thursday4NEW YORK CITY2700814212163
2/10/2022602/07 - 02/11Thursday4NEW YORK CITY2704414212163
2/14/2022702/14 - 02/18Monday1NEW YORK CITY2704414113163
2/15/2022702/14 - 02/18Tuesday2NEW YORK CITY2700814112163
2/15/2022702/14 - 02/18Tuesday2NEW YORK CITY2704414113163
2/17/2022702/14 - 02/18Thursday4NEW YORK CITY2700814112163
2/17/2022702/14 - 02/18Thursday4NEW YORK CITY2704414113163
2/17/2022702/14 - 02/18Thursday4NEW YORK CITY27775141101163
2/24/2022802/21 - 02/25Thursday4NEW YORK CITY2704414511163
3/1/2022902/28 - 03/04Tuesday2NEW YORK CITY2704413613163
3/1/2022902/28 - 03/04Tuesday2NEW YORK CITY29938136102163
3/2/2022902/28 - 03/04Wednesday3NEW YORK CITY22929136102163
3/2/2022902/28 - 03/04Wednesday3NEW YORK CITY2704413613163
3/3/2022902/28 - 03/04Thursday4NEW YORK CITY2700813611163
3/3/2022902/28 - 03/04Thursday4NEW YORK CITY2704413613163
3/4/2022902/28 - 03/04Friday5NEW YORK CITY29938136102163
3/7/20221003/07 - 03/11Monday1NEW YORK CITY2704415913163
3/8/20221003/07 - 03/11Tuesday2NEW YORK CITY2700815912163
3/8/20221003/07 - 03/11Tuesday2NEW YORK CITY2704415913163
3/10/20221003/07 - 03/11Thursday4NEW YORK CITY2700815912163

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.