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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Jorr13
Frequent Visitor

Combining Data in "Address Format"

I have a number of address columns that need combined. Company Name, Address1, Address2, City, State, Zip, Country etc.

 

How could I combine but in a format on how an address is typically writen

 

Like below:

Bob's Store

24 Winner Street, Apt A

Bozeman, MT 59718

USA

 

Not like below:

Bob's Store, 24 WInner Street, Apt A Bozeman, MT 59718, USA

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Jorr13 ,

Here are the steps you can follow:

1. Create calculated column.

Column =
'Table'[Company Name] & UNICHAR(10) &
COMBINEVALUES(",",'Table'[Address1],'Table'[Address2]) & UNICHAR(10) &
COMBINEVALUES(",",COMBINEVALUES(",",'Table'[City],'Table'[State]),'Table'[Zip]& UNICHAR(10) &
'Table'[Country])

2. Result:

vyangliumsft_0-1649987117814.png

Please click here for the pbix file

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

5 REPLIES 5
Jorr13
Frequent Visitor

I'm receiving this Expression Error. Any advise that you can provide @v-yangliu-msft ? 

Jorr13_0-1650926996191.png

 

v-yangliu-msft
Community Support
Community Support

Hi  @Jorr13 ,

Here are the steps you can follow:

1. Create calculated column.

Column =
'Table'[Company Name] & UNICHAR(10) &
COMBINEVALUES(",",'Table'[Address1],'Table'[Address2]) & UNICHAR(10) &
COMBINEVALUES(",",COMBINEVALUES(",",'Table'[City],'Table'[State]),'Table'[Zip]& UNICHAR(10) &
'Table'[Country])

2. Result:

vyangliumsft_0-1649987117814.png

Please click here for the pbix file

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@Jorr13 , Try to create a column and see if that can work 

Add = [Company Name] & unichar(10) & [Address1] & "," & unichar(10) & [Address2] & "," & unichar(10) & "," & [City] & "," & unichar(10) & [State] & "," & unichar(10) & [Zip] & unichar(10) & [Country]

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak

 

I'm getting this error that it is not recognizing "unichar"

Jorr13_0-1649953602617.png

Jorr13_1-1649953635175.png

 

 

@Jorr13 , I have given DAX formula

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors