Forum Discussion
Anonymous
6 years agoNot applicable
List dates between two dates
Hi all, I'm looking for a formula to list dates between 2 dates. Suppose I have the following example: Column A) InitialDate: 19/07/2019 Column B) EndDate: 19/10/2019 so, I would like to get as r...
- 6 years ago
Hi Anonymous
you don't use it as a function. Then the "each" isn't ambigous any more.
Try this for result instead:
Result = List.Transform({0..NoOfIntervals}, (x) => Date.AddMonths([FROM], x))
Anonymous
6 years agoNot applicable
Hi,
I thankful with the early repply, however I'm still facing errors. Please check the screeshots for more details.
Thanks in advance
Inacio11
ImkeF
Community Champion
6 years agoHi Anonymous
you don't use it as a function. Then the "each" isn't ambigous any more.
Try this for result instead:
Result = List.Transform({0..NoOfIntervals}, (x) => Date.AddMonths([FROM], x))