Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Everyone, I'm using a CSV file as a data source for one of my report.
I have a adress column which contain data like ( city name state name) but in some rows the data is (city name, state name)
Due to the comma in between it's breaking the data and the data after the comma is moving into other columns ( One column ahead, i.e state name will move to the next column for that row)
How to deal this in power BI
Solved! Go to Solution.
Hi Everyone, I resolved the issue using below approach:
Import the CSV File Using "Extract Table Using Examples":
Load Data into Power Query Editor:
Split the Problematic Column:
This approach ensures that commas within quoted fields are treated correctly, preserving data integrity.
Hi Everyone, I resolved the issue using below approach:
Import the CSV File Using "Extract Table Using Examples":
Load Data into Power Query Editor:
Split the Problematic Column:
This approach ensures that commas within quoted fields are treated correctly, preserving data integrity.
Hi @anmolmalviya05 ,
I create a .csv file and import it into Power BI desktop.
Then I go to Power Query and I use Split Column by three times.
Finally you can remove the columns you don't need.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous, Thanks for your response
I tried this but it's not working.
Hi @anmolmalviya05,
Normally that value should have double quotes around it and Power BI import should be able to handle that.
Below is an example to demonstrate.
Sample table in Excel
Saved as CSV UTF-8
When you open the save file in notepad you will see the value has quotes around it
If that is not the case you can use PowerShell to convert the existing file in the correct format:
import-csv ImportCities.csv | export-csv Converted_ImportCities.csv -NoTypeInformation -Encoding UTF8
https://stackoverflow.com/questions/25237847/adding-double-quote-delimiters-into-csv-file
Does your original source file use quotes, have you double checked this?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.