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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Merging 2 columns while keeping some values from each of the columns.

Hi guys, thank you for taking the time to read this and helping out.

I'm having some trouble with merging the two columns together.

The attached image is of the columns in question, "gdp" and "2014 GDP, IMF.GDP"

Capture.PNG

I would like to merge the 2 columns together, keeping the the existing "gdp" value except for the 0 values, replacing the 0 values with the corresponding "2014 GDP, IMF.GDP" value.

May I know how would I go about doing that?

 

Thank you in advance!

2 ACCEPTED SOLUTIONS
HotChilli
Super User
Super User

You could add a custom column , something like

if [gdp] > 0 then [gdp] else [2014 gdp.........]

View solution in original post

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

You can just add a conditonal column:
1. In Add column Tab find Coditional Column and follow the steps below.
replace Start date = "gdp" and End Date = "2014 GDP, IMF.GDP"

 

image.png

2. Remove , "gdp" and "2014 GDP, IMF.GDP" column 

 

Regards,
Mariusz

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

4 REPLIES 4
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

You can just add a conditonal column:
1. In Add column Tab find Coditional Column and follow the steps below.
replace Start date = "gdp" and End Date = "2014 GDP, IMF.GDP"

 

image.png

2. Remove , "gdp" and "2014 GDP, IMF.GDP" column 

 

Regards,
Mariusz

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

Anonymous
Not applicable

Hi Mariusz,

 

Thank you so much for your help, I hope you have a nice day ahead!

 

Warmest regards,

Djw

HotChilli
Super User
Super User

You could add a custom column , something like

if [gdp] > 0 then [gdp] else [2014 gdp.........]

Anonymous
Not applicable

Hi HotChilli, Thank you so much for your help, I hope you have a nice day ahead! Warmest regards, Djw

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors