Radoslaw Poprawski
Active Member
- Joined
- Jun 19, 2021
- Messages
- 398
- Office Version
- 365
- Platform
- Windows
Hi all,
so basicly:
I have a specified column names as list (can be a table aswell if needed)
Now I need to add those names into my query and populate based on some values from this query.
so to add multiple columns in 1 step i usualy use syntax:
=
However when i replace Col1 and Col2 with syntax like:
That returns a text value im getting an error:
So how do I fix this error?
Or how can add a columns from a list and populate it?
I would not want to to add 20 ,30 columns manualy, and this way it would be dynamic
so basicly:
I have a specified column names as list (can be a table aswell if needed)
Now I need to add those names into my query and populate based on some values from this query.
so to add multiple columns in 1 step i usualy use syntax:
=
Power Query:
Table.AddColumn( #"Added Custom", "Record", each [
Col1 = "A",
Col2 = "B"
...Col99999 -"ZZZ"
])
Power Query:
Table.ColumnNames(MyQuery){0}
So how do I fix this error?
Or how can add a columns from a list and populate it?
I would not want to to add 20 ,30 columns manualy, and this way it would be dynamic