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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
alee023
Frequent Visitor

How to replace rows in column1 with column2 if values in column1 are NULL, with Dataflow?

I have two columns in Dataflow Gen2, and would like to use column 2's values whenever column 1 has a NULL. If there is no replace feature for this, I don't mind creating a new column.

1 ACCEPTED SOLUTION
v-nikhilan-msft
Community Support
Community Support

Hi @alee023 
Thanks for using Fabric Community.
You can create a new column using the condition as below:

I have a sample table which has a column named countryRegionCode with null values.

vnikhilanmsft_0-1714417719271.png


If you consider the Col2 as isPaidTimeOff, then the condition would be as follows:

vnikhilanmsft_1-1714417790902.png

 

vnikhilanmsft_2-1714417837285.png

 

vnikhilanmsft_3-1714417856341.png


Then the new column will get generated as follows:

vnikhilanmsft_4-1714417894747.png



Hope this helps. Please let me know if you have any further queries.



View solution in original post

2 REPLIES 2
v-nikhilan-msft
Community Support
Community Support

Hi @alee023 
Thanks for using Fabric Community.
You can create a new column using the condition as below:

I have a sample table which has a column named countryRegionCode with null values.

vnikhilanmsft_0-1714417719271.png


If you consider the Col2 as isPaidTimeOff, then the condition would be as follows:

vnikhilanmsft_1-1714417790902.png

 

vnikhilanmsft_2-1714417837285.png

 

vnikhilanmsft_3-1714417856341.png


Then the new column will get generated as follows:

vnikhilanmsft_4-1714417894747.png



Hope this helps. Please let me know if you have any further queries.



Hi @alee023 
Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors