Forum Discussion
How to Replace Negative Values in Power Query with 0
Shelley , 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})}})- Shelley5 years ago
Post Prodigy
Thank you! This appears to have worked on all four columns to which I applied it.
- osama_ayoub3 years ago
Helper III
can I use this function but not only in one columns but in all my table columns in a dynamic way without mention all the column names of the table ?
thanks in advance - Anonymous4 years agoNot applicable
Thank you so much, this worked.
- Anonymous4 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.
- Syndicate_Admin3 years ago
Administrator
@CNENFRNL How can I use a list with the names of the columns where I want to make that replacement? That is, I want to perform this replacement in more than one column, and I have the data of the names of the columns in a list.
Grcs