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)
    » Brick-ONeil

Technology Channel Posts

  • How far do you go to be Green?
    Recycle, reduce and reuse are the hallmarks of the "Green Living" lifestyle and ecoists. There are many useful and easy to embrace ideas in going "Green". Such as recycling paper, metals, [...]
  • Expert: Microsoft Earned $1.5B From Vista Capable Program
    An expert has determined that Microsoft may have earned more than US$1 billion from its controversial Windows Vista Capable sticker program, which is still at the center of a class-action suit being [...]
  • Motorola Aura
    This new stainless steel handset is designed after luxury watches and defines artistry in the way mobile units are made and manufactured. The craftsmanship to this is unbelievably distinct. It [...]
  • The New Kids are taking Over: IE Lost Share to Firefox, Safari and Chrome in December
    Web sites saw visitors deserting Microsoft's Internet Explorer browser in favor of Apple's Safari, Mozilla's Firefox and Google's Chrome in December, according to Web analytics company Net [...]
  • A small update to the OneNote Table of Contents Powertoy
    John Guin has an update for OneNote:Over the in the OneNote Discussion Group, Mike made this request for a change to the Table of Contents Powertoy: "I have downloaded and used the TOC power toy. [...]
  • Servers Back Up on 451 Press
    Apologies for no new posts the past two days, the 451 Press Servers were offline due to a glitch. The little hamsters that power the wheels took a rest and are now fully charged and ready to go. [...]
  • Servers Back Up on 451 Press
    Apologies for no new posts the past two days, the 451 Press Servers were offline due to a glitch. The little hamsters that power the wheels took a rest and are now fully charged and ready to go. [...]
  • Happy New Year!
    I wish everyone a Happy New Year! Regular posting will resume this Monday. Thanks for continuing to visit this site. [...]
  • Tough sentences in China over huge piracy ring: Microsoft
    A Chinese court has issued tough sentences to members of a huge software counterfeiting ring, which distributed more than two billion dollars' worth of fake Microsoft goods, the company [...]
  • Office hours: Web life for grownups
    From the Office Hours Blog: Next time you're in a meeting listening to a manager who looks younger than your cat detail your role in your company's Social Media Future (aka Web 2.0), consider this: [...]

Hot Off The Press

  • Back-to-Back Fashion Miss for Kate Hudson
    Can you imagine a star donning on a back-to-back fashion miss all for one day? I guess we ought to ask Kate Hudson about that. Why she just deliberately failed to impress the fashion critics [...]
  • John Pelphrey press conference - Texas
    The Razorbacks and No. 7-ranked Longhorns tip off at 8:05 p.m. Tuesday from Bud Walton Arena. [...]
  • Random Wordbank Wednesday
    Hello once again everyone! Welcome to another mid-week random word bank. Unlike the 'contemplating' which prompts you or 'musical Monday' that inspires you, these wordbanks serve as a way to not [...]
  • On The Other Hand...
    The other pathway to knowledge would seem less amenable to logical processes. There are times when we simply 'know' something. Psychology has tried to tell us it's because much of our input is [...]
  • Guest Author Sandi Kahn Shelton on Finding Time to Write
    Sandi Kahn Shelton, author of 'Kissing Games of the World' is joining us here today to talk about a facet of our focus for the beginning of 2009 - getting that novel written. I hope you'll join me in [...]
  • Gimmicks, False Marketing, and Weight Loss
    After my experience of violently reacting to metformin (a very rare reaction, I’m told), saying that I’m ‘cautious’ about weight loss products is a huge understatement. Today I found a [...]
  • Anne Hathaway at the Palm Springs International Film Festival Awards Gala
    Since appearing as Mia Thermopolis in Disney’s The Princess Diaries, I can honestly say that I am an Anne Hathaway fan. However, since I promised for the New Year that Celebrity Fashion [...]
  • John Corbett....
    Technorati Tags: John Corbett,Chris in the Morning,Chris Stevens,Northern Exposure,Carry Bradshaw,Aiden,Sex and the City,Nia Vardalos,My Big Fat Greek Wedding,Bo Derek,The Wonder [...]
  • One Size Fits All
    I remember one Christmas, way too many years ago, when all I wanted was a baton. I was about 8, and wanted to be a majorette in the worst way. My Dad told me there was no way I was going to get a [...]
  • The Astrology of Fixed Stars: Much Ado About Algol
    January 7, 2009 Hello My chart is a bit confusing. I hope if you have any insight on it. It's full of good aspects (sun-moon trine, jupiter-saturn conjunction, moon conjunct midheaven and leo [...]