Forum Discussion

cwfmoore's avatar
cwfmoore
Regular Visitor
3 years ago
Solved

Convert a [MONTH and [YEAR] column to a DATE.

Hi,   I have a csv document with a [MONTH] and [YEAR] column as shown. I would like to comine these two into a date column making it eg: 01/08/2022 for each entry.   Kindest regards.  
  • wdx223_Daniel's avatar
    3 years ago

    =Table.AddColumn(PreviousStepName,each Date.From(Text.Format("#[year]-#[month]-1",_)))

  • KNP's avatar
    KNP
    3 years ago

    Paste this portion in...

    Date.From(Text.Format("#[year]-#[month]-1",_))

     

    If this solves your problem, please accept wdx223_Daniel's answer above as the solution. Not this one.