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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors