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
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
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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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