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

replace null values with content from another column based on condition

hi everyone,

 

i have a problem with replacing null values with content from other column. The scenerio is something like this. let say i have three columns A,B,C

ABC
X1010
X.1null10
X.2null10
Y1111
Y.1null11
Y.2null11

 

C is my custom column created based on data from two columns A and B. please help with the query to construct above scenario.

 

Thanks,

Sivaaprataap.

1 ACCEPTED SOLUTION
MarcelBeug
Community Champion
Community Champion

On "Add Column"  tab duplicate column B to C

On "Transform" tab select column C, then option "Fill" - "Fill Down".

 

Looks like Column A is not required to determine the values in column C.

Specializing in Power Query Formula Language (M)

View solution in original post

2 REPLIES 2
MarcelBeug
Community Champion
Community Champion

On "Add Column"  tab duplicate column B to C

On "Transform" tab select column C, then option "Fill" - "Fill Down".

 

Looks like Column A is not required to determine the values in column C.

Specializing in Power Query Formula Language (M)
Anonymous
Not applicable

Hi Marcel,

 

Thanks for the help. It means a lot.

 

Regards,

Sivapratap

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors