118
1

2014 AIR "Power" Tools for IR Reporting - workshop

Embed Size (px)

Citation preview

Page 1: 2014 AIR "Power" Tools for IR Reporting - workshop

1

Page 2: 2014 AIR "Power" Tools for IR Reporting - workshop

Home of the Catamounts and the 2009 Sudler Trophy winners.

Manteo Mitchell graduated with a bachelors and masters degree from WCU.

Greg Holland, pitcher for Kansas City Royals, was a Western student.

Page 3: 2014 AIR "Power" Tools for IR Reporting - workshop

3

Page 4: 2014 AIR "Power" Tools for IR Reporting - workshop

4

Page 5: 2014 AIR "Power" Tools for IR Reporting - workshop

5

Page 6: 2014 AIR "Power" Tools for IR Reporting - workshop

6

Page 7: 2014 AIR "Power" Tools for IR Reporting - workshop

7

Page 8: 2014 AIR "Power" Tools for IR Reporting - workshop

8

Page 9: 2014 AIR "Power" Tools for IR Reporting - workshop

Using Access for workshop, but data is commonly in SQL Server or Oracle database due to Access size limitations and access issues.

9

Page 10: 2014 AIR "Power" Tools for IR Reporting - workshop

10

Page 11: 2014 AIR "Power" Tools for IR Reporting - workshop

11

Page 12: 2014 AIR "Power" Tools for IR Reporting - workshop

12

Page 13: 2014 AIR "Power" Tools for IR Reporting - workshop

13

Page 14: 2014 AIR "Power" Tools for IR Reporting - workshop

14

Page 15: 2014 AIR "Power" Tools for IR Reporting - workshop

15

Page 16: 2014 AIR "Power" Tools for IR Reporting - workshop

16

Page 17: 2014 AIR "Power" Tools for IR Reporting - workshop

17

Page 18: 2014 AIR "Power" Tools for IR Reporting - workshop

18

Page 19: 2014 AIR "Power" Tools for IR Reporting - workshop

There is delay on lower rectangles

19

Page 20: 2014 AIR "Power" Tools for IR Reporting - workshop

20

Page 21: 2014 AIR "Power" Tools for IR Reporting - workshop

Can put multiple variables in each area, pivot table accommodates.

Totals at each level are aggregate of ALL elements at levels below (including repeated elements).

21

Page 22: 2014 AIR "Power" Tools for IR Reporting - workshop

22

Page 23: 2014 AIR "Power" Tools for IR Reporting - workshop

23

Page 24: 2014 AIR "Power" Tools for IR Reporting - workshop

Make sure it is loaded

24

Page 25: 2014 AIR "Power" Tools for IR Reporting - workshop

If Power Pivot ribbon not there, needs to be enable.

Enable Developer tab, then enable Power Pivot

See Appendix B

25

Page 26: 2014 AIR "Power" Tools for IR Reporting - workshop

26

Page 27: 2014 AIR "Power" Tools for IR Reporting - workshop

Select appropriate add‐insBe careful of memory usage

27

Page 28: 2014 AIR "Power" Tools for IR Reporting - workshop

Most used are Manage and Calculated Fields

Switch to Power Pivot with Manage

28

Page 29: 2014 AIR "Power" Tools for IR Reporting - workshop

Features – Excel‐likeRibbonFormula barData area

From Data imports from Microsoft database sources

Oracle, Microsoft Excel, etc. are found under From Other Sources

29

Page 30: 2014 AIR "Power" Tools for IR Reporting - workshop

30

Page 31: 2014 AIR "Power" Tools for IR Reporting - workshop

Can import multiple tables at one from same source database

OR

Can write a complex SQL query, possibly joining multiple tables

31

Page 32: 2014 AIR "Power" Tools for IR Reporting - workshop

Select tablesCan rename before importing (allows for importing same table multiple 

times – yes, there is a reason for this)Can preview the table prior to importCan filter table to load only necessary columns and rows

Clicking OK begins import of all selected tables

Progress and completion status are shown, including any errors generated (# rows imported is also shown)

32

Page 33: 2014 AIR "Power" Tools for IR Reporting - workshop

Excel‐like environmentTab at bottom is table/alias nameColumn names along top with filtersCharacter data is left justified, numeric is right justified

NOTE: Filtering here does not change the filtering in Excel.  It is only available to help review the data while in Power Pivot

Lower pane is the calculated field area

33

Page 34: 2014 AIR "Power" Tools for IR Reporting - workshop

To insert pivot table, click the button on the Home tab in the ribbon and choose New Worksheet.

34

Page 35: 2014 AIR "Power" Tools for IR Reporting - workshop

Look VERY similar

Power Pivot allows for multiple tables in one pivot table – WHAT!?!?!?Order of fields is alphabetical in plain but “by column” in power pivot

35

Page 36: 2014 AIR "Power" Tools for IR Reporting - workshop

Brief exercise to recreate pivot table from Exercise 2.2 using Power Pivot

36

Page 37: 2014 AIR "Power" Tools for IR Reporting - workshop

37

Page 38: 2014 AIR "Power" Tools for IR Reporting - workshop

38

Page 39: 2014 AIR "Power" Tools for IR Reporting - workshop

Three waysDesign ‐> AddDouble‐click Add ColumnRight click and select Insert Column

39

Page 40: 2014 AIR "Power" Tools for IR Reporting - workshop

Formula bar supports IntelliSense, just like Excel

NOTE: Table and field names are included

On far right of formula bar, click drop‐down to expand formula area (just like Excel)

Best practice ‐ Enter formulas using SHIFT‐ENTER and spaces to format

40

Page 41: 2014 AIR "Power" Tools for IR Reporting - workshop

Can rename column only after column has been created

Best practice – name columns in table as ‘Table’[Column] and name calculated fields as [Calculated Field]

Can set formatting on column or calculated fields – applies to all uses

Can hide a column from the resulting pivot table, power view or power map

This formula is DAX (looks a lot like an Excel formula)

41

Page 42: 2014 AIR "Power" Tools for IR Reporting - workshop

Drag new field to VALUES section and it is added to pivot table just like any other value

42

Page 43: 2014 AIR "Power" Tools for IR Reporting - workshop

Two evaluation contexts.  All calculations are done in one of these two contexts.

43

Page 44: 2014 AIR "Power" Tools for IR Reporting - workshop

SAT – Total is calculated in row context within the table

44

Page 45: 2014 AIR "Power" Tools for IR Reporting - workshop

For the SAT ‐ Total calculated columnNo row specified in formulaOperates on row‐by‐row basis, as expected.  This is just like an Excel table

45

Page 46: 2014 AIR "Power" Tools for IR Reporting - workshop

46

Page 47: 2014 AIR "Power" Tools for IR Reporting - workshop

To calculate the Average SAT for Information Management, the following filters apply:

Semester=“Fall”Academic Year=“2003‐2004”College=“College of Information Studies”Department=“Information Management”

NOTE: Program=All programs even though Program is included in pivot table

Calculated Fields are computed using filter context 

47

Page 48: 2014 AIR "Power" Tools for IR Reporting - workshop

48

Page 49: 2014 AIR "Power" Tools for IR Reporting - workshop

A calculated field is often called a measure, especially by everyone outside of Microsoft

49

Page 50: 2014 AIR "Power" Tools for IR Reporting - workshop

Can add from Excel or from Power PivotEasiest way is from Excel

50

Page 51: 2014 AIR "Power" Tools for IR Reporting - workshop

First – specify name of calculated fieldSecond – specify formula

IntelliSense applies in the formula box as expected

51

Page 52: 2014 AIR "Power" Tools for IR Reporting - workshop

52

Page 53: 2014 AIR "Power" Tools for IR Reporting - workshop

First – specify name of calculated fieldSecond – specify formula

IntelliSense applies in the formula box as expected

53

Page 54: 2014 AIR "Power" Tools for IR Reporting - workshop

Creating calculated field this way will automatically add it to pivot table

Notice difference in counts

Power Pivot calculations done one a cell‐by‐cell basis, irrespective of the other cells (filter context).

54

Page 55: 2014 AIR "Power" Tools for IR Reporting - workshop

Creating calculated field this way will automatically add it to data model

Notice the formula is what was entered in the dialog previously

55

Page 56: 2014 AIR "Power" Tools for IR Reporting - workshop

56

Page 57: 2014 AIR "Power" Tools for IR Reporting - workshop

57

Page 58: 2014 AIR "Power" Tools for IR Reporting - workshop

Filters in CALCULATE add to the filter context, replacing any filters on a matching field

Filters must use Boolean conditions or provide the complete list of acceptable values (FILTER)

After all filters have been evaluated, they are ANDed and the expression is calculated

Each filter is evaluated in the original filter context of the CALCULATE call

Operators to use

For multi‐line use SHIFT‐ENTER

58

Page 59: 2014 AIR "Power" Tools for IR Reporting - workshop

Boolean Condition: WorkshopData[Class level]=“Freshman”

59

Page 60: 2014 AIR "Power" Tools for IR Reporting - workshop

Notice First‐time Freshmen Distinct Students always matches the Freshman, Yes value.

60

Page 61: 2014 AIR "Power" Tools for IR Reporting - workshop

61

Page 62: 2014 AIR "Power" Tools for IR Reporting - workshop

Very useful for calculating the denominator in the % of population equation

62

Page 63: 2014 AIR "Power" Tools for IR Reporting - workshop

Whatever might be specified in the filter context, this will calculate [Distinct Enrolled Students] for all class levels.

63

Page 64: 2014 AIR "Power" Tools for IR Reporting - workshop

See how ALL works, filtering on Class Level, but not on Program Name

64

Page 65: 2014 AIR "Power" Tools for IR Reporting - workshop

DIVIDE is a safe divide which will replace any errors with zero

65

Page 66: 2014 AIR "Power" Tools for IR Reporting - workshop

66

Page 67: 2014 AIR "Power" Tools for IR Reporting - workshop

67

Page 68: 2014 AIR "Power" Tools for IR Reporting - workshop

Open from Hands‐on Exercises.  Read instructions carefully to ensure you are in the correct environment.

68

Page 69: 2014 AIR "Power" Tools for IR Reporting - workshop

Can be used to override all filters on a table at once

Filter context is passed to table and filter expression

Creates a row context (masking any 

69

Page 70: 2014 AIR "Power" Tools for IR Reporting - workshop

previous row context) for evaluation

Returns table of all matching values

When used in CALCULATE, the CALCULATE filter is updated after FILTER is executed

69

Page 71: 2014 AIR "Power" Tools for IR Reporting - workshop

Table being filtered is WorkshopData

FILTER must calculate [Average GPA Enrolled Undergraduates] first, in the calling filter context and then use that value to evaluate this expression in row context.

This returns a table with all matching rows for evaluating [Distinct Enrolled Students].

70

Page 72: 2014 AIR "Power" Tools for IR Reporting - workshop

71

Page 73: 2014 AIR "Power" Tools for IR Reporting - workshop

Needed for exercise.

72

Page 74: 2014 AIR "Power" Tools for IR Reporting - workshop

73

Page 75: 2014 AIR "Power" Tools for IR Reporting - workshop

74

Page 76: 2014 AIR "Power" Tools for IR Reporting - workshop

75

Page 77: 2014 AIR "Power" Tools for IR Reporting - workshop

On the INSERT tab, click Map in the Power Map section

To use Power Map, you need a Power Pivot model or you can select data in Excel and click the drop‐down to “Add Selected Data to Power Map”.

In the Launch Power Map window, select the Power Map with which you wish to work.

76

Page 78: 2014 AIR "Power" Tools for IR Reporting - workshop

Excel automatically creates a map from the data in the power pivot model using the country, state, and/or county data within the model.

Click Next.

77

Page 79: 2014 AIR "Power" Tools for IR Reporting - workshop

The geography choice is shown at top of Layer pane.

Tables and fields from power pivot model shown below that, with other attributes at bottom.

Clicking ID will add it to the map in the HEIGHT attribute.  (see next slide)

78

Page 80: 2014 AIR "Power" Tools for IR Reporting - workshop

You can get rid of the overlay by moving your mouse over the overlay and click the X in the upper right corner.

79

Page 81: 2014 AIR "Power" Tools for IR Reporting - workshop

Change the Sum to Count

80

Page 82: 2014 AIR "Power" Tools for IR Reporting - workshop

You can use the navigation tools to change the perspective of the map.

81

Page 83: 2014 AIR "Power" Tools for IR Reporting - workshop

You can even add gender to convert the bars to stacked bars using color.

82

Page 84: 2014 AIR "Power" Tools for IR Reporting - workshop

Or even a Choropleth.

83

Page 85: 2014 AIR "Power" Tools for IR Reporting - workshop

Power Map ribbon

84

Page 86: 2014 AIR "Power" Tools for IR Reporting - workshop

85

Page 87: 2014 AIR "Power" Tools for IR Reporting - workshop

86

Page 88: 2014 AIR "Power" Tools for IR Reporting - workshop

Left – Power View fields just like in pivot table

Middle – Filters

Right – The “canvas”

87

Page 89: 2014 AIR "Power" Tools for IR Reporting - workshop

NOTE: Fields listed in alphabetical order, unlike in pivot table

88

Page 90: 2014 AIR "Power" Tools for IR Reporting - workshop

89

Page 91: 2014 AIR "Power" Tools for IR Reporting - workshop

But you can convert table into map!

90

Page 92: 2014 AIR "Power" Tools for IR Reporting - workshop

Adding Count (Distinct) of ID to SIZE will …

91

Page 93: 2014 AIR "Power" Tools for IR Reporting - workshop

… change the map point sizes to be based on the count of people

92

Page 94: 2014 AIR "Power" Tools for IR Reporting - workshop

Adding Gender to COLOR will …

93

Page 95: 2014 AIR "Power" Tools for IR Reporting - workshop

… change the points to pie charts (YUCK!) showing the gender split!

94

Page 96: 2014 AIR "Power" Tools for IR Reporting - workshop

Adding a table for counts of students by college

95

Page 97: 2014 AIR "Power" Tools for IR Reporting - workshop

Can add Academic Year to Filters

96

Page 98: 2014 AIR "Power" Tools for IR Reporting - workshop

Now, if you select one of the pie charts on the map, say the one in South Carolina you will see …

97

Page 99: 2014 AIR "Power" Tools for IR Reporting - workshop

… notice how all the other points are dimmed and the table is filtered to those colleges with students from South Carolina!

98

Page 100: 2014 AIR "Power" Tools for IR Reporting - workshop

99

Page 101: 2014 AIR "Power" Tools for IR Reporting - workshop

100

Page 102: 2014 AIR "Power" Tools for IR Reporting - workshop

101

Page 103: 2014 AIR "Power" Tools for IR Reporting - workshop

102

Page 104: 2014 AIR "Power" Tools for IR Reporting - workshop

103

Page 105: 2014 AIR "Power" Tools for IR Reporting - workshop

104

Page 106: 2014 AIR "Power" Tools for IR Reporting - workshop

105

Page 107: 2014 AIR "Power" Tools for IR Reporting - workshop

In Excel, select ‘From Other Sources, Facebook’, paste FACEBOOK GROUP ID & select ‘MEMBERS’ in ‘Connection’

106

Page 108: 2014 AIR "Power" Tools for IR Reporting - workshop

Expand ‘Object ID’ icon to select additional data elements available (select ‘GENDER’ and ‘USERNAME’)

107

Page 109: 2014 AIR "Power" Tools for IR Reporting - workshop

In Excel, select ‘Online Search’, SEARCH TERM:  EMPLOYMENT

108

Page 110: 2014 AIR "Power" Tools for IR Reporting - workshop

109

Page 111: 2014 AIR "Power" Tools for IR Reporting - workshop

110

Page 112: 2014 AIR "Power" Tools for IR Reporting - workshop

111

Page 113: 2014 AIR "Power" Tools for IR Reporting - workshop

Very similar layout to Excel – Ribbon, Data, Settings/Properties pane

112

Page 114: 2014 AIR "Power" Tools for IR Reporting - workshop

Just like an Excel table

Filter data just like in Excel

NOTE: Data shown in filter may be incomplete so using checkboxes may not work

113

Page 115: 2014 AIR "Power" Tools for IR Reporting - workshop

Can load directly into Power Pivot from Power Query without loading into an Excel Worksheet!

Be sure to Apply changes!

114

Page 116: 2014 AIR "Power" Tools for IR Reporting - workshop

115

Page 117: 2014 AIR "Power" Tools for IR Reporting - workshop

116

Page 118: 2014 AIR "Power" Tools for IR Reporting - workshop

117