In this exercise you need to perform a quick analysis of internet sales data. Your analysis can easily be done in Excel using a connection to Analysis Services. Once the analysis tables are completed you will post them to the BI Center SharePoint site so others can view your results.
Task 1 – Create a Pivot Table in Excel
In this task, you will create a new Excel workbook containing a pivot table based on data in Analysis Services.
- Open Excel 2010 to create a new workbook
- Add a data connection to the Adventure Works cube in the Adventure Works DW 2008 database
- Click the From Other Sources -> From Analysis Services button in the Data ribbon
- In the dialog enter demo2010a as the server name and click Next
- In the Select Database and Table dialog, choose a database of Adventure Works DW 2008
- Choose a cube of Adventure Works and click Next
- In the last page of the wizard, click the Authentication Settings button
Choose the None authentication option and click OK
Choosing None as the authentication option instructs Excel Services to use SSS to retrieve the credentials. Excel Services has been preconfigured to use a specific SSS ID when an authentication type of None is selected.
- Click Finish to create the data connection
- Using the Import Data dialog automatically displayed, create a new pivot table in the main worksheet
- Verify PivotTable Report is selected
- Verify the data is placed in the existing worksheet at =$A$1
Click OK to create the pivot table
Figure 12
Import Data Dialog
- Add a measure of Internet Sales Amount and the Geography and Calendar dimensions to the pivot table
- In the PivotTable Field List task pane, choose Internet Sales in the Show fields related to drop down
Find Internet Sales Amount in the check box list and check it
Figure 13
Choose Internet Sales Measure
Find CustomerGeography in the check box list and check it
Figure 14
Choose Geography Dimension
Find Date.Calendar in the check box list and check it
Figure 15
Choose Date Dimension
At this point your pivot table should look like this
Figure 16
Complete Pivot Table
Task 2 – Add Sparklines to compliment the Pivot Table
In this task, you will use Sparklines to highlight trends in data and identify min\max values with special formatting.
- Filter the pivot table to show all months in 2002 only
- Click the drop down arrow in the ColumnLabels cell (B1)
In the filter drop down uncheck all years except CY 2002 and click OK
Figure 17
Year Dimension Filter
- Click the plus by CY 2002 (B2) to drill into the year
- Drill into H1 CY 2002 (B3) and H2 CY 2002 (C3)
- Drill into Q1 CY 2002 (B4), Q2 CY 2002 (C4), Q2 CY 2002 (E4), and Q2 CY 2002 (F4)
Right click the January 2002 node and select Show/Hide Fields and click:
- Calendar Year
- Calendar Semester
- Calendar Quarter
Figure 18
Filtered Pivot Table
- Add Sparklines for all countries using the data from B3:M8
- Copy the country names from cells A3:A8 to A12:A17
- Select the cells from B12:B17
- In the Insert ribbon click the Line button in the Sparklines group
In the dialog choose a Data range from B3:M8
Figure 19
Create Sparklines Dialog
Click OK to create the Sparklines
- Update the formatting of the Sparklines to highlight the min and max points
- Make sure cells B12:B17 are selected
- In the Sparkline Tools Design tab, click Marker Color -> High Point and choose a color of yellow
In the Sparkline Tools Design tab, click Marker Color -> Low Point and choose a color of green
Figure 21
Sparklines with Min/Max
Task 3 – Publishing the Excel Workbook to Excel Services
In this task you will publish the Excel Workbook to SharePoint and viewing it using Excel Services
- Publish the Excel Workbook to Excel Services
- Click the Backstage button (labeled as File) to open backstage
- Switch to the Save & Send tab in Backstage
- Click the Send to SharePoint option under Save & Send then click the Save As button
- Click the Publish Options button
- In the drop down choose Sheets and uncheck Sheet2 and Sheet3 to only share Sheet1
- Back in the Save As dialog, enter a path of https://intranet.contoso.com/sites/BIApplications/Documents/PivotTable.xlsx
- Click Save
- Open the PivotTable workbook in the browser
- In Internet Explorer navigate to https://intranet.contoso.com/sites/BIApplications/Documents
Click the link to PivotTable to view it in the browser
Figure 22
Excel Workbook in the Browser