Forum Discussion
anandav
9 years agoSkilled Sharer
Adding rows between start and end dates
Hi All, I am trying to generate a resource allocation map/detail for a given task based on the below sample details. The transformation I need is as below: As you can see I need ...
- 9 years ago
Hi anandav
This calculated table might get close :
Table = VAR myCalendar = ADDCOLUMNS( CALENDARAUTO() , "Day Type" , IF(WEEKDAY([Date])<6,"Weekday","Weekend") ) RETURN ADDCOLUMNS( FILTER( CROSSJOIN( myCalendar ,Table1) , 'Table1'[Start Date] <= [Date] && 'Table1'[End Date] >= [Date] ), "Allocated Hrs",IF([Day Type]="Weekend",0,8 * ('Table1'[Allocation %]/100)) ) - 8 years ago
Hi,
You may refer to my solution here - https://1drv.ms/u/s!AnsG4LrWCkhUn71E5iXvudjRF9MSKg
Hope this helps.
nchambe
8 years agoAdvocate II
Please refer to my post here, which will guide you through step-by-step "expanding date ranges" so there's a row for each date.