Excel PowerPivot
Excel PowerPivot
SUPPORT
SHORTCOURSE HANDOUT
Table of Contents
Introduction .................................................................................................. 3
To Change chart title and remove Legend and unwanted field buttons .................. 11
Excel PowerPivot
ShortCourse Handout
Introduction
Microsoft PowerPivot in Excel 2013 is an Add-in tool that can be used to perform
powerful data analysis in Excel 2013. The add-in is available in Microsoft Office
Professional Plus. PowerPivot enables you to import data from virtually any data
source, such as Microsoft Access databases, Text files, Excel files, and live data
imported from a Web sites. PowerPivot for Excel allows you to create a variety of
visual data, such as PivotTable, and PivotCharts. In both Excel and in PowerPivot,
you can create a Data Model, a collection of tables with relationships.
Data Models are created implicitly when you import two or more tables
simultaneously in Excel. However, Data Models are created explicitly when you use
the PowerPivot Add-in to import data. In the Add-in, the model is represented in a
tabbed layout, where each tab contains tabulated data.
Any data you import into Excel is available in PowerPivot, and vice versa. By using
PowerPivot you can analyze data in ways that go way beyond "regular Excel". You can get more
done in less time.
Credit: This document was adapted from Microsoft Excel 2013 Help and
Documentation.
Course Objectives
After completing this ShortCourse, you should be able to:
Import data from multiple sources;
Rename columns;
Add Slicers.
To Enable PowerPivot
From the FILE menu, click Options -> select Add-Ins.
In the Manage: box, click COM Add-ins -> Go…
Check the Microsoft Office PowerPivot for Excel 2013 box, and then click
OK. After you install PowerPivot, you see a POWERPIVOT tab on the Ribbon.
Clicking the POWERPIVOT tab displays the options available.
Clicking the Manage in Data Model group, opens the PowerPivot Window.
Suppose that you have run a query and copied/pasted your results into the Excel
spreadsheet. And suppose that the query results look like this:
ID Team NationalChampionship
1 Alabama Crimson Tide 15
2 Tennessee Volunteers 6
3 Georgia Bulldogs 5
4 Florida Gators 3
5 LSU Tigers 3
6 Texas A&M Aggies 3
7 Mississippi Rebels 3
8 Auburn Tigers 2
9 Arkansas Razorbacks 1
10 Kentucky Wildcats 1
Select your data -> click the PowerPivot tab -> 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" check box.
After clicking OK, the PowerPivot window should appear.
Click PivotTable -> PivotChart, and then select New Worksheet.
In a graph, to see each Team and how many National Championships they
have won 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.
Drag Team to the AXIS box and drag NationalChampionships to the
VALUES box. This indicates that you will be reporting on each team with the
number of National Championships being the value you want to show.
You can also CTRL + Click to select multiple teams or click the button
to set the slicer back to default.
To Change chart title and remove Legend and unwanted field buttons
Click on the title and rename it SEC National Championship.
Click the chart legend, and Delete.
To hide the field buttons, right-click the button and select “Hide Buttons”
To change the color of the bars in the graph or style of the graph, click on
the chart and select the Design tab under PivotChart Tools.
To Import Data
In Excel, open a blank workbook.
Click Data tab-> Get External Data (drop-down list)-> From Database ->
From Access
Go to the folder that contains the Sample Data files and select
ContosoSales (in the ShortCourses folder)
Click Open. Because you are connecting to a database file that contains
multiple tables, the Select Tables dialog appears so that you can choose
which tables to import.
Check Enable selection of multiple tables’ box, to select all tables ->
check the Name box -> click OK twice, to create a PivotTable Report (this
may take some time). You just created a data model (implicit). The model is
a data integration layer that is created automatically when you import or work
with multiple tables simultaneously in the same PivotTable report. Now you
can view and modify this model using the PowerPivot.
In the PivotTable Fields list scroll down until you find the FactSales table.
Expand the table, and then click SalesAmount field. Because this data is
numeric, Excel automatically places SalesAmount in the Values area.
From the DimDate table, drag CalendarYear field to Columns.
From DimProductSubcategory table, drag the ProductSubcategoryName
field to Rows.
From DimProduct table, drag the BrandName field to Rows, placing it
beneath ProductSubcategoryName. You now have a basic PivotTable that
includes fields from four different tables. Note: Because the tables that you
imported had pre-existing relationships among the tables, Excel recreated
those relationships in the model.
From the Sample Data files, open Stores.xlsx, place the cursor in A1, and
then press Ctrl-Shift-End to select all of the data.
Copy the data to the clipboard.
Paste the data into the empty worksheet you just added (Don’t Deselect it).
Click Format as Table (HOME -> Styles), choosing any style.
In Format As Table, verify that My table has headers is selected -> click
OK.
Name the table Store. In Table Tools -> Design, type Store in Table
Name.
Close Stores.xlsx to clear it from your workspace.
PivotTable reports are not the only type of report that benefits from a Data Model.
Using the same model you just built, you can add a Power View sheet to try out
some of the layouts it provides.
In Excel, click Insert -> Power View.
In Power View Fields, click the arrow next to the FactSales table, and
click SalesAmount (click ALL to see all tables).
Expand the Geography table and click RegionCountryName.
In the ribbon, click Map (Design tab -> Switch visualization). A map report
appears.
Drag a corner to resize it. On the map, blue circles of varying size
indicate sales performance for different countries or regions.