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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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