I am trying to find a way so if there is a data in column 3 it will change it to null, but if the data is null, then get the value from column 2. I know I can add another column to complete this task, but I am trying to use the TransformColumns function more
Power Query:
let
Source = #table({"Column 1", "Column 2", "Column 3"}, {{"439","772","748"},{"3241","1143","740"},{"1552",null,"531"},{"1308","2494","161"},{"3562","1527",null},{"2043","2162","513"},{"1749","1646","26"},{"3472",null,"427"},{null,"456",null}}),
Custom1 = Table.TransformColumns(Source, {"Column 3", each if _ is null then [Column 2] else null})
in
Custom1