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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Folder load text file , Where can i info Power quary to load which column data ?

Hi All

I have 2 similar raw data file text format , i wanted to load using folder :-

 

Below link is my raw data file :-

https://www.dropbox.com/sh/irllhkmjtlegwz6/AAAZHoRtvfbdWoVAHo1Ei8f8a?dl=0

 

file 1

Paulyeo11_0-1603891490927.png

File 2

Paulyeo11_1-1603891554510.png

Upon load the both data into PBI m i am unable locate how to enter text delimited column number to enter , as i notice that it combine CUST_ID and COMPANY and SALES field into one field :-

Paulyeo11_0-1603892452588.png

 

I go to advance editor  , i cannot find text delimited for me to enter the column number :-

Paulyeo11_0-1603892969808.png

 

Can some one share with me where go wrong ?

 

when i try to folder load CSV file , i don't have any issue.

 

Paul

 

1 ACCEPTED SOLUTION

Hi @Anonymous 

The problem here is that you are using files without delimiters.  The data is separated by spaces when it columns shoudl be separated by something like a comma.

You will continue to have issues like this unless you can get these source files formatted differently.  Using spaces as delimiters is not good practice.

I don't know why the Get Data -> Folder isn't recognising the files as delimited, but it's to do with the spaces.  

To get around the problem, I opened the text files, added a comma after each column like so

 

A11111,   AIRYCOOL ENGRG & SERVICES,                                   42 
A22222,   ALLTRONIC COMPUTER (S) PTE LTD,                              29 
C33333,   CHEN HOCK HENG MACHINERY P/L,                                26 

 

Then used Get Data-> Folder and the files were recognised as delimited.  In the import dialog I changed it to fixed width rather than delimited and entered the column numbers 0,7,45

After completing the query I edited the text files again and removed the commas.

This all results in a set of queries contained in this PBIX file that can be used to import text files with a similar structure from a folder.  You will need to open the files query to change the Source step to the location of the folder where the files areon your PC.

Also, if you are importing files with more than 3 columns, you will need to work out the width of those columns and then change the column numbers in the Transform Sample File from files query to suit.

FYI, Get data -> Folder works for lots of different file types.

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi All

Does Folder load only suppot CSV ?

Paul

Hi @Anonymous 

The problem here is that you are using files without delimiters.  The data is separated by spaces when it columns shoudl be separated by something like a comma.

You will continue to have issues like this unless you can get these source files formatted differently.  Using spaces as delimiters is not good practice.

I don't know why the Get Data -> Folder isn't recognising the files as delimited, but it's to do with the spaces.  

To get around the problem, I opened the text files, added a comma after each column like so

 

A11111,   AIRYCOOL ENGRG & SERVICES,                                   42 
A22222,   ALLTRONIC COMPUTER (S) PTE LTD,                              29 
C33333,   CHEN HOCK HENG MACHINERY P/L,                                26 

 

Then used Get Data-> Folder and the files were recognised as delimited.  In the import dialog I changed it to fixed width rather than delimited and entered the column numbers 0,7,45

After completing the query I edited the text files again and removed the commas.

This all results in a set of queries contained in this PBIX file that can be used to import text files with a similar structure from a folder.  You will need to open the files query to change the Source step to the location of the folder where the files areon your PC.

Also, if you are importing files with more than 3 columns, you will need to work out the width of those columns and then change the column numbers in the Transform Sample File from files query to suit.

FYI, Get data -> Folder works for lots of different file types.

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hi philip

thank you so much for your detail reply. I will convert my raw data to CSV FORMAT.

PAUL

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors