Forum Discussion
inawab
4 years agoFrequent Visitor
Adding date to date with conditional
Hi Everyone I want to add days to Date with condition if Value in column Shift = Night, but it gave error under Date.AddDays IF [Shift] = "Night" then (Date.AddDays ([Date],1)) elce [Date] ...
- 4 years ago
Hi inawab ,
Here my result:
And here the code I used:
if [Shift] = "night" then Date.AddDays([Date], 1) else [Date]
Hope this helps ๐
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
tackytechtom
4 years agoMost Valuable Professional
Hi inawab ,
Here my result:
And here the code I used:
if [Shift] = "night" then Date.AddDays([Date], 1) else [Date]
Hope this helps ๐
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/