cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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.


@ 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!:
Mastering Power BI 2nd Edition

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!


@ 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!:
Mastering Power BI 2nd Edition

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.


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors