Forum Discussion
cwfmoore
3 years agoRegular Visitor
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.
- 3 years ago
=Table.AddColumn(PreviousStepName,each Date.From(Text.Format("#[year]-#[month]-1",_)))
- 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.
wdx223_Daniel
Community Champion
3 years ago=Table.AddColumn(PreviousStepName,each Date.From(Text.Format("#[year]-#[month]-1",_)))
cwfmoore
3 years agoRegular Visitor
Forgive my amatuer-ish-ness but how would you complete that without the advanced editor? In this interface?
- KNP3 years ago
Super User
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.