programsam
Board Regular
- Joined
- Feb 10, 2016
- Messages
- 123
Greetings,
Have the following M code where I'm changing 0 values to null (thanks to another user for the help) but am now wanting to fill up because every row has inconsistent data and I want all of the data to be on the top two rows.
I'm now attempting to create a list of column names and stuff it in to Table.FillUp but am getting an expression error that lists the columns and the syntax ("ColumnXXX",) syntax but reads that the columns "of the table" weren't found.
Code below.
Have the following M code where I'm changing 0 values to null (thanks to another user for the help) but am now wanting to fill up because every row has inconsistent data and I want all of the data to be on the top two rows.
I'm now attempting to create a list of column names and stuff it in to Table.FillUp but am getting an expression error that lists the columns and the syntax ("ColumnXXX",) syntax but reads that the columns "of the table" weren't found.
Code below.
Excel Formula:
Custom1 = Table.ColumnNames(#"Transposed Table2"),
Custom2 = List.Transform(Custom1, each {_, each if _ = 0 then null else _}),
Custom3 = Table.TransformColumns(#"Transposed Table2",Custom2),
Custom4 = """"&Text.Combine(Table.ColumnNames(Custom3),""", """)&"""",
Custom5 = Table.FillUp(Custom3,{Custom4})