I have several CSV files to combine in one table (files have the same structure), but the files structure is f**ed enough to be problematic.
The first row is ordinary, just headers split by a comma:
Account,Description,Entity,Risk,...
but then the rows with actual data are starting and ending with doublequote ", columns are separated by a comma, but people (full name) has two double-quotes at beginning and end. I understand that it's an escape character to keep the name in one column, but one would be enough.
"1625110,To be Invoiced,587,Normal,""Doe, John"",..."
So what I need to do and don't know how is to remove " from the beginning and end of every row with data and replace ""
with "
in every line with data.
I need to do it in Power Query because there will be more of similar CSV files over time and I don't want to clean them manually.
Any ideas?
I was trying with simple:
= Table.AddColumn(#"Removed Other Columns", "Custom", each Csv.Document(
[Content],
[
Delimiter = ",",
QuoteStyle = QuoteStyle.Csv
]
))