Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Power BI Community,
I've been struggling for a few days here to figure this one out. Hoping someone here can help me diagnose.
Background
Below is a screenshot example - so given a date, I display the 'Time - Hours' (Time Logged by Employee) from the Time Entries table, the amount of time they are responsible for logging (factoring in holidays), and a 'Workday Delta', which is calculated as follows:
Note: 'Difference between workday and holiday' = 'Workweek' column shown below:
Database Structure
Below is the schema, with the relationship between Time Entries and Workweek as follows:
My Employees Table holds the start/end date:
And I've also merged queries into my Time Entries Table to see if a related relationship would impact this at all.
The Challenge
I can't figure how to add a measure/column that recognizes the End & Start Date of each employee, and 0's our the Workday Delta accordingly
Solved! Go to Solution.
For such scenarios you may want to consider using a disconnected calendar table. That will allow you to compute the measure also for dates where no user has recorded their data (even if they should have).
For such scenarios you may want to consider using a disconnected calendar table. That will allow you to compute the measure also for dates where no user has recorded their data (even if they should have).
Thank you for responding- I did end up using a master date table, but due to the custom nature of some of the calculations I also made a new underlying dataset as well to be more compatible.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |