Situation is I have defines a list of columns names (LISTCOLUMNS), e.g. Name0, Name1, Name2, Name3, Name4.
For any given row, I know which column name I need and have established the index 1 through 4.
For example,
Row 1 has Index 3 and therefore needs to get the value of Name3,
Row 2 has index 1 and therefore needs to get the value of Name 1.
This formula
= Table.AddColumn(#"Added Custom2", "Custom1", each [ListColumns]{0}) will retrieve the column text "Name0" but not the value for the value of Name0 in that row.
How can I achieve this?