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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayFBCUpdateCarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

Top Solution Authors