cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Upload scrambled data (PDF) via Power Query

On a daily basis, I receive a PDF report that I would like to upload via Power Query.

However, the data is not always structured the same way. After the necessary cleaning, this is where I stranded:

 

DonaldHU_0-1655303099228.png

What needs to happen is that the value in column 9 should end up in column 8 (which I currently do by mergng the 2 columns).

DonaldHU_1-1655303260632.png

And the final result should look like this ((column 2 and column 9)

 

DonaldHU_2-1655303350896.png

 

However, as the number of columns isn't always the same, this provokes errors when I get new pdf's in:

 

DonaldHU_3-1655303463004.png

DonaldHU_4-1655303523914.png

 

What is also good to know is that sometimes all data is nicely under each other (same column), sometimes it's not. And also the number of records that should be extracted from the pdf, is not always the same either (sometimes it's 1, sometimes it's 4, ...)

 

 

 

 

 

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

To my knowledge, we could not smartly know where the data structure has changed.

If the original column names change, the subsequent reference steps should be manually changed accordingly.

 

For more detailed explanation, please refer to: Dealing with errors - Power Query | Microsoft Docs

Eyelyn9_0-1655703733838.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

To my knowledge, we could not smartly know where the data structure has changed.

If the original column names change, the subsequent reference steps should be manually changed accordingly.

 

For more detailed explanation, please refer to: Dealing with errors - Power Query | Microsoft Docs

Eyelyn9_0-1655703733838.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

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!

Top Solution Authors
Top Kudoed Authors