Forum Discussion
aherabit
Helper I
3 years agoAddColumns function with criteria
Hi Folks. Trying to do the following: - search for column headers ending with '_time' - duplicate, or AddColumns, column and change type. existing table table after change Thank...
- 3 years ago
it will be easier to process this in PowerQuery
NewStep=Table.FromRecords(Table.TransformRows(PreviousStepName,each Record.TransformFields(_,List.Transform(List.Select(Record.FieldNames(_),each Text.EndsWith(_,"_time")),(x)=>{x&"_copy",(y)=>Time.From(Record.Field(_,x))}),2)))
- 3 years ago
Thank you very much!
wdx223_Daniel
Community Champion
3 years agoit will be easier to process this in PowerQuery
NewStep=Table.FromRecords(Table.TransformRows(PreviousStepName,each Record.TransformFields(_,List.Transform(List.Select(Record.FieldNames(_),each Text.EndsWith(_,"_time")),(x)=>{x&"_copy",(y)=>Time.From(Record.Field(_,x))}),2)))
- aherabit3 years ago
Helper I
Thank you very much!