Forum Discussion
anandav
Skilled Sharer
9 years agoAdding 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.
anandav
Skilled Sharer
8 years agoThanks Ashish_Mathur
Ashish_Mathur
Super User
8 years agoYou are welcome.