Forum Discussion
davi
3 years agoFrequent Visitor
Replace null values from multiple columns with values from other columns in place
I have a table with a level structure with some null values on upper levels and I wanted to replace those empty records with the value from the first previous level that is not null. Conceptually I t...
davi
3 years agoFrequent Visitor
Thanks AlienSx ! I had to create one step per level like bellow and it worked:
Table.FromRecords(Table.TransformRows(#PreviousStep,
(r) => Record.TransformFields(r,
{{"A1", each if _ = null then r[#"A"] else _},
{"B1", each if _ = null then r[#"B"] else _}})))
AlienSx
3 years agoSuper User
Neat!