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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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!:
Power BI Cookbook Third Edition (Color)

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!:
Power BI Cookbook Third Edition (Color)

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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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