Forum Discussion
Shelley
Post Prodigy
5 years agoHow to Replace Negative Values in Power Query with 0
Hi All, This is probably easy, but I can't seem to figure it out. I have some columns in the query editor that I would like to replace all the negative values with 0. I tried this, and it looks like ...
CNENFRNL
Community Champion
5 years agoShelley , if you're looking to replace negative numbers in some certain column, you might want to try
= Table.TransformColumns(#"Changed Type4", {{"Base List Price (ZP00)", each List.Max({_, 0})}})Anonymous
4 years agoNot applicable
This also replaces nulls with 0
- Anonymous4 years agoNot applicable
To avoid that first replace nulls with some dummy data like ABCDE then replace 0 with nulls then replace back ABCDE with nulls.