Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I am trying to develop a measure that calculates available work hours per day, but accounts for part time employees and also public holidays. Full time employees are easy as standard hours per day = 8, or 0 if there is a public holiday on that day.
However I want to be able to have if the day name = Monday, then sum the relevant values for each resource. The main reason it needs to be broken up like this is if a public holiday falls on a day an individual doesnt work, then they dont get reduced hours. I have a standard calendar_lookup which has dates and related info (day name, day number, start of week, month, year etc) as per the below:
My data is set out similar to the below:
Resource | Monday | Tuesday | Wednesday | Thursday | Friday |
A | 0 | 8 | 8 | 8 | 0 |
B | 7.5 | 5 | 0 | 7.5 | 5 |
C | 8 | 0 | 8 | 8 | 0 |
All others | 8 | 8 | 8 | 8 | 8 |
I have tried unpivoting the data but either way I cant seem to get these to talk. Any help would be appreicated!
Thanks in advance!
Hi @Nicole_ ,
According to your description, the public holiday you are referring to is to be excluded, does it come from a separate date list?
Looking forward to your reply.
Best Regards,
Henry
Yes, it is in a separate date list that is connected to the calendar lookup and includes date, day name and PH name.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
65 | |
45 | |
39 | |
31 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |