The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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!
Solved! Go to 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
@hello_MTC Open Power Query Editor, Select column and Click on Split Column, choose By Delimiter
You wil get the columsn as below:
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
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
64 | |
46 | |
38 |