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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hello_MTC
Helper III
Helper III

Split Columns

hello_MTC_0-1652073862719.png

 

Above attached is the column of address and that is the only column i have in my database.

I want to split the column by country, state and city. Since the values are not properly merged i do not understand how to seperate the columns. Please help. Thanks in advance!

1 ACCEPTED SOLUTION

@hello_MTC , Based on my obervation.

First Create a new column

Text.Combine(List.Reverse(Text.Split([Address], ",")), ",")

 

//I am assuming this will country, state, city, Address order

 

And then Split by delimiters into column into 4/5 columns as suggested by @jaipal 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
jaipal
Resolver III
Resolver III

@hello_MTC  Open Power Query Editor, Select column and Click on Split Column, choose By Delimiter

jaipal_2-1652074389024.png

 

 

You wil get the columsn as below:

jaipal_1-1652074338439.png

 

And rename the columns

 

Thank you for your reply, You can see not all the rows have unique. Some has address,city,state and country and some has only city,state and country.

I need only City, State and Country.

@hello_MTC , Based on my obervation.

First Create a new column

Text.Combine(List.Reverse(Text.Split([Address], ",")), ",")

 

//I am assuming this will country, state, city, Address order

 

And then Split by delimiters into column into 4/5 columns as suggested by @jaipal 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.