Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

ReplaceValue many collumns if is not null

Hi again folks.

I need to replace "NOT(null")" in many collumns for "Grey" using powerquery.

For example:

This

COLUMN 01COLUMN 02COLUMN 03
nullghinull
abcnullmno
defjklnull

 

In that:

COLUMN 01COLUMN 02COLUMN 03
nullGreynull
GreynullGrey
GreyGreynull

 

Ty guys!!!

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Given that there is not a "replace all not null values" option in Power Query, you could try to change data type and replace the errors to implement it.

1.gif

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

if(table[column]<> null, "Grey")

 

Refer how to use

https://www.myonlinetraininghub.com/power-query-if-statements

https://community.powerbi.com/t5/Desktop/IF-Statement-using-Power-Query/td-p/122030

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you amitchandak but I don't want to create a new column, I need to replace the value.

Hi @Anonymous ,

Given that there is not a "replace all not null values" option in Power Query, you could try to change data type and replace the errors to implement it.

1.gif

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors