Hi All
Wondering if you can help me out here …
Trying to add a column in Power Query which ultimately says
(1) if the Estimated Completion Date “Is Less Than” Todays Date then return the start date plus 1 month
(2) if the Estimated Completion Date “Is equal to Blank” then return the start date plus 1 month
(3) if Estimated Completion Date “Is Less Than” the start date then return the start date plus 1 month
if ([Est Comp Date] < DateTime.Date(DateTime.FixedLocalNow()) or ([Est Comp Date] = BLANK() ) or ([Est Comp Date] < [#"*Start Date"])) then Date.AddMonths([#"*Start Date"],1) else [Est Comp Date]
Majority of it seems to work except for the handling of Blank() which returns an error.
I’ve tried type.nullable that didnt work either
any help much appreciated
Thanks
Martyn