Ciao there!
I have a problem with a difference between [column] and Table.Column(Table, "column") in M/PowerBI/PowerQuery.
Example Table:
'#____column
1_______a
2_______b
3_______c
Desired Result:
'#____column
1_______TEST
2_______TEST
3_______TEST
So, I currently have the following code:
= Table.ReplaceValue(PrevQueryTable, each Table.Column(PrevQueryTable, "column"),
"TEST",
Replacer.ReplaceValue, {"column"})
which does not work. Result:
'#____column
1_______a
2_______b
3_______c
This however:
= Table.ReplaceValue(PrevQueryTable, each [column],
"TEST",
Replacer.ReplaceValue, {"column"})
does work. Result:
'#____column
1_______TEST
2_______TEST
3_______TEST
Why? And how can I make sth. like the first do work? (Currently writing a function which uses this with column names as strings.)