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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
tbrowning
New Member

combine single column text files

Hi all,

 

I have a folder with plain text files that I want to transpose into a table.

 

Let's say I have three text files, as follows:

 

File 1

 

Field1=Value1
Field2=Value2
Field3=Value3

 

 

 

File 2

 

Field1=Value4
Field2=Value5
Field3=Value6

 

 

 

 

File 3

 

Field1=Value7
Field2=Value8
Field3=Value9

 

 

I can get the data to look like this:

Column1Column2
Field1Value1
Field2Value2
Field3Value3
Field1Value4
Field2Value5
Field3Value6
Field1Value7
Field2Value8
Field3

Value9

 

But I can't figure out how to make it look like this:

Field1Field2Field3
Value1Value2Value3
Value4Value5Value6
Value7Value8Value9

 

Does anyone have any advice?

 

Thanks,

 

Tom

2 REPLIES 2
tbrowning
New Member

Ahhh of course, I kept trying pivot but without the file name, and thus it was aggregating things. Thanks!

AlexisOlson
Super User
Super User

You can do this with a pivot operation, but you need a bit of extra information.

 

If you can get the data in a format like this:

AlexisOlson_1-1689955111591.png

 

Then you can finish with a single GUI operation:

AlexisOlson_0-1689955044125.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors