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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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.



Anonymous
Not applicable

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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