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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors