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
Anonymous
Not applicable

Combine Txt files

Hello,

 

I need help, I have 3 txt files under one folder. These txt files doesnt have header.

I want to combine them and keep the their file name and folder path each rows. So i know which data source it belongs to. But when i click comine these (Names & Folder Path) columns are not included

 

lmontaos_0-1625053959610.png

 

Thanks,

Leo

 

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

You can add a custom column in your query with Csv.Document([Content]).  That will add a "Table" in each row that you can expand to combine your data, and keep your file and folder info.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Employee
Employee

You can add a custom column in your query with Csv.Document([Content]).  That will add a "Table" in each row that you can expand to combine your data, and keep your file and folder info.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thanks for the reply. But i tried that , i was able to add the custom column but when i click the combine icon in content, the folder path and name is still not there.

lmontaos_0-1625055038132.png

 

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.