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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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