0% found this document useful (0 votes)
18 views

Module 1 - Data Analysis in Excel

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Module 1 - Data Analysis in Excel

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Module 1: Data Analysis in Excel 18.10.

21, 17:22

Module 1: Data Analysis in Excel

Contents:

Module overview

Lesson 1: T Classic Data Analysis with Excel Th


his is
do do
cu cu
Lesson 2: me PivotTables
Excel me
nt nt
No ca belo No c be
Lesson 3: us
unLimitations
e ngof Classic Data Analysis
s un ause longs
au au
tho vr@g to R v
tho r@g to R
riz m ist riz i
a
eda Classic e C Dashboard ed mail. ste C
Lab: Building co il.com Excel ha co c ha
pie us pie om us
sa he sa he
Module review and llo takeaways v. llo v.
we we
d! d!

Module overview

In the modern business environment, data exists in many formats and is stored in many different systems. This
Th Th
is
presents the Microsoft® Excel® user with two principal challenges: how tois import data from those formats and
do do
cu cu
systems, and how tomanalyze
en the data once it is in a spreadsheet—often in largemquantities. en In this module, you will
tb tb
No these
learn more about elo
ca challenges and focus on Microsoft® SQL Noas a data
Server® ca store elo and source for Excel. You
us u
un ev ngs un
au sevr@ and
ng
s t PivotCharts.
will also learn howautothbuild r dashboards
to of interactive data displays by using PivotTables oR
ori @gm Ris tho
ri g m i st
ze a te ze a
dc i l. Ch dc i l.c e Ch
o p co m a us o pie o m au
Objectives ies he sa sh
all v. l ev.
ow low
ed ed
At the end of this module, you will be able ! to: !

• Describe classic data analysis with Excel.

• Describe Excel PivotTables.

• Describe the limitations of classic data analysis with Excel.


Th Th
is is
do do
cu cu
me me
nt nt
No ca b elo No ca belo
Lesson 1: Classic Data Analysis with Excel
un
au
us
e
tho vr@g to R
n gs u na u s
uth evr@ s to
ng
riz i ori gm Ris
ed mail. ste C ze a te
co c ha d co il.com Cha
pie om u s pie us
If you have used any of Excel’s formulas sa to perform
he calculations, you have already done datas analysis. However, he
llo v. all v.
Excel includes advanced features that weenable you to import large amounts of data from a wide variety o we of sources,
d! d!
analyze that data by using dynamic and versatile tools, and then display that data in useful and easily-understood
forms. In this lesson, you will see an overview of Excel’s advanced data analysis tools and learn about Microsoft SQL
Server, which is often used as a data source.

Lesson objectives
Ththis lesson, you will be able to:
At the end of Th
is is
do do
cu cu
me me
nt nt
• Understand No howcdata bcan
e be imported, analyzed, and displayed in Excel.
N b
l
u n a u se o n g s ou c au elon
au n au s e gs
tho vr@g to R tho vr@g to R
• Describe how Excel rican
ze work
m withi s data imported from SQL Server. rize m is
d c ail.c te Ch d c ail.c te Ch
op om a us o pie o m au
• Choose the best edition of SQL ies Server 2016 he for your organization’s needs. sa sh
all v. llo ev.
ow we
ed d
• Describe the server components and !management tools that are available with Microsoft SQL Server. !

• Connect to SQL Server from an Excel spreadsheet.

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 1 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

Introducing Excel Data Analysis

Th Th
is is
do do
cu cu
me me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au v
tho r@g to R tho r@g to R
riz i riz i
ed mail. ste C ed mail. ste C
co c ha co c ha
pie om us pie om us
sa he sa he
llo v. llo v.
we we
d! d!

Th Th
is is
do do
cu cu
me me
nt nt
No ca b e No ca belo
Microsoft Excel us long desktop application that is very widely used
uisn a spreadsheet u to
na record
u s and
ng analyze tabular data.
ev uth evr@ can
au
Most office workers tare r@ s with
ho familiar to Excel—or some other spreadsheet application—and st
o use
riz g m R i s o r g m Ris simple formulas to
e a te i ze a te
calculate totals, averages,dtax i l.c
co amounts, C profit margins, and other values. This versatility d and i l
widespread
.c Ch familiarity
ha co
pie om us pie om au
sh
makes Excel an excellent tool fors more all complex h e data analysis. For this purpose, Excel includess a more advanced
ev.
ow v. l low
capabilities such as PivotTables, PivotCharts, ed and the ability to import data from many sources. Byedobtaining,
! !
analyzing, and displaying data in smart ways, you can use Excel to assess and dissect the health and functions of
your business.

Importing Data

Small amounts of data can be manually input into Excel cells but manual data entry quickly becomes unwieldy when
Th with large quantities of information or information that regularly
you must deal Th
is
do is changes. In modern organizations,
cash registers, Customer Relationship Management (CRM) systems, e-commerce do
cu cu websites, personnel management
me m
applications, mobile apps,nt and many other tools can all generate data in different eformats.nt Importing this data into
No ca belo No ca belo
Excel for data analysis
un usis, therefore,
n gs a critical challenge. u na u s n g
au e uth evr@ s to
tho vr@g to R ori gm Ris
riz m i s t ze
ed ail
.c e Ch
co diverse d c ail.c te Ch
Data can be generated in many pie om forms. au Among the more common forms are:
s
op o
ies m au
sh
sa he all ev.
llo v. o
we we
d !
• Desktop Databases. Relational databases store information in tables that impose a strict schema on data rows. d !
In addition, relationships between tables can be defined. For example, a table of sales can be related to a
customer table and a product table. Desktop applications, such as Microsoft Access®, store relational databases
in files on a single user’s computer or in file shares. This approach can be simple and productive for individuals
and small teams.

• Database ThManagement Systems. As databases grow and are usedTby his larger teams, server-based database
is
managementdsystems
oc
um become necessary. For example, simultaneous do
modification
cu of data by multiple users
en me
requires advanced functionality
tb to ensure data integrity. Microsoft SQL Server is one n t b such database management
No c e No c e
system. u n a u se l o n g s un ause longs
au v r @ to a u v r to
tho gm Ris tho @
riz riz gm Ris
e a te e a te
• Semi-Structured DatadSources. co il.comNot Chall information storage systems impose a strict
au
il.
d c schema C
op comandhrelationship
au
on
pie sh i e scommon
the data they store. In a document sa managementev. system, for example, stored documents s
might
all share h ev.
llo ow
attributes, such as document title wand ed author fields, but have other unique attributes. Microsoft
!
eSharePoint®
d !
server lists and document libraries are one example of such an information store. Some semi-structured data
storage systems are known as “NoSQL” stores.

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 2 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

• Text Files. Some systems may generate data in the form of text files. Common formats include:

o Flat Files. These are text files with no formal structure.

o Comma Separated Files. These text files have a tabular structure in which each value is separated from the
next by a comma, and each line is separated from the next by a carriage return. These files often have a .CSV
filename extension.

o XML Files. These text files include tags in triangular brackets that impose structure and attributes on the data.
Th Th
is is
do do
cu cu
me me
nt nt
N b
ca see howe N be
ca reports.
In this course,oyouun will us long to import data from text files, databases, and o u Excel
na u se ongs
l
au ev s uth v
tho r@g to R ori
r@ to
gm Ris
riz ma ist ze a te
e d i e d i
Analyzing Data co l.com Cha co l.com Cha
pie us pie us
s he sa he
Data analysis begins with raw dataallfrom ow a source, v. such as a database or text file, and applies llo
operations
w
v.
that
ed ed
highlight trends and variability. For example, ! if you have a table of 1,000 customers, each listed with !the amount they
spent with your company in one year, it is difficult to draw conclusions by examining the raw data. By calculating an
average spend, you can immediately determine which customers spend a lot and which ones spend little. If you
know the country each customer lives in, you can identify where customers are prepared to spend a lot on your
products.

Th raw data you have, the more analysis you can perform and
The richer the Ththe more likely you are to spot hidden
is is
do do can help to optimize your company’s
trends. Frequently, cudata analysis uncovers unexpected facts about the data and cu
me me
nt
operations, such as advertising campaigns. nt
No c b e No c be
u n a u se l o n g s un ause longs
au v r@ to a uth vr@ to
th
Trends are also easieroto g
riz identify if Ryou
i can rapidly alter your data analysis to examine gm Risfrom a different point
ori situations
ed mail. ste C ze a i te
of view. To do this in Excel, cyou op canco use the ha PivotTable tool. With a PivotTable, you cand quickly
co l.cochange Ch
authe rows,
ies m us
h
pie
s
m sh
columns, or filters in a table to show e
all data in a different
v. way. When you do this, the underlying a
data
l does notev.change.
ow low
ed ed
! !
Summarizing and Displaying Data

Even after having applied data analysis, you must frequently display large amounts of data in a way that should make
trends immediately obvious. A small number of key indicators may helpfully be displayed as numbers but charts are
essential for more complex information, such as how an indicator changes over time. Excel includes a wide range of
chart types, which you can apply to any data source.
Th Th
is is
do do
cu cu
PivotCharts are Excel mecharts that enable you to quickly alter the data axes or filters me used to display data. For
nt nt
example, in aNPivotChart b elo No examine ca bethe
o u cau showing n
sales data, you could use a filter to rapidly
u u lon sales from a single year.
na s g na s g
uth evr@ s to uth evr@ s to
ori gm Ris ori gm Ris
An Excel worksheet thatzedisplays
d c ail.ca set te of business-critical charts and summary datazeisd often a called te a dashboard. A
op o Ch
au co il.com Cha
dashboard should present a business ies m decision sh maker with a high level summary of currentpiinformation
es uthat
sh highlights
all ev. all ev.
problems and makes it easy to understand o we performance. If required, you can use PivotCharts to make o we dashboards
d! d!
interactive and enable users to drill down into more detail.

Using Excel with Microsoft SQL Server

Th Th
is is
do do
cu cu
me me
nt nt
No c be No ca belo
u n a u se l o n g s un us
e ng
s
au au
tho vr@g to R tho vr@g to R
riz i riz i st
ed mail. ste C ed m a e
co co
m ha co il.com Cha
pie us pie us
sa he sa he
llo v. llo v.
we we
d! d!

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 3 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

Th Th
is is
do do
cu cu
me me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au v
tho r@g to R tho r@g to R
riz i riz i
ed mail. ste C ed mail. ste C
co c ha co c ha
pie om us pie om us
sa he sa he
llo v. llo v.
we we
d! d!

Th Th
is is
d d
Excel can importodata
cu from a wide variety of databases. Microsoft’s premiumodatabase
me
cu
me management system is SQL
Server. ManyNorganizationsn t n
use SQL Server to store business critical information andbsupport key systems such as
t
ca belo No ca e
o
na usesystems,
websites, stock ucontrol ng product support help desks, and so on. In uthis us loyou
na course, ng will often connect to
uth v r@ s to uth evr@ s to
o
SQL Server to import data. g
riz Similar R steps
i o
are used to connect to other database servers,riz g
such asRi Oracle and MySQL.
ed mail. ste C ed mail. ste C
co co ha co c ha
pie m us pie om us
sa he sa he
Get and Transform llo v. l low v.
we e
d! d!
Get and Transform is a set of advanced features that you use to import, analyze, and display data from external
sources, including databases. In previous versions of Excel, similar tools were known as Power Query.

Connecting to SQL Server

To connect to SQL Server, follow these steps:


Th Th
is is
do do
1. c um QUERY ribbon tab, click From Database, and then clickcuFrom
On the POWER
en me SQL Server Database.
tb nt
No c elo No ca belo
2. un auSQL
In the Microsoft Database
n dialog, in the Server text box, type the
u name u s of thengSQL Server where you
au sevr@ gs to na
uth evr@ s to
want to connect. tho If yougdo not R know the correct server, contact your database ori gm Ris
administrator.
riz i
ed mail. ste C ze a te
co c ha d co il.com Cha
pie om us pie u
3. In the Database text box, type s a the name heof the database where you want to connect. Ifs ayou do notshspecify ev. a
llo v. l l o
database, Excel will connect towthe ed default database on the server you specified. we
d!
!
4. Optionally, you can specify a SQL Statement to query the database. Do this if you are only interested in a
specific set of data and know how to formulate a Transact-SQL query.

5. Click OK.

6. To useTyour Windows® user account to authenticate with the SQLTServer, select Windows authentication.
his his
do your database administrator might supply the credentials
Alternatively, dof
oc an account on the SQL Server. In this
cu um
me en
case, select Database,
nt and then specify those credentials. tb
No c b e No c e
u n a u se l o n g s un ause longs
7. au v r toR a u v r to
Click Connect.tho @
g tho @
g Ri
riz i riz
ed mail. ste C ed mail. ste C
co c ha co c ha
pie om us pie om us
sa he sa he
llo v. l l o v.
we we
Note: If you clear the Encrypt connection d ! check box in the data connection wizard, data will d ! be transferred
from SQL Server to Excel in plain text. A malicious user might be able to intercept and examine
unencrypted data. Unless you are sure that no data in the database is sensitive or confidential, always
encrypt the connection.

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 4 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

For more information about connecting to a SQL Server database, see:

Connect a SQL Server database to your workbook (Power Query)

https://aka.ms/M2r1jc

SQL Server Instances

In many cases,
Th you only need a server name to connect to a database. T Ifhthere is more than one database on a SQL
is is
Server, and you ddo
oc not want to connect to the default database, you must also
um
do specify a database name.
cu
en me
tb nt
No e N b
ca
us orlovirtual
un server n o u cau elon
However, a single au ev g s server can also run multiple instances of SQL
na se Angsinstance is a copy of the
Server.
t o r@g to R uth v r@ to
sqlservr.exe process hthatriz hosts systemi databases and user databases. If you haveormultiple ize gmainstances
Ris of SQL Server
ed mail. ste C d i l .
te
C
on your server, you might need c c
op to specify h athe c c
us instance name, in addition to the server name, op when o youauconnect. In
o h
ies m h ies m sh
some cases, you might also need llo specify a eport
ato v. number. all
ow
ev.
we e
d! d!
Use the following format:

ServerName\InstanceName,PortNumber

Demonstration: Connecting Excel to SQL Server


Th Th
is is
do
In this demonstration, do
cu you will see how to: cu
me me
nt nt
No ca belo No c be
u
• Connect Excelnato SQL u s Serverng to import data into a table. un ause longs
uth evr@ s to au
tho vr@g to R
ori gm Ris riz i
ze
d c ail.c te Ch ed mail. ste C
op o au co co ha
ies m sh pie
sa
m us
he
a ev. v.
Demonstration steps l low llo
we
ed d!
!
Connect to SQL Server Express and Import Data

1. Ensure that the MT17B-WS2016-NAT, 20779B-MIA-DC, 20779B-MIA-SQL, and 20779B-MIA-CLI virtual


machines are all running, and then log on to 20779B-MIA-CLI as Student with the password Pa55w.rd.

2. Start Excel.
Th Th
is is
do do
3. c u cu
On the Welcome me screen, click Blank workbook. me
nt nt
No ca b elo No ca belo
4. u
On the ribbon, u
na click n
s the gData tab, click Get External Data, click From Other u na u ng and then click From
sSources,
uth evr@ s to uth evr@ s to
o riz g R i ori gm Ris
SQL Server. ed mail. ste C ze a te
co c ha d co il.com Cha
pie om us pie us
5. In the Data Connection wizard, sa he sa he
llo in the Server v. name text box, type MIA-SQL. l l o v.
we we
d! d!
6. Click Use the following User Name and Password, in the User Name box, type Student, and in the
Password box, type Pa55w.rd, and then click Next.

7. In the list of databases, select AdventureWorksLT2012.

8. In the list of tables, click Product, and then click Next.


Th Th
is is
9. Click Finish.do do
cu cu
me me
nt nt
No
10. In the Import cData b e N c be
dialog,
u n a u se o n g s l click OK. Excel imports and displays product
ou dataau from lonthe Adventure Works
a n a s e gs
database. u tho v r @ to u tho v r@ to
riz gm Ris rize g m Ris
ed ail te d a i te
co .c C ha co l .c Ch
pie om us pie om au
sh
sa he s a ev.
llo v. llo
we we
Limitations of Excel Ranges d! and Tables d!

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 5 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

Th Th
is is
do do
cu cu
me me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au v
tho r@g to R tho r@g to R
riz i riz i
ed mail. ste C ed mail. ste C
co c ha co c ha
pie om us pie om us
sa he sa he
llo v. llo v.
we we
d! d!

Th Th
is is
do d
cu
In Excel, data is organized
me into ranges of cells. You can add a calculation to aoccell
um that uses values from one or more
n e
different cells.
NoFor example,
t in cell C1, you could calculate the sum of cells A1 and nB1. t
ca belo No ca belo
un us n gs u na u s ng
au e uth evr@ s to
tho vr@g to R
For some more sophisticatedriz
ed m ail iste C you can convert a range of cells into a table.
functionality, o riz g ma Rinclude
ed Tables
i st
e the following
features: c op
.co
m ha co il.com Cha
ies us pie us
all he sa he
ow v. llo v.
ed w ed
!
• Header Row. You can create a header row at the top of the table. The header row stores a name for each !
column.

• Sortable Columns. The header row cell for each column enables you to sort the rows based on the values in the
column. You can sort in ascending or descending order.

• Column TFilters. The header row cell for each column also enables you Th to define filters for rows. A filter defines a
his is
d
Boolean test that
oc returns true or false. Rows with a column value that does do not return true will not be displayed.
um cu
e me
Note that these rows nt are hidden by the filter, not removed from the spreadsheet. nt
No ca b elo No ca belo
un us n gs u n u se ng
e
au
tho vr@gIn an
• Structured References. to Excel range, you must refer to a different cellauby r@ sand
thoitsvletter to number. An Excel
riz ma R ist riz gm Ris
table supports structured ed references,
co il.com Cha
e which means you can refer to a cell in another e a
column
dc il. byteusing
Ch the name of
p u op com au
that column as it appears in ethe i s a header row. s he i es sh
llo v. all ev.
we o we
d! d !
• Calculated Columns. You can add a column to a table that calculates a value based on the corresponding values
in one or more other columns. For example, if you had a “Product Cost” column and a “Product Price” column,
you could add a calculated column for “Product Profit”.

• Total Row. You can add a final row to the table that displays aggregate values, such as the total of the values in
each column or the average of those values.
Th Th
is is
do do
cu cu
me me
You can use N tables to nt
display and analyze two-dimensional data—that is, data in nt and columns. However,
rows
b e N b
ou c au l o n ou c au elon
because the datanain thesetable g
iss fixed, it is difficult to experiment with different n views
au s eof thegsdata to highlight hidden
uth vr@ to tho vr@g to R
trends. ori gm Ris rize m is
ze
d c ail.c te Ch d c ail.c te Ch
op om a us o pie o m au
ies he sa sh
a v ev.
If you have rich data in a table and lyou .
low want to examine it from multiple points of view quickly and llo easily, consider
we
ed d
creating a PivotTable. You will learn about ! PivotTables and PivotCharts in the next lesson. !

Lesson 2: Excel PivotTables

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 6 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

Excel is a good tool to store and present two-dimensional or tabular data. It has many formulas that you can use to
begin data analysis. You can also use Excel tables when you want extra features, such as data filters or sorting
options. However, cell ranges and tables store data statically and do not permit the user to examine it from different
points of view. For example, in a table of purchases listed by date, it might not be obvious which customer spent
most during a year, or the countries where high-spending customers live. By using PivotTables and PivotCharts, you
can rapidly shift to a different data analysis and diagnose hidden trends in your data. In this lesson, you will see how
PivotTables and PivotCharts enable dynamic and interactive data analysis.

Th Th
Lesson objectives
is
d do
is
oc cu
um me
e
At the end of this lesson, nt you will be able to: nt
No b e N b
c
u n a u se l o n g s o u cau elon
na se g
au v
tho r@g to R uth v r@ s to
• Describe the difficulties riz that o
ofteni arise when using Excel ranges and tables to present
riz g and Ranalyze
i large
ed mail. ste C ed mail. ste C
quantities of data. c op c om h a c o co ha
ies us p ies m us
all he all he
ow v. ow v.
• Describe the functionality and advantages ed of PivotTables. ed
! !

• Describe how a PivotChart can display and summarize data in a dynamic and interactive way.

Excel PivotTables
Th Th
is is
do do
cu cu
me me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au
tho r@g to R tho vr@g to R
riz i riz i
ed mail. ste C ed mail. ste C
co co ha co co ha
pie m us pie m us
sa he sa he
llo v. llo v.
we we
d! d!

Th Th
is is
do do
cu cu
me me
nt nt
No c be No ca belo
u n a u se l o n g s un us
e ng
s
au au
tho vr@g to R tho vr@g to R
riz i riz i st
ed mail. ste C ed m a e
co co
m ha co il.com Cha
pie us pie us
sa he sa he
llo v. llo v.
we we
d! d!

A PivotTable is a dynamic presentation of two-dimensional data. Unlike a table, a PivotTable does not store its
underlying values. Instead, you can use a PivotTable to display data from a range of cells, a table, or other sources.

To create a PivotTable, you must first choose a data source. You can choose the following types of data source:
Th Th
is is
do do
• Ranges. You can cu base a PivotTable on a range of cells in the current workbook. cu
me me Note that, if you added new data
nt nt
to the range,
No you c mightb eneed to modify the PivotTables source manually.
No c be
u n a u se l o n g s un ause longs
au au
• Tables. You can base tho vr@g to R tho vr@g to R
riz a PivotTable i on a table in the current workbook. Note that rinew
ze rows
m inisthe source table will
ed mail. ste C d c ail.c te Ch
automatically be added to co the cPivotTable.
o h
pie m a us o pie om au
sh
sa he sa ev.
llo v. llo
• External Data Sources. If you have we added an w
external data source to a workbook, you can use ddata from it as
e
d! !
the basis of a PivotTable. For example, you could create a PivotTable to analyze data from a database.

• Data Models. A workbook can include a data model and you can use this as a PivotTable’s data source. For more

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 7 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

information about data models, see Module 2 of this course.

Having chosen the data to analyze, you must decide how to display the data. You can choose:

• Columns. Depending on the data source, multiple dimensions might be available to use as columns. For
example, if the source data has “Year” values, and you select this for the PivotTable columns, you will see a
column for each year.
Th Th
is is
do do
• Rows. You mustum c also choose a value in the data source to create rows from.cu For example, if the source data has
en me
t nt
“Category” Novalues, and b you select this for the PivotTable rows, you will be each category.
c e
u n a u se l o n g s
N o u crow
see a au for l
au na se ongs
v
tho r@g to R uth v r@ to
• Values. These determine the values
i that are displayed in each column of the PivotTable. ori gm Values R
riz
ed mail. ste C ze
d ail iste are Ch
often the sum
c c h c .c
of all data points for a given op rowom and column,
a us but values can also be averages or other o p o
aggregate m values.
a us For the
ies he ies he
columns and rows above, a single all cell might vdisplay
. the sum of all sales in 2015 for the a
category
l l “Tablets”. v.
ow ow
ed ed
! !
• Report Filters. You can use the Filters list to focus your PivotTable on a specific set of data. For example, you
could use a filter to ensure that the PivotTable displays sales data for a single year.

• Slicers. A slicer also filters the data in the PivotTable. A slicer has a separate box that enables you to click a
value. Items that match the value are displayed in the table while other data is temporarily removed. The graphical
nature of a slicer makes it easy to understand what data is currently displayed in the PivotTable.
Th Th
is is
do do
cu cu
me me
nt nt
No b be
ca lon change in a few clicks without altering theNunderlying
ecan o u cau data l
All of the above uproperties
na u s e gs na se ongsource. st
This dynamic
u t v r @ to u tho v r@ oR
ability to change the hpoint
ori ofgview is
R what makes PivotTables so useful for data analysis. g
m is riz i
ze
d c ail.c te Ch ed mail. ste C
op om a co co ha
ies us pie m us
For more information about creating he see:
all a PivotTable, sa he
ow v. l low v.
ed ed
! !
Create a PivotTable to analyze worksheet data

https://aka.ms/Ibvjix

Demonstration: Creating a Simple PivotTable


Th Th
is is
do
In this demonstration, do
cu you will see how to: cu
me me
nt nt
No ca b elo No ca belo
• Create a PivotTable
un usto summarize
n gs information imported from a database. u na u s ng
au e uth evr@ s to
tho vr@g to R ori gm Ris
riz i
ed mail. ste C ze a te
co c ha d co il.com Cha
pie om us pie us
sa he sa he
Demonstration steps llo
we
v. l l o we
v.
d! d!
Create a PivotTable That Analyses Product Data

1. Ensure that the MT17B-WS2016-NAT, 20779B-MIA-DC, 20779B-MIA-SQL, and 20779B-MIA-CLI virtual


machines are all running, and then log on to 20779B-MIA-CLI as Student with the password Pa55w.rd.

2. Open File Explorer and browse to D:\Demofiles\Mod01.


Th Th
is is
do do
3. Double-clickcProductData.xslx.
um cu
me
en nt
tb
No ca elo No ca belo
4. u
On the ribbon, u
na click n
s the gInsert tab, and then click PivotTable. u na u s ng
uth evr@ s to uth evr@ s to
ori gm R is ori gm Ris
ze il.c teinC the Table/Range text box, type Products. zed te
5. In the Create PivotTable d c adialog, ha
a
co il.com Cha
op o
ies m us
he
pie
sa
us
he
all v. l l v.
6. Ensure that New Worksheet iswselected, o and then click OK. o we
ed d
! !
7. Select a cell in the new PivotTable.

8. On the ribbon, on the Analyze tab, click PivotTable; in the PivotTable Name text box, type ProductAnalysis.

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 8 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

9. In the PivotTable Fields task pane, in the list of fields, right-click ProductCategory, and then click Add to row
labels.

10. In the list of fields, right-click ListPrice, and then click Add to Values.

11. In the list of fields, right-click Color, and then click Add to Column Labels.

12. Close Excel, saving any changes.


Th Th
is is
do do
cu cu
me me
Excel PivotCharts
N c
nt
be No c
nt
be
ou au lon un ause longs
na s g
uth evr@ s to au v
tho r@g to R
ori gm Ris riz i
ze
d c ail.c te Ch ed mail. ste C
o co c ha
op
ies m au
sh pie om us
all ev. sa he
ow llo v.
ed we
! d!

Th Th
is is
do do
cu cu
me me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au
tho r@g to R tho vr@g to R
riz i riz i
ed mail. ste C ed mail. ste C
co co ha co co ha
pie m us pie m us
sa he sa he
llo v. llo v.
we we
d! d!

PivotCharts differ from standard Excel charts in the same way that PivotTables differ from standard tables. A
Th Th
PivotChart gives
is you dynamic controls that you can use to examine the data
do is from different points of view.
do
cu cu
me me
nt nt
The range of NPivotChart b elo is broad and similar to standard chart types. ca byou
No However,
o u cau types n u u
elo cannot create scatter
ng
s s
graph, bubble, ornastock vr@ gPivotCharts.
uth echart st
oR
na
uth evr@ s to
ori gm is ori gm Ris
ze ze
d c ail.c te Ch d c ail.c te Ch
o om au op om au
PivotCharts cannot be based pon iesstandard data
sh ranges or tables. If you select such data and
ev.
iescreate a PivotChart,
sh
all a l ev.
Excel creates the required PivotTablewfor o l o
ed you. You can, however, base a PivotChart on a Data Model we or an external
d!
!
data source, such as a database, without a PivotTable. Such a PivotTable is referred to as “stand-alone” or
“decoupled”.

Dynamic controls available in PivotCharts include:

• Axes. In bar graphs, for example, you can alter the values used to plot vertical and horizontal values.
Th Th
is is
do do
• Filters. You cancuchoose
me to filter data based on, for example, a year or a customer. cu
me
nt nt
No ca b elo No ca belo
u
• Sorting Controls. na Youu n
s cangchoose the order that values appear in on axes. u na u s ng
uth evr@ s to uth evr@ s to
ori gm R is ori gm Ris
ze ze
d c ail.c tethese
• Slicers. Like slicers in PivotTables, C ha are a type of filter with a separate user interfaced a
co ilthat
.c you
te
Chcan use to drill
op o pie om au
ies m us
h s sh
down into data. all ev. a llo ev.
ow we
ed d
! !

Lesson 3: Limitations of Classic Data Analysis

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…b-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 9 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

Lesson objectives
At the end of this lesson, you will be able to:

• Describe how the need to combine data into a single range or table imposes difficulties on data analysis.

• Describe limits often encountered when importing data into Excel and manipulating data to prepare for analysis.

Th Th
is is
do do
Combining Data
cu
me
cu
me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au v
tho r@g to R tho r@g to R
riz i riz i
ed mail. ste C ed mail. ste C
co c ha co c ha
pie om us pie om us
sa he sa he
llo v. llo v.
we we
d! d!

Th Th
is is
do do
cu cu
me me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au
tho r@g to R tho vr@g to R
riz i riz i
ed mail. ste C ed mail. ste C
co co ha co co ha
pie m us pie m us
sa he sa he
llo v. llo v.
we we
d! d!

PivotTables and PivotCharts require that the data is in a single range or a single table. This can cause difficulties
when you want to perform analyses on data from several different places in a workbook.
Th Th
is is
do do
cu cu
Using VLOOKUP() me me
nt nt
No ca b elo No ca belo
You can use theuVLOOKUP()
na u s n
function
g to combine data from two different u
rangesna u
or stablesnginto a single range or table.
uth evr@ s to uth evr@ s to
A PivotTable can use the o riz resulting
g R
combined
i data because it is in a contiguous range.ori gm Ris
ed mail. ste C ze a te
co c ha d co il.com Cha
pie om us pie us
sa he sa he
The VLOOKUP() syntax is as follows: llo v. l l o v.
we we
d! d!
=VLOOKUP(lookup value, source range, column number, approximate match)

Where:

• lookup value. This is the value you want to search for in the specified range.
Th Th
is is
do do
• source range. cThis
um is the range of rows and columns through which you want cu VLOOKUP() to search for the
en me
lookup value. tb nt
No ca elo No ca belo
un us n g u na u s ng
ev uth evr@ s to
• column number.
au
thThis r@ s to
ori is the
gm column
R is that contains the values you want to return.
ori gm Ris
ze ze
d c ail.c te Ch d c ail.c te Ch
o om au op o au
• approximate match. This pisiea s aBoolean value sh that indicates whether you want the VLOOKUP() ies m to return sh values
llo e v. a llo ev
when there is only an approximate wmatch
ed to the lookup value. If this argument is false, an exact wematch is .required.
! d !

If you had a table of product details, and a table of product purchases, if both tables included the product ID, you

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 10 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

could use a VLOOKUP() to add a column from product details to the product purchases by using the product ID as
the lookup value. You would need to add this VLOOKUP() to every row of the product purchases table.

Performance Issues

A single VLOOKUP() performs well. However, to add a single row from another table, you need one VLOOKUP() for
every row of the new table. With thousands of rows, this might cause a considerable delay in calculating values. You
might also want to add more than one column, or have many large tables to combine into one before you create a
PivotTable. T Th
his is
do do
cu cu
me mecombined data can multiply very
Clearly, the number of VLOOKUP()
nt functions in a worksheet with large amounts of nt
N b e N b
quickly. This often ca
o u results
u inlopoorly
n performing workbooks. o u cau elon
na s e g s na se gs
uth v r to uth v r to
ori @gm Ris ori @gm Ris
ze ze
d c ail.c te Ch d c ail.c te Ch
Obtaining and Processing op
ies m
o Dataau op
ies m
o au
sh sh
all ev. a l ev.
ow l ow
ed ed
! !

Th Th
is is
do do
cu cu
me me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au
tho r@g to R tho vr@g to R
riz i riz i
ed mail. ste C ed mail. ste C
co co ha co co ha
pie m us pie m us
sa he sa he
llo v. llo v.
we we
d! d!

Th Th
is is
do do
cu cu
me me
nt nt
In addition toNthe need to bcombine data into a single range for use in PivotTables,
No be other limitations often
ca several
o u cau elon l
impinge on Excel’s se to analyze
na ability g s data by using traditional methods.
u n a
u se ongs
uth vr@ to uth vr@ to
ori gm Ris ori gm Ris
ze a il. te z e a il. te
dc Ch dc Ch
Scalability o p co m au op com au
ies sh ies sh
all ev. a llo ev.
ow we
Excel worksheets have a limit of 1 million ed rows. This is an enormous number if you enter data manually d! but you might
!
easily exceed it if you import rows from a medium or large database. In business databases, a table with more than 1
million rows is not unusual.

Even within the 1 million row limit, the use of VLOOKUP() functions to combine data can cause long delays. Half a
million rows, for example, with three columns imported from another table, requires 1.5 million VLOOKUP() functions.
Th Th
is is
Data Sources doc cu
do
um me
en nt
Although Excel can importt b data from a wide variety of sources and not only from databases, there are popular
No ca elo No ca belo
u na useu n u
seas thegsbasis of a table in Excel. For example, the following
n u s ng
sources you cannot uth vr@ au e
sources s are growing in popularity:
ori
to
gm Ris tho vr@g to R
ze rize m is
d c ail.c te Ch d c ail.c te Ch
o o a
m andusother platforms become more important to marketing
pie Twitter, o pie o m andausales,
• Social Media. As Facebook, sa he sh many
v sa ev
analysts would benefit from examining l l o . l l o in .a
we social media data, such as the performance of advertisements, we
d! d!
PivotTable or PivotChart.

• Business Systems. Customer Relationship Management (CRM) systems, document management systems, and
other business-critical systems might not make data available through ODBC or OLEDB. Other popular formats

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 11 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

include JavaScript Object Notation (JSON) and OData. This data might be available through a web service on Port
80 or some other protocol.

Processing Data

Another barrier to data analysis that many users have encountered is the limited capability that Excel includes to
process data before analysis. For example, each row in a SalesItems table might represent the quantity of purchases
for one product.
Th However, to make a purchase on a website, a customerThusually fills a shopping cart with multiple
is
do sales from the point of view of purchases, rather thanis products,
products. To analyze do might be difficult.
cu cu
me me
nt nt
No c be No ca belo
un austo
Two possible solutions lon problems include:
these u u ng
e g na s
au
tho vr@g to R
s uth evr@ s to
riz i o riz g Ri
ed mail. ste C ed mail. ste C
• Macros. Advanced Excelousers c c h c c ha
pie ocan m use auVBA macros to perform complex repetitive actions
sh
op
ies m
oon data. us
sa e all he
llo v. ow v.
• Transact-SQL Queries. Users witheknowledge w of the Transact-SQL query language can create equeries that join
d! d!
multiple related tables, perform calculations, and take other actions on data as Excel retrieves it from the
database.

Both these approaches require significant user knowledge and the ability to write code.
Th Th
is is
do do
Lab: Buildingmean Classic Excel Dashboard
cu
me
cu
tb nt
No c e No c be
u n a u se l o n g s un ause longs
au v a uth vr@
Scenario tho r@g to R ori gm Ris
to
riz i
ed mail. ste C ze
dc a i l.c e Ch
t
co c ha
You have been given a spreadsheet pie omcontaining us data exported from a sales database. Theopdatai e
om
is in itsaraw
us form as it
sa he sa he
l
appears in the tables of the originallodatabase—neither v. modification nor summarization has been l lowapplied. You v. have
we e
d! d!
been asked to create a dashboard from the data that can be used to analyze sales trends.

Objectives
At the end of this lab, you will be able to:

Th
• Use VLOOKUP() Th tables, which can be used by a PivotTable
functions to create a single table of data from multiple
is is
do do
for analysis. c um cu
en me
tb nt
No elo No b
• Create and configure
un
c a us PivotTables.
n u
c au elon
ev gs na se g
au
tho r@g to R uth vr@ s to
riz m i s ori gm Ris
te slicers. ze
• Create and configure PivotCharts
ed a
co il.com Cha
and d c ail.c te Ch
op o au
pie
sa
us
he ies m sh
llo v. all ev.
we o we
d! d!
Lab setup

Estimated Time: 40 minutes

Virtual machine: 20779B-MIA-CLI

User name: TStudent


his Th
is
do do
cu cu
me me
nt nt
Password: Pa55w.rd
No ca belo No ca belo
un us ng un us ng
au e s au e s
tho vr@g to R tho vr@g to R
riz m ist riz m i st
Exercise 1: Formatting ed Data
a e ed a e
co il.com Cha co il.com Cha
pie us pie us
sa he sa he
llo v. llo v.
we we
d! d!
Scenario

In this exercise, you will combine data from four tables into a single table. The four tables have been exported from a
database with no manipulation. Later, you will create a PivotTable from this single range of data.

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 12 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

The main tasks for this exercise are as follows:

1. Open the Worksheet

2. Add the CustomerID Column to the SalesItems Table

3. Add the SalesPerson Column to the SalesItems Table

4. Add the BillToAddressID Column to the SalesItems Table


Th Th
is is
do do
5. cu
Add the BillToStateProvince Column to the SalesItems Table cu
me me
nt nt
No c be No c be
u n a u se l o n g s un ause longs
au v au v
tho r@g to R tho r@g to R
riz ma ist riz i
e ed mail. ste C
Detailed Steps ▼ ed co il.com Cha co c ha
pie us pie om us
sa he sa he
llo v. llo v.
we we
d! d!
Detailed Steps ▼

Detailed Steps ▼

Detailed Steps ▼
Th Th
is is
do do
cu cu
me me
Detailed Steps ▼nt b nt
No ca elo No ca belo
un u s n gs u na u s ng
au e uth evr@ s to
tho vr@g to R o g Ris
Result: A single Excelriztable ist VLOOKUP() function calls to include data from riz other
ed m that
a uses e ed maitables. te
co il.com Cha co l .c Ch
pie us pie om au
sh
sa he s all ev.
llo v. ow
we e
d! d!
Exercise 2: Building PivotTables

Scenario

In this exercise, you will use the single SalesItems table you created in Exercise 1 as the basis of three PivotTables:
one to display total sales, one to display total items, and one to display average discount, for states and sales
Th Th
people. is is
do do
cu cu
me me
nt nt
No for this b elo
ca exercise No ca belo
The main tasks un us n are as follows: u ng
e gs u na s
au
tho vr@g to R uth evr@ s to
riz ma is ori gm Ris
il.c te C ze a te
1. Add a PivotTable toethe d c Spreadsheet
o ha d co il.com Cha
op
ies m us
he
pie
sa
us
he
all v. llo v.
2. Configure the TotalSalesAnalysis ow PivotTable we
ed d!
!
3. Add a PivotTable to the Spreadsheet

4. Configure the TotalItemsAnalysis PivotTable

5. Add a PivotTable to the Spreadsheet

6. Th the AverageDiscountAnalysis PivotTable


Configure Th
is is
do do
cu cu
me me
nt nt
No ca belo No ca belo
un us ng un us ng
au e s au e s
Detailed Steps tho▼ vr@g to R tho vr@g to R
riz m a ist riz m a i st
ed e ed e
co il.com Cha co il.com Cha
pie us pie us
sa he sa he
Detailed Steps ▼ llo v. llo v.
we we
d! d!

Detailed Steps ▼

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 13 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

Detailed Steps ▼

Detailed Steps ▼

Detailed Steps ▼

Result: A T his
spreadsheet Thdata from the SalesItems table.
that has three different PivotTables, all analyzing is
do do
cu cu
me me
nt nt
No b e N b
u
ca
u lon o u cau elon
Exercise 3: Adding na s e PivotCharts
g s and a Slicer na se gs
uth v r to uth v r to
ori @gm Ris ori @gm Ris
ze ze
d c ail.c te Ch d c ail.c te Ch
op o au op o au
ies m sh ies m sh
Scenario all ev. a l ev.
ow l ow
ed ed
! !
In this exercise, you will add two PivotCharts to the Analysis worksheet to display data in graphical form. One chart
will display total sales amounts and the other will display total items sold. You will also add a slicer that can filter the
data based on Product ID.

The main tasks for this exercise are as follows:

Th Th
1. is
Insert a Total is
do Sales PivotChart do
cu cu
me me
nt nt
2. Insert aNTotal be be
o u cau PivotChart
Items l No c
un ause longs
na se o n g s au
uth v r@ to tho vr@g to R
3. Add a Slicer ori gm Ris riz i
ze
dc a i l.
te
Ch ed mail. ste C
o p co m au co
pie
co
m ha
us
ies sh sa he
all ev. llo v.
ow we
ed d!
!
Detailed Steps ▼

Detailed Steps ▼

DetailedT Steps ▼
Th
his is
do do
cu cu
me me
Result: An N nt
Excel spreadsheet that includes a simple dashboard that displays andnanalyses
t sales data
b No ca belo
o u cau elon un us ng
interactively. na se g s a e s
uth vr@ to uth vr@ to
ori gm Ris ori gm Ris
ze a il. te z e a il. te
dc Ch dc Ch
o p co m au op com au
ies sh ies sh
Review Question(s) all
ow
ev. a llo ev.
ed we
! d!

Check Your Knowledge

Discovery
In Exercise 1, you merged columns from the SalesOrderHeaders, Customers, and Addresses tables into the SalesItems
T T
table. What ishithe
s total number of calls to the VLOOKUP() function made inhithe
s completed SalesItems table?
do do
cu cu
me me
Show solution nReset
tb nt
No c e No ca belo
u n a u se l o n g s un us
e ng
s
au v au
tho r @
g
to
Ri tho vr@g to R
riz riz i st
ed mail. ste C ed m a e
co c ha co il.com Cha
pie om us pie us
Check Your Knowledge sa
llo
he
v. sa
llo
he
v.
we we
d! d!

Discovery
The original database includes a table named Product. This table uses the ProductID as a primary key and has a

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 14 of 15
Module 1: Data Analysis in Excel 18.10.21, 17:22

column called “Name”. How could you enable users to select a product name in the slicer instead of a product ID?

Show solution Reset

Module review and takeaways

In this module, you have learned how Excel can be used to import and analyze data from a wide variety of sources,
Th
including databases, text files, and other systems. You have also seen how Th Excel enables users to create interactive
is is
do do
displays of that datac umin PivotTables and PivotCharts for analyses from multiplecpoints um of view. Finally, you learned
en en
about the limits t techniques, tb
No of thesec b e which new features of Excel can overcome.
N o u cau elon
u n a u se l o n g s na s g
au
tho vr@g to R uth evr@ s to
riz i o riz g Ri
Review Question(s) ed mail. ste C ed mail. ste C
co co h au c op c o ha
pie m sh ies m us
sa e all he
llo v. ow v.
we
Check Your Knowledge d! e d!

Discovery
You have a database table that contains sales data from the last five years. There are approximately 1.5 million rows in
the table. You want to analyze sales data from 2015 in Excel. What technical issues can you foresee and how can you
solve them?
Th Th
is is
do do
Show solution cum Reset me
cu
en nt
t
No ca belo No c be
un us
e ng
s un ause longs
au au
tho vr@g to R tho vr@g to R
riz m ist riz i
ed a e ed mail. ste C
co il.com Cha co co
m ha
pie us pie us
sa he sa he
llo v. llo v.
we we
d! d!

Th Th
is is
do do
cu cu
me me
nt nt
No c be No ca belo
u n a u se l o n g s un us
e ng
s
au au
tho vr@g to R tho vr@g to R
riz i riz i st
ed mail. ste C ed m a e
co co
m ha co il.com Cha
pie us pie us
sa he sa he
llo v. llo v.
we we
d! d!

Th Th
is is
do do
cu cu
me me
nt nt
No c be No ca belo
u n a u se l o n g s un us
e ng
s
au au
tho vr@g to R tho vr@g to R
riz i riz i st
ed mail. ste C ed m a e
co co
m ha co il.com Cha
pie us pie us
sa he sa he
llo v. llo v.
we we
d! d!

https://www.skillpipe.com/api/2.1/content/urn:uuid:1f944ea8-5b0…-8da5-4f38c75c4c53@2020-12-11T16:42:28Z/OPS/html/20779B01.html Page 15 of 15

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy