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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Combining Two Columns into One

Hey guys,

I've got two seperate columns containing "hour registration codes".
These two columns should be transformed into one.
If Column A (Ontvanger) is Null, the code is available in Column B (Aan/afw).

LaZZaNoVa61_0-1655107338427.png

 


If Column B is Null, the code is available in Column A.

LaZZaNoVa61_1-1655107360783.png

 





I thought I could fix this concatenating the two columns in Power Query.

LaZZaNoVa61_2-1655107514640.png

 


The result was exactly the same as Column A though.
Any ideas on how to fix this? 

With kind regards,

Lazzanova


1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

NewStep=Table.AddColumn(PreviousStepName,"Concatenate",each List.RemoveItems({[Column A],[Column B]},{"",null}){0}?)

View solution in original post

1 REPLY 1
wdx223_Daniel
Super User
Super User

NewStep=Table.AddColumn(PreviousStepName,"Concatenate",each List.RemoveItems({[Column A],[Column B]},{"",null}){0}?)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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