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.
Hi Guys
I am working on greating a staff utilisation report which looks at;
1. actual hours logged vs expect hours as a percentage
2. expected hours to be pro rata if staff leaver or join in that period from;
a) hire date to last day of the month
b) start date to termination date
I am coming stuck on point 2, I can share my data if someone wants to have a look. The formula I am using is below
Total Expected = if('Timecard Split'[Year-Mon - LDoTM]='Timecard Split'[Year-Mon - Hire Date],CALCULATE(sum('Calendar'[Weekday?]),DATESBETWEEN('Calendar'[Date].[Date],'Timecard Split'[Hire Date],'Timecard Split'[Year-Mon - LDoTM]))*8,if('Timecard Split'[Year-Mon - LDoTM]='Timecard Split'[Year-Mon - Termin. Date],CALCULATE(sum('Calendar'[Weekday?]),DATESBETWEEN('Calendar'[Date].[Date],'Timecard Split'[Start of Month],'Timecard Split'[Termination Date]))*8,IF(AND('Timecard Split'[Year-Mon - LDoTM]<>'Timecard Split'[Year-Mon - Hire Date],'Timecard Split'[Year-Mon - LDoTM]<>'Timecard Split'[Year-Mon - Termin. Date]),'Timecard Split'[ExpectedMonthHOurs])))
LDoTM = last day of the month
Also let me know if you need anything else to add.
Many thanks
Ebrima
Solved! Go to Solution.
HI @4c_em,
It seems like you calculate available working hours between two date column, I'd like to suggest you to take a look at below link which has similar requirement:
Regards,
Xiaoxin Sheng
HI @4c_em,
It seems like you calculate available working hours between two date column, I'd like to suggest you to take a look at below link which has similar requirement:
Regards,
Xiaoxin Sheng
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
141 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
219 | |
89 | |
73 | |
66 | |
60 |