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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
apourgha
New Member

Combining data as columns rather than rows

Hello,

 

I am new to power query and trying to find a solution to a problem I am having with trying to combine files.

 

 

Power query usually combines files into rows. each of my files have about 2000 rows with the following two columns:

 

Wavelength_file1.       Reflectance_file1.

 

The issue is that when power query combines these files as rows i have to scroll about 2000 rows before I can get to file 2. Therefore, I am wondering if it is possible to lay out a table such that my files will be combined in columns like the following:

 

wavelength_file1Reflectance_file1wavelength_file2Reflectance_file2Wavelength_file3Reflectance_file3
      
      

 

 

Thank you for your help.

 

Amir

1 REPLY 1
KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @apourgha ,

 

If you are only searching for rows, you can use:

1. Apply filter

2. Add a custom step: Table.FindText(TableNames/PreviousStep, "Keyword")

 

if the above suggestion does not suit your situation, you can:

1. Merge Wavelength_file1.  & Reflectance_file1. columns then pivot the merged column, which should give you the layout as below.

wavelength_file1Reflectance_file1wavelength_file2Reflectance_file2Wavelength_file3Reflectance_file3            

 

Regards

KT

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.