Forum Discussion
Anonymous
4 years agoNot applicable
How to simplify M code for multiple actions, each on particular columns within nested tables
Hi there, I have working M-code, but it looks to me like it could be simplified significantly. Since I'm not exactly a master of M-code syntax, I'd appreciate it if someone could give me a clue as...
Anonymous
4 years agoNot applicable
I'm sure that you could use Table.TransformColumns instead of Add Column, which would give you a single step for filling up, and eliminate the need for the Remove Column steps. You can also add the MissingField.Ignore parameter as the optional parameter in Table.TransformColumns, so that if any particular columns are not present, they will be ignored by the M script.
--Nate
Anonymous
4 years agoNot applicable
Hi Nate,
tried to figure it out by Table.TransformColumns, but unfortunatly I´m not capable to find the right syntax to get the nested tables transformed then by Table.FillUp.
Possibly a screenshot helps to understand. This is the initial situation:
This is how it looks like after one of the FillUp steps: