Forum Discussion
skv17
Helper II
2 years agoSkip Weekends when adding date
I have two column - Start Date and Days required to deliver. So if Start Date is 13/10/2023 which is on a friday and Days required to deliver is 2,so I need a new column called Arrival cut off da...
- 2 years ago
Please check attached pbix for more details.
Ahmedx
Super User
2 years agoand try this
List.Max( List.Range( List.Select(
List.Generate(()=>
[Start Date],(x)=>x<=Date.AddDays([Start Date],[Day]*5), (x)=> Date.AddDays(x,1)), (x)=> not (Date.DayOfWeek(x) =5 or Date.DayOfWeek(x) =6 or x=[Start Date])),0,[Day]))