Forum Discussion
Expand a date range
- Anonymous7 years ago
Alright,
Then righ-click the original table and select Reference --> this creates another table that references the original TP table (i.e. if the TP table gets updated the updates also carry on to the expanded ), then apply the steps needed in the new table to get the desired result and maintain the origianl table.
An updated pbix: pbix
Br,
T
Hi Anonymous,
Here's how to do it with Power Query.
In the Query Editor, calculate the days in between the end and start dates:
Then add another column that generates all the dates between start and end:
List.Dates([Start],[Subtraction],#duration(1,0,0,0))
After that, just expand the new column with the date list.
Here's a pbix with everything: pbix
Br,
T
- Anonymous7 years agoNot applicable
Hi Anonymous
thank you for this, however I need the expansion in a brand new table.
That's why I would suggest a formulated column/table.
But the TP table should remain as it is (it has another purpose)
- Anonymous7 years agoNot applicable
Alright,
Then righ-click the original table and select Reference --> this creates another table that references the original TP table (i.e. if the TP table gets updated the updates also carry on to the expanded ), then apply the steps needed in the new table to get the desired result and maintain the origianl table.
An updated pbix: pbix
Br,
T