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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors