Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

add date value automatically

Dear All,

Hope someone can help me with the following:

I have a table with a column DATE IN with date values.

Sometimes one of the fields in this column is empty.

I want to add an extra column (custom column?) in power query which copies all the dates from the DAT IN column and fills the empty field with the date of TODAY.

Thanks!

John

 

 

 

  • Anonymous , a new column

    if [date in] = null then DateTime.Date(DateTime.LocalNow()) else [Date in]

2 Replies

  • Anonymous , a new column

    if [date in] = null then DateTime.Date(DateTime.LocalNow()) else [Date in]

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi amitchandak ,

       

      Thanks for your help, problem solved.

       

      John