In the Power Pivot window, on the Home tab, click the PivotTable button, leave New

4. In the Power Pivot window, on the Home tab, click the PivotTable button, leave New

Worksheet selected in the Create PivotTable dialog box and then click OK . You should see an empty PivotTable frame starting in cell B3 . On the right side of your Excel window, you should see the PivotTable Fields pane. Below the header in the PivotTable Fields pane, you should see ACTIVE and ALL tabs, and if ALL is selected, you should see all of the tables in the workbook listed and tblSalesData should appear in bold.

5. In the PivotTable Fields pane, click the little empty triangle to the left of tblSalesData to expand it and see the list of fields in the tblSalesData table. Select the check boxes for the Sales Amount field and the Units Sold field. You should see 654965187.3 in cell B4 and 25311934 in cell C4.

6. Right-click cell B4 and select Number Format from the shortcut menu. Select the Accounting format, set the Decimal places to 0 , and then click OK .

7. Right-click cell C4 and select Number Format . Select the Number format, set the Decimal places to 0 , check the box for Use 1000 separator (,) , and then click OK .

8. In the PivotTable Fields pane, check the box beside the State Abbr field to add it to ROWS area. It displays in the PivotTable as a ROW field.

9. Drag the Product field from the fields list to the COLUMNS area placing it above the ∑ Values field. Notice that after each type of product, we have one column for Sum of Sales Amount and another column for Sum of Units Sold.

10. Drag the ∑ Values field above the Product field. Note the change in the layout of the PivotTable. Now all of the Sum of Sales Amount columns are adjacent, followed by all of the Sum of Units Sold columns. Your PivotTable should look very similar to Figure 4-17.

Figure 4-17

A PivotTable created using Power Pivot

Working with Advanced Charts and PivotTables

11. SAVE the workbook. PAUSE. LEAVE the workbook open to use in the next exercise.

Managing Relationships in the Power Pivot Data Model The next exercise demonstrates where the benefits of the Power Pivot data model begin to shine.

Remember that before building our Power Pivot PivotTable, we looked at the data in our work- book, and changed the data sets into tables. Now we are going to add these tables to the model and define the relationships between the tables.

If you are not familiar with relational databases, a relationship is the term that describes when two tables have a connection between two fields. In our data model, our main sales data has the State Abbr column. All of the supporting tables also have a State Abbr column. This means that we can use the “NV” in the sales data table to look up who is the sales rep for Nevada. We can also look up which Sales Region Nevada is in, and we can look up the full name of the state that has the abbreviation “NV”.

If we are pulling data in from Access, Power Pivot will likely import any relationships between any tables that were defined in the Access database. But when using tables residing on Excel worksheets or importing data from a “flat file” like a .TXT or .CSV file, we need to define these relationships manually.

STEP BY STEP

Manage Relationships in Power Pivot

GET READY. USE the

04 Power Pivot Solution.xlsx workbook that should already be open in Excel 2016. All of the data blocks should now be defined as tables and the default names

changed to new names per a previous exercise.

1. Select the Rep by State worksheet in the main Excel application window. Select any cell in the tblRepByState table.

2. Click the Power Pivot tab. In the Tables group, click the Add to Data Model button.

3. Click back in the main Excel application window and repeat steps 1 and 2 for the

Region by State worksheet and the tblRegionByState table.

Dokumen yang terkait

Analisis Komparasi Internet Financial Local Government Reporting Pada Website Resmi Kabupaten dan Kota di Jawa Timur The Comparison Analysis of Internet Financial Local Government Reporting on Official Website of Regency and City in East Java

19 819 7

Analisis Komposisi Struktur Modal Pada PT Bank Syariah Mandiri (The Analysis of Capital Structure Composition at PT Bank Syariah Mandiri)

23 288 6

Improving the Eighth Year Students' Tense Achievement and Active Participation by Giving Positive Reinforcement at SMPN 1 Silo in the 2013/2014 Academic Year

7 202 3

An Analysis of illocutionary acts in Sherlock Holmes movie

27 148 96

Improping student's reading comprehension of descriptive text through textual teaching and learning (CTL)

8 140 133

Teaching speaking through the role play (an experiment study at the second grade of MTS al-Sa'adah Pd. Aren)

6 122 55

Enriching students vocabulary by using word cards ( a classroom action research at second grade of marketing program class XI.2 SMK Nusantara, Ciputat South Tangerang

12 142 101

The Effectiveness of Computer-Assisted Language Learning in Teaching Past Tense to the Tenth Grade Students of SMAN 5 Tangerang Selatan

4 116 138

Analysis On Students'Structure Competence In Complex Sentences : A Case Study at 2nd Year class of SMU TRIGUNA

8 98 53

The correlation between listening skill and pronunciation accuracy : a case study in the firt year of smk vocation higt school pupita bangsa ciputat school year 2005-2006

9 128 37