I have a column that contains dates, but some are left blank or have a 0. When the date is 0 or blank, I want it to display the current date plus 180 days. I first selected the column and replaced value of blank or 0 with 19010101, then built a custom column
if [columnname] = 19010101 then Date.AddDays(DateTime.LocalNow, 180) else [columnname]
It actually pulls dates in like this from the excel spreadsheet. When I convert this column to Dates, I get an error in the columns that have a 0. I am not well versed in editing in Advanced Editor so a Custom Column solution would be best for me, if available. Thanks for your help.