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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Update Carousel

Fabric Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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