Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Append column names in nested table from value of another column

Hello everyone, could I please get help from  anyone on how to rename all column names from the tables in "Custom" column and append them with the value from column "Code"
  • Vijay_A_Verma's avatar
    2 years ago

    Use this code. Replace #"Grouped Rows" with your previous step name

    = Table.FromRecords(Table.TransformRows(#"Grouped Rows", (r)=> [Code = r[Code], Custom = Table.TransformColumnNames(r[Custom], (x)=>x&Text.From(r[Code]))]))