Forum Discussion
Anonymous
9 years agoNot applicable
Replace multiple nulls at once in Power Query
I've got a table with a few columns of numerical data, and a few with text data. For all of the numerical columns, where the value is null, I want to replace those with a 0. For columns where it is t...
MarcelBeug
9 years agoCommunity Champion
Thanks for the thumbs up, but I'm really confused by your previous post.
Your question was about replacing null values, so what have column headers to do with that??
Is your initial question answered?
Is your previous post just a remark or a new question?
In the latter case you'd better mark this topic as answered and raise a new topic.
Girts
8 years agoFrequent Visitor
Motivation from solution above ... as I needed to replace null values in the whole table without specifying columns - modified a bit suggested formula:
= Table.ReplaceValue(Source,null,0,Replacer.ReplaceValue,Table.ColumnNames(Source))
where Source - a reference to the data table.
- Anonymous5 years agoNot applicable
many thanks for this. It helped me solve the exact same issue I was having.