Site Meter Microsoft Office » Blog Archive » Using PivotTables to Analyze Data From a SharePoint List

Using PivotTables to Analyze Data From a SharePoint List

by Brick ONeil

Today’s author, Diego Oppenheimer, a Program Manager on the Excel team, talks about connecting PivotTables to data stored in SharePoint Lists:

Many of us on the Excel team have been approached by customers asking us how to create a connection to a SharePoint list. SharePoint lists can be exported easily by creating a Microsoft Office Excel Web Query. The connection can then be tied directly to lists or PivotTables in the workbook like any other Data Connection.

I have a SharePoint List that we use to upload and keep track of all project management reports. The list contains information like the project manager that uploaded it, the date, and the name of the reports as well as other automated fields created by SharePoint to make my life easier. Using the filters provided by SharePoint gives me a great way navigate my list quickly and easily but I am more interested in creating a macro view of the team reports so an easy solution would be to connect my SharePoint List to a PivotTable. The fact that my SharePoint List has more than 250 rows makes the use of a PivotTable even more appealing.

Creating the Connection and the PivotTable:

Once we have located the SharePoint list we want to export we go to “Export to Spreadsheet” in the “Actions” menu button.

When the message prompting us if we would like to open or save the Microsoft Office Excel Web Query click “Open” (or you can save for use later). If you haven’t started Excel yet this should start it up.

Click “Enable” to unblock the data connection.

If you had Excel already open you will get the the “Import Data” menu. In the case that you did not have Excel open already opening the connection will create a a resfreshable query table in the workbook.

From this menu we can choose to directly create a “PivotTable Report” a report and a “PivotChart” or just a query “Table”. Today I am interested in creating a PivotTable so I select “PivotTable Report” and hit “Ok”.

Now I can see all my uploaded reports in the PivotTable. To get a better view of what is going on we add the Project Manager field to Rows, Date to the Report Filter (so we can filter by date) and the Name field (the name of each one of our uploaded reports on the SharePoint List) to Values. By adding Name to Values we are essentially creating a count of how many name items we have in the data source.

We replace “Count of Name” with “# Reports” by editing in the formula tab like any other cell.

Now I can easily view the numbers of reports per project manager and filter by date as well as viewing the “Grand Total” number of reports. This is great but the team actually splits up in sub teams by area of expertise so I am going to group them to make this clearer.

We select all the members of the each team in the PivotTable and right click. Select “Group”. Now I can rename the Group label to better represent the teams. I name my groups “Finance”. “Technology” & “Operations”.

Combining the use of our Date filter and the groups we created we can easily see a macro view of all the project management reports.

As soon as new reports are populated into my SharePoint List I will be able to update the PivotTable (right click on the PivotTable then click “Refresh”).

Where does the connection live?

Like all other data connections in our work book we can access it by selecting the “Existing Connections” button under the “Data” tab.

We can see that our SharePoint List connection is shown under “Connections in this Workbook” and can now be used to create new PivotTables.

Multiple Microsoft Office Excel Web Queries can be used to monitor more than one SharePoint list at a time as well as to easily analyze the data in them using PivotTables and PivotCharts. The same as with all Office Data Connections you can now use this connection with multiple workbooks and update any connection changes in a single place.


One Response to “Using PivotTables to Analyze Data From a SharePoint List”

  1. Sue Massey Says:

    A friend of mine just emailed me one of your articles from a while back. I read that one a few more. Really enjoy your blog. Thanks

Leave a Reply


About Microsoft Office

We’ll be discussing Microsoft Office products, the suites, updates and upgrades, tips and tricks. There are wonderful programs that Microsoft has come out with, especially Word, Excel and Outlook. There are programs for everyone out there, from home and student workers, small businesses and corporations. So, keep in contact, watch this space, as the saying goes, contact me with your tips, comments

Microsoft Office Author(s)

Technology Channel Posts

  • Father’s Day Gadget Gifts
    Dad’s special day is just days away. Be sure not to forget to gift your father or husband on this special day, June 20th. I personally got my husband an advanced Father’s Day gift and bought for [...]
  • Samsung’s BD-P4600 is a Fancy BluRay Player
    Released yesterday, this latest BluRay player from Samsung definitely stands out in plenty of ways. The unit doesn’t look like any player. It comes with metal brackets for mounting to the [...]
  • EMS Mouse
    Well, I think I would like this very much. Sitting in front of the computer for many hours in a day can be a pain in the back and I get relief from a massage procedure. But when a therapist [...]
  • Load-Ding Device Organizer
    If you have most of your gadgets cluttered and lying around the house as you charge them, a device like this will definitely have tons of use for you. It's a great solution for keeping your [...]
  • Sony Playstation’s PSP GO
    The web is abuzz with rumors of Sony Playstation’s latest upcoming mobile game portable…the PSP GO! The new design of the very popular handheld unit features an even lighter more compact [...]
  • Apple’s Newest iPhone 3G S
    Apple early today has announced the release of the newest iPhone 3G S, which they claim to be the “most powerful” iPhone yet. The latest unit is packed with so many more features than the [...]
  • Remote Pet Feeding & Viewing Camera Kit
      We can’t deny that with today’s lifestyle, pets are treated like actual human beings. So that even ideas like this actually make sense. There are pet-owners now who regard their dogs as [...]
  • Nokia N97 Worldwide Release this June
    The latest in the Nokia line of handsets will be out in the over seventy-five countries beginning this June. The Nokia N97, which is Nokia’s very first mobile computer/cellphone, will be made [...]
  • Della Website
      Della is a specialty website operated by Dell Computers with the female population in mind. The site is so female oriented and comes with tips like calorie counting, the right way to [...]
  • Sony Ericsson’s Satio
    Unveiled recently, Sony Ericsson’s Satio is marketed as the ultimate multi-media device. The gadget is a camera phone that should appeal to every budding amateur photographer. The gadget boasts of [...]

Hot Off The Press

  • WGN America Giving Away SummerSlam Tickets
    - WGN America, the official website of WWE Superstars, which airs on the WGN channel Thursday night at 8pm (ET), as well 8PM (PT) is giving away two tickets to this years Summer Slam in Los [...]
  • Ten Minutes with Short Story Author Christian Dumais
    *JM says: I love this book cover. Hello and welcome to Fiction Scribe, Christian! Great to be here, thanks. List five words that define you as a [...]
  • Thursday nighty, and Ronnie is mighty...
    .... ok so Ronnie is HOH - and my rhymer is broken. *L* Shiney new post. outside, and Laura is at it again.. Laura: I cannot even explain how much I hate Jessie. Jordan: I sucked. I didn't [...]
  • The Laughter In Music
    Y'know, in the world of rock-n-roll ... in fact, in the music world itself ... there seems to be a lack of the one thing that can turn people on, get endorphins rushin', and make life a little easier [...]
  • Amadou & Mariam's NEW Single and Music Video "Sabali" Are Brilliant!
    "Sabali" is the first single from the new album by Amadou & Mariam called "Welcome to Mali" which was co-produced by Blur's Damon Albarn. Amadou & Mariam are a musical duo from Mali, composed of [...]
  • Watch WWE Superstars 7-16-09
    [...]
  • Feeling Punny...
    A pessimist's blood type is always b-negative.      A Freudian slip is when you say one thing but mean your mother.  Shotgun wedding: A case of wife or death.  I used to work in a [...]
  • KnockOuts Debut on iMPACT: Sarita vs. Alissa Flash - Video
    [...]

  • The coaches pre-season All SEC team was announced on Thursday. Florida led the way with 16 players selected, including a whopping eight on the first team. LSU followed with 10, and Bama and [...]
  • Some Stuff for Friday...
    While trying to come up with something for today, I ran across a couple of things that I wanted to comment on. So I guess that means, it's a classic link round up! I also want to make you kids aware [...]