project 5 creating interactive pivot table reports and charts jason c. h. chen, ph.d. professor of...

51
Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration Gonzaga University Spokane, WA 99258, USA [email protected]

Upload: elijah-whitehead

Post on 08-Jan-2018

214 views

Category:

Documents


0 download

DESCRIPTION

3 Excel Skills Add a field to a PivotTable list using Internet Explorer Add a PivotChart to a workbook Create PivotTable reports to analyze data Display PivotTable reports on the web Group data in a PivotTable report Import sales transaction data into Excel Modify fields in a PivotTable report Organize a PivotTable report using a page field Set up data for a PivotTable

TRANSCRIPT

Page 1: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

Project 5Creating Interactive Pivot Table Reports and Charts

Jason C. H. Chen, Ph.D.Professor of

Management Information Systems

School of Business Administration

Gonzaga UniversitySpokane, WA 99258, USA

[email protected]

Page 2: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

2

Seven Steps for Developing Excel Workbooks

Page 3: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

3

Excel Skills Add a field to a PivotTable list using Internet

Explorer Add a PivotChart to a workbook Create PivotTable reports to analyze data Display PivotTable reports on the web Group data in a PivotTable report Import sales transaction data into Excel Modify fields in a PivotTable report Organize a PivotTable report using a page field Set up data for a PivotTable

Page 4: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

4

Key Terms ASCII text

A format for storing letters, numbers, and symbols according to the American Standard for Information Interchange (ASCII). ASCII data can usually be shared among computers using different operating systems.

PivotChart An interactive report that summarizes large amount

of data in a graphical chart. PivotTable

An interactive table that summarizes and analyzes data from lists.

Page 5: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

5

Key Terms PivotTable list

A PivotTable report published on a Web page. The published PivotTable list and has much of the same interactive functionality in Internet Explorer as the PivotTable report in Excel.

PivotTable report An interactive table that summarizes and analyzes

data from existing lists, tables, and databases. Transaction

A single business event, such as the sale of a product or depositing money into a bank account.

Page 6: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

6

Objectives Import a delimited text file into Excel Set up data for PivotTables Create a Simple PivotTable Group Data in the PivotTable Organize a PivotTable using a page field Modify a PivotTable report Create a PivotChart Report

Page 7: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

7

Running Case Selections, Inc. is a national department store

chain with retail stores throughout the United States and Canada.

When the e-commerce site goes live, there will be thousands of transactions each day. They want to be sure that various departments will be able to quickly and easily analyze the transaction data using simple computer applications.

Summarize the data by store, and by product. Post data analysis results to the company’s

intranet.

Page 8: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

8

Project 4 Challenge Examine the raw transaction data. If the

data file has a consistent structure, you can import it into Excel and then analyze it.

Creating an Excel PivotTable to efficiently summarize the data. Add other statistical functions to further analyze the data.

Create a pivot chart to accompany the pivot table, and publish both the selections, Inc. intranet.

Page 9: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

9

Solution – Pivot Table

Page 10: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

10

Solution Why How

9 Tasks File you need

Orders.txt

Page 11: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

11

Why – Purposes of using PivotTable you can quickly and efficiently

summarize the data you can add other statistical functions

to further analyze the data you can create a PivotChart to

accompany the PivotTable and publish both to the intranet

Advantage of using PivotTable for data analysis is economy - it requires no formulas

Page 12: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

12

Task 1: Import an ASCII-Delimited text file into Excel• 0. You should have a text file: Orders.txt• 1. Click File, Open. The Open dialog box

will appear• 2. In the Open dialog box, select Text Files

in the Files of Type: listbox• 3. Select Floppy (A:) in the Look in: list (or

the appropriate drive for the Orders.txt file)

• 4. Highlight the Orders.txt file and click the Open button.

Page 13: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

13

Task 1: Import an ASCII-Delimited text file into Excel (cont.)

6. In Step 2 (of 3) of the import wizard, select Comma as the delimiter. Click the Next button.

5. Make sure the Delimited option button under Original data type is selected and that the import will begin with row1. Click Next.

Page 14: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

14

Task 1: Import an ASCII-Delimited text file into Excel

8. Apply the same way to display the OrderDate data. Select the Date option button in the Column data format box and MDY as the data type.

7. In Step 3 (of 3) of the import wizard, use the horizontal scrool bar to display the ZipCode data. Select the Text option button in the Column data format.

9. Click the Finish button. Excel will create a worksheet named Orders in the current workbook.10. Click File, Save As and select Microsoft Excel Workbbok under the Save As tyep:listbox and click Save.

Page 15: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

15

Result from Task 1

Conditions of analyzing transaction data in a PivotTable:1) each row must have a column label2) each row must contain a unique record3) avoid blank rows and columns4) change any date values to date format

Page 16: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

16

Fields of the Data File

Data file: Orders.xls

Page 17: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

17

Task 2: Set up the data for the PivotTable report - new column O

1. Type Total Price in cell O12. Type =m2*n2 as the formula in cell O23. Using the fill handle, copy the formula through row 374. Select columns M and O and change the format of the nonadjacent

selection to currency, with two decimal places.5. Highlight the range A1:O1 and change the font style of the selection

to Bold, and add a lower border to the selection.6. Select columns A through D (or A1:O1), and double click any column

separator to automatically adjust all column widths to fit the longest entry.

7. Save the workbook.

Page 18: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

18

Features of PivotTable Easy to change the view of the data rotate rows and columns to see summaries filter the data by displaying different pages display the details for areas of interest

see any sales trends related to particular items

know if the sales of individual items vary according to the purchase date

Help marketing department best represent the products

Advertising and Marketing may be interested in ...

Page 19: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

19

Task 3: Create a Pivot Table

1. Select cell A1

2. Click Data, PivotTable and PivotChart Report. The PivotTable Wizard will appear.

3. In Step 1, verify that the data to be analyzed is an Excel list or database and that you want to create a PivotTable Report. Click the Next button.

Page 20: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

20

Task 3: Create a Pivot Table (cont.)

4. Step 2 of the PivotTable Wizard verifies the data range automatically. The range should be A1:O37

5. (a) Step 3 of the Wizard has you specify the location for the PivotTable Report. (b) To keep the report independent of the transaction data, select the option to put the PivotTable in a new worksheet.(c ) To set up the PivotTable, click Layout.

Page 21: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

21

Task 3: Create a Pivot Table (cont.)6. The design grid will appear. Drag the Order Date field name to the Column area of the layout.7. Drag the Product Description field name to the Row area of the layout.8. Drag the Total Price field name and drag it to the Data area of the layout.

The layout should now look like this.

Click OK

Page 22: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

22

Task 3: Create a Pivot Table (cont.)

9. Step 3 of the Wizard will once again appear on the screen.

10. Click the Finish button.

The PivotTable shown on the next slide is added to the workbook. The PivotTable is in a new worksheet named Sheet1, and the PivotTable toolbar appears in an undocked state.

Page 23: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

23

Task 3: Result of Creating a Pivot Table

The PivotTable is in a new worksheet named Sheet1, and the PivotTable toolbar appears in an undocked state. 11. Save the workbook.

Page 24: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

24

How do you display the PivotTable toolbar, once you close it?

Page 25: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

25

Task 4: Group data in the PivotTable Report

1. Right-click over the OrderDate button in cell B3, choose Group and Outline, and select Group

2. Select Months in the Grouping dialog box, and click OK.

Page 26: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

26

Task 4: Group data in the PivotTable Report (cont.)

3. Rename the Sheet1 worksheet tab to Item Description By Date, and place the insertion point in cell A5.4. Save the workbook.

Page 27: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

27

Task 5: Organize a PivotTable using a Page Field

1. Click Data, PivotTable and PivotChart Report.

2. Click the Layout button in Step 3 of the Wizard.

3. Drag the Category field name to the Page area of the PivotTable layout.4. Click OK. Step 3 of the Wizard will appear once again.

Page 28: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

28

Task 5: Organize a PivotTable using a Page Field (cont.)

4. (cont.) Step 3 of the Wizard will appear once again. Click Finish.

Excel adds a new row to the PivotTable Report. It displays the Category field button in cell A1 of the PivotTable, and a drop-down list for product categories in cell B1.

5. Click the drop-down list button in cell B1 and select Appliances.

6. Click the OK. The PivotTable will change. The Appliances items are now displayed.

Page 29: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

29

6. (cont.) Click the OK. The PivotTable will change. The Appliances items are now displayed.

Task 5: Organize a PivotTable using a Page Field (cont.)

7. Using the same procedure, display other product categories.

8. Save the workbook.

Page 30: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

30

Pivot Chart

Page 31: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

31

Task 6: Add a PivotChart to the Current PivotTable Report

2. Select cell A1 and click the Chart Wizard icon on the standard toolbar.

1. Open the existing Orders.xls workbook if it is not open and active.

3. The chart displayed is added to the workbook.

Notice the Category and OrderDate field buttons that appear in the chart area; these indicate that this is a PivotChart.

Page 32: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

32

4. Rename the Chart1 tab as Description by Months (chart)

Task 6: Add a PivotChart to the Current PivotTable Report (cont.)

5. Click the Category field button, and select Electronics.

6. Click OK. The chart is modified.

Page 33: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

33

Task 6: Add a PivotChart to the Current PivotTable Report (cont.)

7. Click the Category field button, and select All.8. Click OK. The chart is modified.

9. Click the Item Description by Date worksheet tab.

Page 34: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

34

Task 6: Add a PivotChart to the Current PivotTable Report (cont.)

10. It shows how the PivotTable’s layout has also been modified.

11. Save the workbook.

Page 35: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

35

1. Click the Category field button and drag it into column A anywhere (left) inside the PivotTable Report.

Task 7: Modify the PivotTable Layout using Drag and Drop

2. Release the left mouse button. The report layout changes. Notice that the category descriptions now appear in column A and the product descriptions in column B.

Page 36: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

36

The complete report from the previous step.

Page 37: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

37

Task 7: Modify the PivotTable Layout using Drag and Drop (cont.)

1, 2. (cont.) Click the Category field button and drag it into column A anywhere (right) inside the PivotTable Report.

Page 38: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

38

3. Right-click over the OrderDate field button, choose Group and Outline, and select Group.

Task 7: Modify the PivotTable Layout using Drag and Drop (cont.)

4. Change the grouping to display years. Click OK. The complete report is shown next.

Page 39: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

39

Task 7: Modify the PivotTable Layout using Drag and Drop (cont.)

Page 40: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

40

Task 7: Modify the PivotTable Layout using Drag and Drop (cont.)

5. Right-click over the Category field button, choose Group and Outline, and select Hide Detail.

As you can see that the report collapses.

Page 41: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

41

Displaying PivotTable Reports on the Web

Task 8: Publish a PivotTable Report to the Web as an Interactive PivotTable List

Page 42: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

42

Task 8: Publish a PivotTable Report to the Web as an Interactive PivotTable List

1. Click File, Save As Web page

2. Click the Save: drop-down list (you may select the floppy diskette if you wish).3. Check the option to publish the current worksheet only, with interactivity.4. Type Selections E Commerce data.htm as the name for the page. Click the Publish button.

Page 43: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

43

Task 8: Publish a PivotTable Report to the Web as an Interactive PivotTable List (cont.)

5. The Publish as Web Page dialog box will appear.

Choose the PivotTable in the list, and make sure the remaining setting match.

When they do, click Publish.

It will take Excel a moment to create the PivotTable list, and calculate the data summaries.

Page 44: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

44

Pivot Table List on the Web

Page 45: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

45

Task 9: Add a Field to the PivotTable List using I.E.

Field List

1. Click the Field List button on the displayed Web page. The Field List dialog box will appear.

2. Scroll the Field List to display the ProductID field name.

Page 46: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

46

Task 9: Add a Field to the PivotTable List using I.E. (cont.)

3. Click and drag the ProductID fiedl name between the Category and Product Description fields displayed in the browser. Notice the blue line indicating the position for the field you will add.

4. Release the left mouse button. The (ProductID) field is added to the PivotTable List (see next slide).

Page 47: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

47

Task 9: Add a Field to the PivotTable List using I.E. (cont.)

5. Close Internet Explorer.6. Close the Order.xls workbook. Save any changes you have

made.

Page 48: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

48

What happen if you1. Select Entire Workbook, and2. Unselect Add Interactivity

Question?

Page 49: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

49

Hands-On Exercise You may try to publish a chart only on

the Web with Interactivity.

Page 50: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

50

Pivot Table List

Page 51: Project 5 Creating Interactive Pivot Table Reports and Charts Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration

Project 5

Creating Interactive Pivot Table Reports