Forum Discussion
Filling blank values based on a string in another column
- 2 years ago
vcb_001
Try these steps#"Added Conditional Column" = Table.AddColumn(Source, "New Collumn", each if [SecondColumn] = "Unkown" then "Sales" else [SecondColumn]), #"Removed Other Columns" = Table.SelectColumns(#"Added Conditional Column",{"FirstColumn", "New Collumn"}) in #"Removed Other Columns"
Hi vcb_001
You can add a conditional column in the Query Editor for this table. If you need some help to do this I can post you in the right direction.
Add a conditional column - Power Query | Microsoft Learn
I don't want to create a new column, I need to replace values.
- DemoFour2 years ago
Continued Contributor
Hi vcb_001
As you stated that you want to replace the null based on another column, then you will need some logic to do this.
You can add the logic to bring through the column you are using into the new column with the replaced values as well, then remove that column, so you are left with the one column and the values you need.
This is a simple transformation in PQ and will evaluete the table at source and push trhough the desired output to use in your model.