2015 NCAIR Excel Power Tools

88
Excel Power Tools David Onder and Alison Joseph NCAIR 2015 Conference

Transcript of 2015 NCAIR Excel Power Tools

Page 1: 2015 NCAIR Excel Power Tools

Excel Power Tools

David Onder and Alison Joseph

NCAIR 2015 Conference

Page 2: 2015 NCAIR Excel Power Tools

• 10,382 students

• Master’s Comprehensive

• Mountain location

• Residential and Distance

2

Page 3: 2015 NCAIR Excel Power Tools

Why Pivot Tables

• Summarize large datasets

• Quickly add, remove, rearrange elements

• (Little to) No formula-writing

• Can be a basis for self-service data

• Can connect to a refreshable data source

3

Page 4: 2015 NCAIR Excel Power Tools

Limitations of Pivot Tables

• Connected to only 1 table

• Formatting not maintained

• Calculated fields need to be created for each Pivot

Table

• Can’t count the way universities usually want to count

4

Page 5: 2015 NCAIR Excel Power Tools

5

Displaying Data –Pivot Tables

Page 6: 2015 NCAIR Excel Power Tools

Connecting to Data

6

Page 7: 2015 NCAIR Excel Power Tools

Connecting to Data

7

Page 8: 2015 NCAIR Excel Power Tools

Displaying Data – Pivot Tables

8

Page 9: 2015 NCAIR Excel Power Tools

Displaying Data – Pivot Tables

9

Page 10: 2015 NCAIR Excel Power Tools

Displaying Data – Pivot Tables

10

Sum

Count

Average

Max

Min

Product

Count Numbers

StdDev

StdDevp

Var

Varp

Page 11: 2015 NCAIR Excel Power Tools

Displaying Data – Pivot Tables

11

Page 12: 2015 NCAIR Excel Power Tools

12

Displaying Data –Power Pivot

Page 13: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Set-up

13

• Installed with Excel 2013

• Downloadable add-in for Excel 2010

• Not available prior to Excel 2010

Page 14: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• The Power Pivot environment

14

Open Power Pivot

Page 15: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• The Power Pivot environment

15

Page 16: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Import data

16

Page 17: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• How the imported data look

17

Page 18: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Bringing data into Excel

18

Page 19: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• PivotTable vs. Power Pivot PivotTable

19

Page 20: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• DAX

– Data Analysis Expressions (DAX)

– Formula language for Power Pivot

– Used to create Calculated Columns and Calculated

Fields

20

Page 21: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Calculated Columns

– Used to add an additional column to data table

– Can be a column added from a related table (like a VLOOKUP) or new data, derived from existing data (sum to combined SAT, length of name, substring of longer string, etc.)

– Column can be used in any area of the pivot

21

Page 22: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Adding a calculated column

22

Page 23: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Adding a calculated column

23

Page 24: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Adding a calculated column

24

Page 25: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Adding a calculated column to pivot table

25

Page 26: 2015 NCAIR Excel Power Tools

Evaluation Contexts

26

• Row context

• Filter context

Page 27: 2015 NCAIR Excel Power Tools

• Row context

• Filter context

Evaluation Contexts

27

• The one row being evaluated

• Automatic for calculated columns

• Can be created in other ways as well (SUMX, AVERAGEX, etc.)

Page 28: 2015 NCAIR Excel Power Tools

Row Context

28

Page 29: 2015 NCAIR Excel Power Tools

• Filter context

• The filters being applied by the pivot table

• Filters can be explicit or implicit

• Can add additional filters only with CALCULATE

Evaluation Contexts

29

• Row context

• The one row being evaluated

• Automatic for calculated columns

• Can be created in other ways as well (SUMX, AVERAGEX, etc.)

Page 30: 2015 NCAIR Excel Power Tools

Filter Context

30

Page 31: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Calculated Fields

– Used to add a calculated element

– Aggregate function that applies to whole table,

column, or range

– Something that needs to be recalculated

– Fields can only be used in the VALUES section

31

Page 32: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Adding a Calculated Field

32

Page 33: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Adding a Calculated Field

33

Page 34: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Calculated Field in Power Pivot

34

Page 35: 2015 NCAIR Excel Power Tools

35

Displaying Data –Power Pivot

DAX ALL, ALLEXCEPT, CALCULATE, DISTINCTCOUNT, DIVIDE, FILTER

Page 36: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• DISTINCTCOUNT

DISTINCTCOUNT( <column> )

– Counts unique values in column

36

Page 37: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• Adding a Calculated Field

37

Page 38: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot: DAX CALCULATE

• CALCULATE

CALCULATE( expression, <filter1>, <filter2>… )

– Supercharged SUMIFS

– Allows filtering (IFs) on any aggregate function

(imagine “MAXIFS”, “MEDIANIFS”, etc.)

– Operators for filters: =, <, >, <=, >=, <>

– Can also use || in filter on same column

38

Page 39: 2015 NCAIR Excel Power Tools

First-time Freshmen Distinct Students:=

CALCULATE(

[Distinct Students],

WorkshopData[Class level]=“Freshman”,

WorkshopData[Is new student this term]=“Yes”

)

39

Displaying Data – Power Pivot: DAX CALCULATE

Page 40: 2015 NCAIR Excel Power Tools

40

Displaying Data – Power Pivot: DAX CALCULATE

Page 41: 2015 NCAIR Excel Power Tools

• ALL

ALL( table_or_column, <column1>, <column2>, …)

– Returns all the rows in a table, or all the values in a column, removing any filters that might have been applied

41

Displaying Data – Power Pivot: DAX ALL

Page 42: 2015 NCAIR Excel Power Tools

All Distinct Enrolled Students:=

CALCULATE(

[Distinct Enrolled Students],

ALL( WorkshopData[Class level] )

)

42

Displaying Data – Power Pivot: DAX ALL

Page 43: 2015 NCAIR Excel Power Tools

43

Displaying Data – Power Pivot: DAX ALL

Page 44: 2015 NCAIR Excel Power Tools

% of All Distinct Enrolled Students:=

DIVIDE([Distinct Enrolled Students],

[All Distinct Enrolled Students] )

44

Displaying Data – Power Pivot: DAX ALL

Page 45: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

• DIVIDE

DIVIDE( <num>, <den>, [<alt>] )

– “Safe” divide

– Can specify alternate result for divide by zero

45

Page 46: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot

46

Page 47: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot: DAX FILTER

• FILTER

FILTER( TableToFilter, FilterExpression )

– Returns a table filtered by FilterExpression

47

Page 48: 2015 NCAIR Excel Power Tools

Above Average GPA Enrolled Undergraduates:=

CALCULATE(

[Distinct Enrolled Students],

FILTER(

WorkshopData,

WorkshopData[Institutional cumulative GPA] > [Average GPA Enrolled Undergraduates]

)

)

48

Displaying Data – Power Pivot: DAX CALCULATE

Page 49: 2015 NCAIR Excel Power Tools

49

Displaying Data – Power Pivot: DAX FILTER

Page 50: 2015 NCAIR Excel Power Tools

Displaying Data – Power Pivot: DAX FILTER

• ALLEXCEPT

ALLEXCEPT( <table>, <column>[, <column>…])

– Similar to ALL function, but excludes the column(s) specified from the ALL

50

Page 51: 2015 NCAIR Excel Power Tools

51

Power Query

Page 52: 2015 NCAIR Excel Power Tools

Power Query

• Retrieve data from a variety of external sources

• Pull in external data from the Internet

• Limit the data you bring into your model (filter on rows and columns)

• Keep you model to a reasonable size (< 1M records)

to prevent processing problems

• Bring in only what you need

52

Page 53: 2015 NCAIR Excel Power Tools

Power Query

• Consolidate multiple

tables into one

53

Page 54: 2015 NCAIR Excel Power Tools

Power Query – Advanced

• In-line data

transformations

54

• Consolidate multiple

tables into one

Page 55: 2015 NCAIR Excel Power Tools

Power Query – Advanced

• All transformation steps

are listed, and reversible

55

• In-line data

transformations

• Consolidate multiple

tables into one

Page 56: 2015 NCAIR Excel Power Tools

Power Query – Advanced

• Access to sources of

data not readily

available to Power Pivot

56

• All transformation steps

are listed, and reversible

• In-line data

transformations

• Consolidate multiple

tables into one

Page 57: 2015 NCAIR Excel Power Tools

Power Query – Advanced

57

• SharePoint Lists

Page 58: 2015 NCAIR Excel Power Tools

Power Query – Advanced

• See all available

lists

• Expand a

particular list for

fields

58

Page 59: 2015 NCAIR Excel Power Tools

Power Query – Advanced

59

• Even get Active Directory names

Page 60: 2015 NCAIR Excel Power Tools

Power Query – Advanced

• Connect to online faculty database

– Import active users from Digital Measures

– Merge with local data

– Export updated data to Digital Measures

60

Page 61: 2015 NCAIR Excel Power Tools

Power Query – Advanced

61

Page 62: 2015 NCAIR Excel Power Tools

Power Query – Advanced

62

• Microsoft SQL Server and Access

• An many other databases (e.g., Oracle, MySQL,

PostgreSQL)

Page 63: 2015 NCAIR Excel Power Tools

Power Query – Advanced

63

Page 64: 2015 NCAIR Excel Power Tools

Power Query – Advanced

64

Page 65: 2015 NCAIR Excel Power Tools

Power Query – Advanced

65

Page 66: 2015 NCAIR Excel Power Tools

66

Displaying Data –Power View

Page 67: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

• Power View

– Dashboard builder

– Allows synchronized filtering

– Bring together tables, graphs, maps

67

Page 68: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

68

Page 69: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

69

Page 70: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

70

Page 71: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

71

Page 72: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

72

Page 73: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

73

Page 74: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

74

Page 75: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

75

Page 76: 2015 NCAIR Excel Power Tools

Displaying Data – Power View

76

Page 77: 2015 NCAIR Excel Power Tools

77

Displaying Data –Power Map

Page 78: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

• Power Map

– Automated way to map geographic data

– Doesn’t require geo-location information like longitude and latitude (just country, state, or county names)

– Can add elements to look at aggregate function on variables across physical space

78

Page 79: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

79

Page 80: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

80

Page 81: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

81

Page 82: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

82

Page 83: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

83

Page 84: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

84

Page 85: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

85

Page 86: 2015 NCAIR Excel Power Tools

Displaying Data – Power Map

86

Page 87: 2015 NCAIR Excel Power Tools

Resources

87

• Rob Collie (http://powerpivotpro)

– DAX Formulas for PowerPivot, 2013

• Bill Jelen (http://mrexcel.com)

– PowerPivot for the Data Analyst: Microsoft Excel 2010, 2010

• Alberto Ferrari and Marco Russo

– Microsoft Excel 2013: Building Data Models with PowerPivot

• Chris Webb (http://cwebbbi.wordpress.com)

• Kasper de Jonge (http://www.powerpivotblog.nl)

• Purna Duggirala (http://www.chandoo.org/)

Page 88: 2015 NCAIR Excel Power Tools

Contact Information

Alison Joseph, Business and Technology Applications Analyst

[email protected]

Office of Institutional Planning and Effectiveness

oipe.wcu.edu, (828) 227-7239

88

David Onder, Director of Assessment

[email protected]

With the help of Tim Metz, Elizabeth Snyder, Billy Hutchings, and Henson Sturgill