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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
pstaggers
Advocate II
Advocate II

Combining multiple paired columns of the same type of data

I have time and temperature data pulled from a PDF datasheet (using PDF connector to get the data in to Power Query).  The trouble is the format of several alternating columns of time and temperature data.  I'd like to simplify to just 2 columns.  Essentially every 2nd column needs to stack on its predescessor while keeping the pair-wise relationships intact.  I would appreciate any ideas here.  A picture should help (what I have versus what I want):


Import from PDF looks like this:

pstaggers_0-1682524509483.png

 

Where I want to land:

pstaggers_1-1682524531519.png

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@pstaggers One way is to create 4 queries. The first three select columns 1 & 2, then 3 & 4 then 5 & 6. The fourth query is an Append query that appends the three to one another. You only need to load your 4th query.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
pstaggers
Advocate II
Advocate II

Thank you @Greg_Deckler .  Just the trick!  Also, I found that I had to rename all columns to Column1 and Column2  (or Time and Temperature) in order to have the append just end up as two columns.  

@pstaggers Good call, yes, I forgot that step!


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

@pstaggers One way is to create 4 queries. The first three select columns 1 & 2, then 3 & 4 then 5 & 6. The fourth query is an Append query that appends the three to one another. You only need to load your 4th query.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors