Forum Discussion
1up
Resolver I
6 years agoQuery Editor - Replacing values in text string
Hello, I am trying to replace a text substring in a column, ideally directly in the Query Editor. Let's call the column 'YearMonth', fields look like this: "202001", "201912", etc. I'd like t...
az38
Community Champion
6 years agoHi 1up
try this monster custom column
= Text.Combine({Text.Range([Date],0,4),Text.Range(Date.MonthName(#date(Number.FromText(Text.Range([Date],0,4)),Number.FromText(Text.Range([Date],4,2)),1)),0,3)})
but be sure that [Date] column has a Text format before add new column step
1up
Resolver I
6 years agoThanks a kudos for the help.