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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Madra
Regular Visitor

Combining .csv files but commas are causing errors

Hello everyone,

New to Power Query and this forum too, i couldn't find an answer anywhere else so i'm asking it here (sorry if it has already been answered somewhere) (also, i should mention that it is Power Query in Excel 2016, i don't know if it is different from Power Query in Power BI).

I have multiples automatically generated .csv files in a folder, looking like this (notice that this isn't a table) :

Madra_0-1641916159255.png
I'm trying to combine them using Power Query so here is what i get at the beginning:

Madra_3-1641916639167.png

 and after combining the binaries, here is what i have, and there is my problem, the comma is causing an error:

Madra_1-1641916387164.png
If i remove the errors, here is the result i'm expecting, but i obviously don't want to remove the errors as i need those rows.

Madra_2-1641916435700.png
I tried to replace the comma character in the binary but couldn't find a way to do it.

Anyone has an idea to help me ?

Thanks in advance,
Madra

1 ACCEPTED SOLUTION
Madra
Regular Visitor

Hello, found my solution.

For anyone interested by it, i went into the advanced editor and changed the automatically generated function from Csv.Document(#"Combined binaries", null, null, 1252) to Csv.Document(#"Combined binaries",[Delimiter=";",Encoding=1252])

View solution in original post

1 REPLY 1
Madra
Regular Visitor

Hello, found my solution.

For anyone interested by it, i went into the advanced editor and changed the automatically generated function from Csv.Document(#"Combined binaries", null, null, 1252) to Csv.Document(#"Combined binaries",[Delimiter=";",Encoding=1252])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors