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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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