How do you take information from your SharePoint list and display it in a pivot table on a SharePoint page? This can be achieved by using Excel’s Data Connections and Excel Services. This article will walk through the steps of going from a SharePoint list to an Excel Pivot Table and then to displaying the pivot table on a SharePoint page. 

Export the list to a pivot table
Publish to Excel Services
When you’re ready to publish your table, select the windows button > Publish > Excel Services. |
Select the SharePoint document library you’d like to publish to.
If you need to add a network place, use the “new folder” button to launch the wizard. |
Open “Excel Services Options…” |
Select “Items in the Workbook” from the Show selection dropdown. |
Select the pivot table created and click “OK”.
After naming the file, click “Save”. This will publish the workbook to SharePoint and Excel Services. |
|
Excel Services will open with a preview of the report created.
Close the tab when you’ve finished reviewing the output. |
Create the Web Part Page
Back on the SharePoint site, create a new page. |
Enter in a Title, the URL Name (without spaces, using CamelCase), and “Blank Web Part Page” for the layout.
Create. |
Add a web part |
Add an Excel Web Access web part. |
In the web part, you’ll see “Click here to open the tool pane.”
Inside the tool pane, the ellipsis next to the Workbook will open a browse menu to libraries/lists in the site. Locate the document library the workbook was published to.
You may need to use the paging option at the top to retrieve the next set of options. |
Select the workbook that was published earlier.
Alternatively, if you have the URL, you can just enter that into the Workbook field. |
In the Named Item, enter the name of the pivot table (exactly as it was named earlier in the workbook.)
Click “Apply”.
Click “Save and Stop Editing” to view the page normally. |
The page will be saved into the “Pages” document library, a library that is common to all SharePoint sites.
Copy the URL to add to a link list. |
| This link can then be added to another page more accessible to others. |
Refreshing the list
When the originating SharePoint list has changed, for example new items have been added to the list, the excel pivot table will need to be opened and refreshed. (Instructions on having the data refresh automatically will be added in another post.)
Open the document library housing the spreadsheet, and “Edit in Microsoft Office Excel.” |
|
On the “Data” tab, select “Connection” and “Refresh”, then “Close”.
You should see the new totals reflected on the pivot table in the workbook.
Click “Save”. Since the workbook was opened from SharePoint it will save back to SharePoint. You do not need to republish it.
Close the workbook and refresh the page with the web part to view new data. |











I would be very interested to know if anyone can get the automatic refresh working against a sharepoint list in excel services. I have followed various sets of instruction on how to do this but so far have been unsuccessful.
Looking forward to seeing a post on this.
Comment by Philip Coupar — March 2, 2009 @ 2:13 pm |
Yes, I need to get back to that. I haven’t figured it out yet, since I got put onto other things, but I’m sure the need will come up again soon.
Comment by sharepointdiva — March 10, 2009 @ 10:00 pm |
Hi,
we urgently require to have automatic refresh working for workbooks connected to SharePoint lists, we’re using Excel Web Services to display these workbooks.
Appreciate any comment on the issue,
Thanks
Comment by Khalid Al-Kooheji — April 30, 2009 @ 11:50 am |
Hey there,
I tried getting automatic refresh working (edit the ODC connectivity file) and it still does not work.
Waiting for your reply, SharePoint Diva
Comment by Mayrun — May 3, 2009 @ 6:24 am |
Unfortunately working this out isn’t on my priority list right now. But if you figure it out, please oh please do blog about it! I encourage everyone to start a blog over at the SharePoint Users Group. http://www.thesug.org
Comment by sharepointdiva — May 4, 2009 @ 3:08 pm |
Hi
Use UDF(User defined functions)
achive this
Regards
Jenkins
Comment by Jenkins — May 16, 2009 @ 4:05 am |
Hi,
We have a slightly different problem. Our sharepoint site has multiple urls: An internal url and a different external url. When i implement this method with the internal url, i am able to see the dashboard but not with the internet url.
What could the issue be and how csn i solve this probelm?
Awaiting your response eagerly.
Comment by Nimi Kaul — May 21, 2009 @ 6:22 am |
To add to the above issue, when i follow the above steps and publish from the internet, the report is not displayed. it say “An error has occurred.
Please contact your system administrator if this problem persists.”
Any help will be appreciated.
Comment by Nimi Kaul — May 21, 2009 @ 6:32 am |
Nimi,
I’m sorry but I can’t help you with that issue. My company only has internal facing sharepoint sites so I’ve not had to deal with internet issues.
Comment by sharepointdiva — May 21, 2009 @ 2:19 pm |
For automatically data refresh
http://technet.microsoft.com/en-us/library/cc262899.aspx
Comment by M Naeem — June 21, 2009 @ 12:06 pm |
Hi SharePoint Diva,
Thankyou for your work thus far – I too am really keen to enable the SharePoint List to be refreshed – have you made any progress on how this is done? I followed the previous comments by M Naeem but that did not seem to resolve this particur issue of automatically refreshing data from sharepoint lists
Regards
Deborah
Comment by Deborah — July 13, 2009 @ 12:34 am |
I repeat deborah’s centements. If you can offer help on how you can refresh Excel webparts automatically, I will arrange for some kind of praise circle of monks to pray for you and ensure you are favorably looked apon by god(s).
Comment by Andy C — August 4, 2009 @ 1:30 pm |
Me too. Setting the data connection in the excel file to refresh on open results in “Data Refresh Failed”
Comment by Tom S — September 24, 2009 @ 9:51 pm |
http://msdn.microsoft.com/en-us/library/ms496823.aspx
Seems that SharePoint lists are not currently supported in Excel Services
Excerpt …
Unsupported Features in Excel Services
Microsoft Office Excel 2007 is feature-rich. It is not possible to support every Excel 2007 feature in the first version of Excel Services. In deciding which feature to support, priorities are given to features that are needed in key Excel Services scenarios, and to making sure Excel Services is a server-grade service that will meet customers’ expectations in terms of reliability, scalability, and security.
Future versions of Excel Services will support more features of Excel 2007.
Features that Prevent Excel Files from Loading
* Query tables, SharePoint lists, Web queries, and text queries.
Comment by Tom S — September 24, 2009 @ 10:17 pm |