Forum Discussion

lizlizliz's avatar
lizlizliz
Regular Visitor
4 years ago
Solved

Pulling data from multiple pdf forms, into workable format for PBI/PQ?

Hi all,
I have a set of completed pdf forms from which I need to extract the data and generate some analysis.

I have used acrobat's "merge to excel" function, which results in a single sheet with a row for each question and a separate column of responses for each file.

This format has proven difficult to analyse, so in the past I've manually moved the data around so all the responses are in a single column, in order to be able to graph it / chuck into a pivot table, etc.

 

Image description: example demonstrating how data looks when merged from pdf (table A) and also how it looks after I've manually reformatted it (table B).

 

Now, this isn't a particularly elegant solution, but it has worked ok for our purposes to date. However, our volume of data is about to increase from half a dozen files to around 100, so I really don't want to be dealing with having to reformat data manually in that volume.

I know I could throw some VBA at the situation to automate reformatting the data, however I feel like this shouldn't be necessary at all - that I ought  to be able to work with the data in its existing format using power query... however I just can't figure out how to make this work.

Can anyone please explain to me how to get data from table A in a way that can be used in PBI (or power pivot)? Or point me to any useful resources if this is well documented somewhere I've not managed to google my own way towards...

 

Many thanks in advance.

 

(nb: i've also asked this over on stackexchange, so please forgive me if you are seeing the question twice!)

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi lizlizliz ,

     

    Data sample:

     

    1.Get data from Excel

     

    2.Choose Transform Data to go into Power Query dialog.

     

    3.Click Column1 ,then choose "Unpivot other columns"

    4. Below is the final output after changing column names

    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.

2 Replies

  • Ehren's avatar
    Ehren
    Microsoft Employee

    It sounds like you're looking for Unpivot. Try searching for this and you should find a number of helpful tutorials.

     

    One other tip: you can use the Folder connector to connect to the PDF files, transform them using one of them as an example, apply the example file transformations to all the files, and then combine the results together into a single table.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi lizlizliz ,

     

    Data sample:

     

    1.Get data from Excel

     

    2.Choose Transform Data to go into Power Query dialog.

     

    3.Click Column1 ,then choose "Unpivot other columns"

    4. Below is the final output after changing column names

    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.