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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MikeSolvesBI
Helper II
Helper II

Power Query create Address field from Address1,Address2 and City

Hello,

I need to create a new Address field from Address1,Address2 & City. 

 

Sometimes Address2 is Null,

 

I am using a Custom Column.

 

What is the best way to handle this so that I can have

Address: 111 Main street

Address2: NULL

City: Summit

 

Field: 111 Main Street, Summit

 

Or

 

Address: 111 Main Street

Address2: Suite 100

City: Summit

 

111 Main Street, Suite 100, Summit

 

Thank You,

 

Michael

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

This is the simple way

lbendlin_0-1680365083439.png

 

There is a better way but it requires the field to be null, not an empty string.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

The screenshot should say it all

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

This is the simple way

lbendlin_0-1680365083439.png

 

There is a better way but it requires the field to be null, not an empty string.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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