Forum Discussion
monojchakrab
3 years agoResolver III
Insert column in Tables, using values from another column
Hiya good people, I am trying to solve, possibly a wierd problem. I have a table as below : What I want to do is as follows : In each of the table under the [Data] column, i want to...
- 3 years ago
NewStep=Table.ReplaceValue(PreviousStepName,each [Account],"",(x,y,z)=>Table.AddColumn(x,"Account",each y),{"Data"})
monojchakrab
3 years agoResolver III
wdx223_Daniel - That worked like a charm, although I could not understand the logic fully...
E.g. how is the function getting its values for x,y & z?
- wdx223_Daniel3 years agoCommunity Champion
the 4th parameter of Table.ReplaceValue is a function of Replacer.ReplaceText or Replacer.ReplaceValue
and, about the syntax of those function you can refer to this site.
https://learn.microsoft.com/en-us/powerquery-m/replacer-functions