Forum Discussion

big_ozzie1's avatar
big_ozzie1
Frequent Visitor
4 years ago
Solved

Adding custom column to nested table

Is there a way to add a custom column to a nested table that references another column in the nested table? For example, I would like to add a custom "previousRow" column to the nested table in the p...
  • wdx223_Daniel's avatar
    4 years ago

    NewStep=Table.TransformColumns( #"Grouped Rows",{"Count",each Table.FromColumns(Table.ToColumns(_)&{List.RemoveLastN({null}&[externalLoad],1)},Table.ColumnNames(_)&{"PreRows"})})