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

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

Reply
walterdp
Helper I
Helper I

How to create column based on content of other columns

Hi all:

I have a table with a column with missing data. I want to fill that missing data based on what other columns have.

Let me explain. Here's in the example below, the column "Producto cat 2" has missing information. 

walterdp_1-1655478592220.png

I can infer what should be there based on the other 2 columns. For instance, if in column "Resumen" appears "soporte en correo corporativo...", then missing data  in column "Producto" would be "CORREO". If column "Resumen" has "soporte estación de trabajo" then missing data would be "ESTACION DE TRABAJO", but if in column "Grupo Resolutor" data is "WMOS" then missing data would be "WMOS".

So, in the end, this should be like

 

walterdp_2-1655479066325.png

 

Any help would be really appreciated!


Thanks in advance.


Walter 

 

 

 

1 ACCEPTED SOLUTION

The only other thing I can suggest is changing the type of the Producto cat 2 column to text before you create the new conditional column.

View solution in original post

6 REPLIES 6
walterdp
Helper I
Helper I

Hi, @johnt75 

 

I've tried that but didn't work:

when leaving field blank

walterdp_0-1655489269187.png

when using "" 

walterdp_1-1655489301397.png

 

walterdp_2-1655489325742.png

 

 

The only other thing I can suggest is changing the type of the Producto cat 2 column to text before you create the new conditional column.

Thanks, @johnt75 . Now it does work!

walterdp
Helper I
Helper I

Hi, @johnt75 

 

Thanks for replying. I've tried what I understood your idea was, but it seems it did not work. Here is the configuration of the conditional column

 

walterdp_0-1655480231398.png

And here's the result: new column "Producto" with same data as "Producto cat 2"

 

walterdp_1-1655480317944.png

 

Am I missing something?

 

Thanks

 

It looks like in the original column the value is not null but actually has something in it, either the empty string or possibly a space or something. Instead of putting null in the first condition just leave that box empty

johnt75
Super User
Super User

Create a new conditional column in Power Query. The first condition would be if Producto cat 2 is not null then use that value, then add your additional conditions.

Finally you can delete the original column and rename the new column appropriately

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.