Forum Discussion
Moonlight987
3 years agoFrequent Visitor
Referencing columns from previous step dynamically (M Code)
Hi Community, in M, instead of mentioning particular columns in STEP5, I would rather make some reference to previous step. Current: #"STEP4" = Table.SelectColumns(#"STEP3",{"Column6...
ppm1
Solution Sage
3 years agoYou can use Table.ColumnNames() for that. Example below.
#"STEP5"=Table.ReplaceValue(#"STEP4",null,"",Replacer.ReplaceValue,List.LastN(Table.ColumnNames(#"STEP4"), 4))
Pat