DAX to calculate Total Hours based on different dates
I am working on a timesheet report and facing one issue.
As of now, to calculate Available Hours of employees we are calculating based on
Count of Employees selected * Count of Weeks Selected * 40
Now manager requesting to calculate Available hours based on Employee’s joining date.
If I am selecting 3 employees from Team Slicer and first 3 months of 2021, so for E1 and E2 employees it should calculate from their joining date and not from the week selected and for E3 it should calculate from first week selected as it is greater than joining date.