Forum Discussion
hsimahf
1 year agoNew Member
Power query not loading all columns of a CSV
Hi, I am using Power Query to manipulate data from a CSV. This CSV has many columns (5913) and only a couple of rows (4). As you might imagine, one of the first things I want to do is transpose the ...
- 1 year ago
Strangely, I may have fixed this. Firstly, a screenshot showing that my last column was the 2671st column.
I then clicked on the source, changed it to read it as a Text file rather than a CSV, then changed it back to CSV. Voila, all 5913 now appear. No idea why but posting here in case of use to others.
Chewdata
Responsive Resident
1 year agoHey!
This may be caused by how the csv.document() 'read's' your csv-file.
However it is hard to debug without the code or a sample of the original file.
I see that you file also has comma's in the values. You can try to alter the options in de Imported CSV step:
= Csv.Document(URLTOYOURCSV,[Delimiter=",", columns=10, Encoding=65001, QuoteStyle=QuoteStyle.None])
- remove the columns=x expression, it will then try to load all available columns.
- Replace QuoteStyle=QuoteStyle.None for CsvStyle=CsvStyle.QuoteAfterDelimiter