Forum Discussion
Anonymous
7 years agoNot applicable
Create rows for every date in date-range
Hello all I have a table with a "from" and a "till" date. I need to generate a row for each date in that range, i think ive done this before but cant figure out how i did it. Best regards
- 7 years ago
Hi Anonymous ,
Add a custom column in Query Editor mode.
=List.Dates([From], Number.From([Till]-[From])+1, #duration(1, 0, 0, 0))
Best regards,
Yuliana Gu
v-yulgu-msft
7 years agoMicrosoft Employee
Hi Anonymous ,
Add a custom column in Query Editor mode.
=List.Dates([From], Number.From([Till]-[From])+1, #duration(1, 0, 0, 0))
Best regards,
Yuliana Gu
jeffrock
3 years agoHelper I
Hi v-yulgu-msft ,
Lets say for some rows i have from from and till date same, like from = "25/05/2022" and till = "25/05/2022". will it create only 1 row or multiple rows?
because i have a scenario where in i have some cases with from and till date as same data and other cases with different dates.