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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sonisick
Resolver I
Resolver I

In Using Get Data with a Folder of Text Files how do you get FileName as a column?

I'm reading into the Power Query Editor a bunch of identically formatted text files from the folder option of Get Data. I want a column indicating the filename.

It would also be cool if someone could show a simple M Script for processing all the files. For example, I am creating names for headings and deleting unwanted columns.

1 ACCEPTED SOLUTION
sonisick
Resolver I
Resolver I

Didn't realize when you use the folder option and combine you get the filename

View solution in original post

1 REPLY 1
sonisick
Resolver I
Resolver I

Didn't realize when you use the folder option and combine you get the filename

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.