Forum Discussion

laganlee's avatar
laganlee
Helper II
3 years ago

Create a column from another using the previous/current date in another

Hi all.

I want to creat a new column using a condition from another column.

If the other column in the same row has a date, then use that date.

Otherwise use the previous date in that column.

 

Many thanks for looking.

 

1 Reply

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    =Table.FillDown(Table.AddColumn(PreviousStepName,"New",each List.Select(Record.List(_),each _ is date){0}?),{"New"})