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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.