I have a large number of columns that where i am trying to add a column to sum all of those columns except for two (a & B). I think i am close with the below code, but there is something wrong w/ it.
The code would add column x
by summing the table #"Renamed Columns"
except for columns a & b
.
SumColumnsExcept = Table.AddColumn(#"Renamed Columns", "x", each List.Sum(Record.ToList(List.RemoveItems(Table.ColumnNames(#"Renamed Columns"),{"a", "b"}))))
thanks in advance!