Hello!
Been a long time since I've posted/commented here. Such a great community. I'm so glad to see it's still going strong and has added MS's PowerBI/PowerPivot to the mix.
I am a noob in that regard, having slowly worked through Rob Collie's DAX Formulas for PowerPivot and other online training (Chandoo, ExcelIsFun, etc).
I have a very distinct issue and I can't seem to figure out how to use PowerPivot to make it happen. This is important because if I don't, I will lose a lot of powerful functionality downstream.
First an older file with the exact same issue in Excel:
Basically, what I am doing is trying to discern the Available hours for any given chosen week (Rows 1 and 2), based on whether the person was hired and/or fired.
Back then, I knew this was kludgy when I made it originally, but given the structure of the rest of the file, it worked and allowed me to do what I needed to do.
Now, I have a need to more dynamically do this (the original approach was dynamic for a set amount of weeks) given my PowerPivot approach and for much more flexibility.
I have a raw data table that has hours worked by day.
I have a calendar/dates table that has all the pertinent date breakdowns
I have a StaffList table that has each person's start and stop date (if applicable)
From here, I'm trying to create a measure to figure out precisely what I did above, but am totally stuck. I don't know how to relate the Start/End dates with the Week Start/Week End dates with the person's hours for the week. The relationships are fCradle <-> dDate based on date; fCradle <-> dStaffList based on Full Name.
This seems doable, but I can't crack it. Is there someone who can provide some direction on whether this is possible and, if so, how to get started? I've been at this for hours and hours over a few days, but no luck.
Based on the stuff I've read, I thought maybe a Disconnected Table that uses Week Selection (Week Number?) as a slicer might be one step, but I still need to relate each week back to the Start/End date for the employee so I am flummoxed.
Thank you so much for reading. I know this longer than a typical question and a bigger ask.
Been a long time since I've posted/commented here. Such a great community. I'm so glad to see it's still going strong and has added MS's PowerBI/PowerPivot to the mix.
I am a noob in that regard, having slowly worked through Rob Collie's DAX Formulas for PowerPivot and other online training (Chandoo, ExcelIsFun, etc).
I have a very distinct issue and I can't seem to figure out how to use PowerPivot to make it happen. This is important because if I don't, I will lose a lot of powerful functionality downstream.
First an older file with the exact same issue in Excel:
Basically, what I am doing is trying to discern the Available hours for any given chosen week (Rows 1 and 2), based on whether the person was hired and/or fired.
- So, if they weren't hired before the week in question, 0 available hours.
- If they where hired before the week started and did not leave/term until after that week, then all available hours (40)
- If they were hired before the week started and left/termed that week, find the networkdays up until that point and determine available hours (8*number of days)
Back then, I knew this was kludgy when I made it originally, but given the structure of the rest of the file, it worked and allowed me to do what I needed to do.
Now, I have a need to more dynamically do this (the original approach was dynamic for a set amount of weeks) given my PowerPivot approach and for much more flexibility.
I have a raw data table that has hours worked by day.
I have a calendar/dates table that has all the pertinent date breakdowns
I have a StaffList table that has each person's start and stop date (if applicable)
From here, I'm trying to create a measure to figure out precisely what I did above, but am totally stuck. I don't know how to relate the Start/End dates with the Week Start/Week End dates with the person's hours for the week. The relationships are fCradle <-> dDate based on date; fCradle <-> dStaffList based on Full Name.
This seems doable, but I can't crack it. Is there someone who can provide some direction on whether this is possible and, if so, how to get started? I've been at this for hours and hours over a few days, but no luck.
Based on the stuff I've read, I thought maybe a Disconnected Table that uses Week Selection (Week Number?) as a slicer might be one step, but I still need to relate each week back to the Start/End date for the employee so I am flummoxed.
Thank you so much for reading. I know this longer than a typical question and a bigger ask.
Last edited: