This post is a step by step beginner’s guide to PowerPivot. I will show the basics of creating a PowerPivot workbook using Excel data. PowerPivot has dramatically improved the way in which we can analyze our data in Excel. Using PowerPivot in an Excel PivotChart provides the added benefit of Slicers. Slicers are a cool new way to quickly slice and dice your data.
I am using data that I pulled off the US Census web page. I was able to download three CSV files (Population Change, Population Density, Apportionment ). I did a couple of quick data modifications. The data in the files is stored with a new column for each year. I created a new column called year and unpivoted the data. I then took the data from the three files and merged them into one Excel spreadsheet. I also create a 2nd workbook for the region information.
There are two easy ways to pull data from an existing Excel spreadsheet. You can open an existing spreadshhet and convert the data into Excel Table or you can open a blank spreadsheet and import the data. I will first show how to import data within a existing spreadsheet.
- Start open the census spreadsheet in Excel 2010 (Make sure PowerPivot is already installed)
- Under the PowerPivot ribbon select “Create Linked Table”. Select the entire set of census data. This will convert the existing set of data into an Excel Table and will open the PowerPivot browser.
- Inside the PowerPivot browser rename the table to Population
- Now that the data is in PowerPivot, the data can be sorted by any column, really quickly.
- Close the PowerPivot browser and import the region data.
- Open the Region worksheet. Hit Create Linked Table. Select the data range.
- Now the Region data has been added as a 2nd table in PowerPivot.
- Rename the table to Region.
- We now have two separate datasets. We need to tell PowerPivot how these two sets of data are related.
- Under the Design Ribbon select Create Relationship. The Create Relationship popup will appear.
- Select the State Column from each of the two tables that have been created.
- You can see that this column now has a relationship.
- Now lets build a simple report.
- From the PowerPivot browser (or back in Excel under the PowerPivot Ribbon), select the PivotTable dropdown and select PivotChart.
- Place the Chart on a new Worksheet
- Under the PowerPivot Field List you will see two data sets (Population and Region)
- Add the following
- Slicers Vertical: Region, Division, State (you can use the state from either Population or Region)
- Slicers Horizontal: Year
- Legend Fields: Year
- Axis Fields: State
- Values: Population(The default will make this a SUM)
The slicers that have been added are a fast and easy way for you to slice and dice (filter) your data. Each slicer is aware of the other slicers in the PowerPivot dataset. You will notice that if you click on the Region Slicer, lets say South, both the Division and State slicers will be updated to list the Divisions and States in the South.
…View the final spreadsheet (In order to see PowerPivot in action, you will need to open the document in Excel)