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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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