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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors