Forum Discussion
Anonymous
6 years agoNot applicable
Missing latest date using List.Min and List.Max
I've generated a calendar table based on dates that exist in another table (so, "Give me all of the dates that appear in this other table"). Here's the m defining the start and end dates in my ca...
Anonymous
5 years agoNot applicable
I just encountered the same problem again, and this solution worked again.
Fowmy , what is it about the Duration.Days function that requires +1? Why won't this work without +1?
Fowmy
Super User
5 years agoAnonymous
By adding +1, you ensure that all days between the dates are included.
If StartDate = 1/1/2020 and EndDate = 1/5/2020 then you need the results inclusive of both dates which is 5.
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
- Anonymous5 years agoNot applicable
Fowmy Got it. So in M, the function Start Date - End Date is not inclusive, and +1 makes it so. Thanks!