PowerPivot with Excel 2013

By:   |   Comments (3)   |   Related: > Microsoft Excel Integration


Problem

I have read all the tips regarding PowerPivot using SQL Server as a data source, but I've started using Excel 2013 and need some help making a nice, simple dashboard for a presentation coming up. Any suggestions?

Solution

Excel 2013 changes things up a bit when it comes to installing PowerPivot. In previous versions you had to download the component and install, but with Excel 2013 it comes installed as an add-in, but disabled by default. To enable PowerPivot, open Excel, go to File, Options, Add-Ins, select COM Add-ins and click Go.

PowerPivot using SQL Server as a data source

This will open up the COM Add-Ins dialog box. Click "Microsoft Office PowerPivot for Excel 2013" and hit OK.

Microsoft Office PowerPivot for Excel 2013

After successfully enabling PowerPivot, the tab should appear at the top of the Excel spreadsheet.

enabling PowerPivot

Creating a dashboard

There are a few different ways in which to import data into Excel to use with PowerPivot. Some of these ways include:

  • From database

    Creating a dashboard
  • From Data Service

    different ways in which to import data into Excel to use with PowerPivot
  • From other sources such as Oracle, Excel, flat files, etc.

Click here to view examples of importing data into PowerPivot using the above methods.

For this example, and simplicity sake, I will just run a query and simply copy and paste my results into the Excel spreadsheet. The query results look like this:

 run a query and simply copy and paste the results into the Excel spreadsheet

Once the results are copied and pasted into Excel, click the PowerPivot tab and click Add to Data Model:

click Add to Data Model

On the create table dialog box, make sure you select the range for your data and click "My table has headers"

CreateTable

After clicking OK, the PowerPivot window should appear. To start creating the dashboard, click PivotTable, PivotChart, then select New Worksheet:

creating the dashboard

For this example, my boss needs to see each Team and how many National Championships they have won in a graph. Easy enough. Click on the PivotChart, and the PivotChart Fields The list should appear on the right side. If the Field list doesn't appear, right click in the Chart and select Show Field List:

Click on the PivotChart

Drag Team to the AXIS box below and drag NationalChampionships to the VALUES box below. This indicates that we will be reporting on each team with National Championships being the value we want to show.

right click in the Chart and select Show Field List

Cleanup Graph Options

Add a Slicer

We now have a graph that displays the information we need, but we still need this in a presentable form. One thing we can do is add a slicer so we can choose between which teams we want to display. To do this, right click Team and choose Add Slicer. You can then drag the slicer so that it doesn't cover up the graph and resize as needed.

Cleanup Graph Options

If you click on a team in the slicer, for example, Alabama Crimson Tide, you will notice it shows results for only Alabama Crimson Tide:

Add a Slicer

You can also CTRL+click to select multiple teams or click the Filterto set the slicer back to default.

Change Order of Results

By default the graph puts the teams in alphabetical order, but maybe we want to change the graph to display the National Championships in order. To do this, click the down arrow beside Team and click More Sort Options. Change the Sort to Descending (Z to A) by: Sum of NationalChampionships:

Change Order of Results
By default the graph puts the teams in alphabetical order

The graph should now be sorted by National Championships:

Change the Sort to Descending (Z to A) by: Sum of NationalChampionships

Change title and remove Legend and unwanted buttons

Another cleanup option is to change the title of the graph and remove some unwanted buttons. To do this, simply click on the title and rename it.

To remove the legend, simply click and delete.

To hide the buttons, right click the button and select "Hide Buttons"

Change title and remove Legend and unwanted buttons

Our chart is almost presentable:

To remove the legend, simply click and delete

Remove Gridlines, Scrollbars, and Headers

Another option to clean up the spreadsheet is to remove some of the Excel based options. A few things that can be removed by going to File, Options, Advanced are scroll bars, row and column headers, and gridlines.

Simply uncheck all of these to make the background more presentable:

Remove Gridlines, Scrollbars, and Headers

Add Style to Chart

To add a style to the chart, click on the chart and select the Design tab under PivotChart Tools. Here you can choose from multiple Chart Styles:

click on the chart and select the Design tab under PivotChart Tools

For this example, I'll choose Style 9:

choose from multiple Chart Styles

Change color of bar graph

To change the color of the bars in the graph click on the chart and select the Design tab under PivotChart Tools. Click the Change Colors dropdown and select a color. For this example, I'll choose Green:

Change color of bar graph

Other cleanup options can include font and font size, themes, etc.

Next Steps
  • View more PowerPivot tips here that includes uploading the finished dashboard to SharePoint.
  • Learn more about PowerPivot and all of it's capabilities at Microsoft.com


sql server categories

sql server webinars

subscribe to mssqltips

sql server tutorials

sql server white papers

next tip



About the author
MSSQLTips author Brady Upton Brady Upton is a Database Administrator and SharePoint superstar in Nashville, TN.

This author pledges the content of this article is based on professional experience and not AI generated.

View all my tips



Comments For This Article




Friday, November 8, 2013 - 5:08:00 PM - Sermin Back To Top (27451)

 

I want to add z axis to the pivot table chart, but I cannot find the location to add the z axis.  Previously, it was in "format data series".

 

Where is the location that I can add z axis  in pivot charts?


Thursday, March 14, 2013 - 11:35:07 PM - B Jagan Mohan Rao Back To Top (22808)

Simple and Worth reading !!!


Saturday, February 2, 2013 - 1:48:44 AM - Zaim Raza Back To Top (21872)

Hi Breedy,

The article is very informative but i want to include two more features as following:

1.  Quick Explore.

2. Quick Analysis .

for more information please see following article

http://blogs.msdn.com/b/microsoft_business_intelligence1/archive/2012/07/23/microsoft-business-intelligence-in-excel-2013-sharepoint-2013-and-sql-server-2012-sp1.aspx















get free sql tips
agree to terms