Yvaft64 001
Yvaft64 001
Yvaft64 001
Fast Track
Course Notes
SAS Visual Analytics: Fast Track Course Notes was developed by Lynn Matthews and Eric Rossland.
Additional contributions were made by Kelly Gray, Anita Hillhouse, Rob McAfee, Dave Naden, Marjorie
Shelley, and Bobbie Wagoner. Editing and production support was provided by the Curriculum
Development and Support Department.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of
SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product
names are trademarks of their respective companies.
Copyright 2014 SAS Institute Inc. Cary, NC, USA. All rights reserved. Printed in the United States of
America. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written
permission of the publisher, SAS Institute Inc.
Book code E2620, course code YVAFT64, prepared date 07May2014. YVAFT64_001
ISBN 978-1-62959-186-5
For Your Information iii
Table of Contents
1.2 Using the SAS Visual Analytics Home Page ................................................................. 1-19
Demonstration: Exploring the SAS Visual Analytics Home Page .......................... 1-29
Exercises.................................................................................................................. 1-40
3.2 Selecting Data and Defining Data Item Properties .......................................................... 3-7
iv For Your Information
4.1 Examining the SAS Visual Analytics Designer Interface ................................................ 4-3
4.3 Creating Data Items and Working with Graphs ............................................................. 4-29
Demonstration: Working with Graphs: Part 1 ......................................................... 4-40
Exercises.................................................................................................................. 4-48
Demonstration: Working with Graphs: Part 2 ......................................................... 4-52
Exercises.................................................................................................................. 4-57
Demonstration: Working with Graphs: Part 3 ......................................................... 4-61
Exercises.................................................................................................................. 4-65
Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual
Analytics................................................................................................ 6-1
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics ........................ 6-3
Demonstration: Managing LASR Tables ............................................................... 6-16
Exercises.................................................................................................................. 6-18
Course Description
This course teaches how to explore data and build reports using SAS Visual Analytics. You will learn how
to build queries in SAS Visual Data Builder and you will also learn the basics of SAS Visual Analytics
Administrator.
To learn more
For information about other courses in the curriculum, contact the SAS
Education Division at 1-800-333-7660, or send e-mail to training@sas.com.
You can also find this information on the web at http://support.sas.com/training/
as well as in the Training Course Catalog.
For a list of other SAS books that relate to the topics covered in this
course notes, USA customers can contact the SAS Publishing Department
at 1-800-727-3228 or send e-mail to sasbook@sas.com. Customers outside
the USA, please contact your local SAS office.
Also, see the SAS Bookstore on the web at http://support.sas.com/publishing/
for a complete list of books and a convenient order form.
viii For Your Information
Prerequisites
No SAS experience or programming experience is required, although you should have some computer
experience. Specifically, you should
be able to log on and off a computer and use a keyboard or mouse
know how to use a Web browser to access information.
Chapter 1 Getting Started with SAS
Visual Analytics
1.1 Exploring SAS Visual Analytics Concepts ................................................................... 1-3
Demonstration: Using SAS Visual Analytics Viewer ............................................................. 1-7
Demonstration: Using SAS Mobile BI .................................................................................. 1-11
1.2 Using the SAS Visual Analytics Home Page .............................................................. 1-19
Demonstration: Exploring the SAS Visual Analytics Home Page ........................................ 1-29
Exercises .............................................................................................................................. 1-40
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring SAS Visual Analytics Concepts 1-3
Objectives
Describe the purpose of the SAS Visual Analytics.
List the components of SAS Visual Analytics.
List the types of SAS Visual Analytics users.
Describe the purpose of the SAS Visual Analytics
Viewer.
Describe the purpose of the SAS Mobile BI app.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-4 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring SAS Visual Analytics Concepts 1-5
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-6 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring SAS Visual Analytics Concepts 1-7
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-8 Chapter 1 Getting Started with SAS Visual Analytics
The URL used to access SAS Visual Analytics on the classroom machines is specific
to the classroom configuration. The URL used at your site will be different.
3. Enter Rob in the User ID field.
4. Enter Student1 in the Password field.
Use caution when entering the user ID and password because values might be case sensitive.
5. Click Log On.
SAS Visual Analytics appears, and the Home Page is displayed by default.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring SAS Visual Analytics Concepts 1-9
This report has three sections, which are represented as tabs across the top of the report area. The
first section, 2012 Dashboard, is displayed by default.
The 2012 Dashboard section contains several report objects and filters.
When the report is first displayed, the report objects are filtered to display information only
for Europe.
The upper left portion of the report displays the instructions. A text object is used to
document how to interact with this report section.
The thermometer gauge displays average unit age for each facility in Europe.
The dial gauge displays the actual and target production units for each facility in Europe.
The two list control objects enable you to select a specific country and region to further filter
the report.
The report uses a button bar as a section prompt to filter data by continent. Europe is currently
selected. The size of the button represents the number of values for that continent.
b. Gauges for each facility location in Europe display average unit age as well as the actual and
target unit production. Use the Select Countries list in the top left corner to limit the gauges that
are displayed.
1) Click the check box for Sweden. The report is updated to display only one gauge.
2) Click the check box for United Kingdom.
The report section is updated to display gauges for the selected countries.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-10 Chapter 1 Getting Started with SAS Visual Analytics
c. Position your mouse pointer on the thermometer gauge for Manchester at the top of the window.
A data tip is displayed that shows the measure (Average Unit Age) and the measure value (12).
d. Position your mouse pointer on the dial gauge for City of London at the bottom of the window.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring SAS Visual Analytics Concepts 1-11
Report linking is used to display the Unit Metrics Report section. The region value is passed to
the linked section, and the information is subset for City of London.
7. Click (Home) in the upper left corner to return to the Home Page.
The report is still open and can be quickly displayed by clicking the button on the application
bar.
8. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
An information window is displayed the first time you launch the app.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-12 Chapter 1 Getting Started with SAS Visual Analytics
3. Tap skip in the upper right corner to close the information window.
A connection to the SAS Demo Server is defined and activated when the app is installed. Three
sample reports are available initially, and others can be added from the Library view.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring SAS Visual Analytics Concepts 1-13
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-14 Chapter 1 Getting Started with SAS Visual Analytics
The initial report section is displayed. The first report section is named Revenue, and it contains three
report objects: a gauge, a bar chart, and a line chart.
8. Tap in the upper right corner to display the sections in the report.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring SAS Visual Analytics Concepts 1-15
9. Tap the Key Customers section. This section has three report objects: a bar chart, a treemap, and a
waterfall chart.
10. Tap the bar for Ava Taylor. The list table, treemap, and waterfall chart are updated to show
information for the selected customer.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-16 Chapter 1 Getting Started with SAS Visual Analytics
11. Tap the tile for Casino. The waterfall chart is updated to show the revenue history for only casino
spending.
12. Swipe your finger to the left to navigate to the Trips section. This section has three report objects: a
dual axis line chart, a gauge, and a crosstab.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring SAS Visual Analytics Concepts 1-17
13. Pinch to zoom the line chart to display 2011 information only.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-18 Chapter 1 Getting Started with SAS Visual Analytics
16. Tap to maximize the report object and display the description.
17. Tap to expand the report object and close the description.
18. Tap Close to restore the report object to the original size.
19. Tap Close to close the report.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-19
Objectives
Log on to SAS Visual Analytics.
Identify the elements of the SAS Visual Analytics
Home Page.
Manage content on the Home Page.
List the types of preferences for SAS Visual Analytics.
Interact with comments on explorations and reports.
Search the Home Page for content.
Describe the purpose of the application bar.
17
SAS Visual Analytics system administrators can configure support for guest access. Users with guest
access can access only the SAS Visual Analytics Home Page and SAS Visual Analytics Viewer. Guest
access uses a shared account, so it does not provide individualized features, such as history, favorites,
preferences, or alerts.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-20 Chapter 1 Getting Started with SAS Visual Analytics
The application bar enables you to return to the Home Page and easily switch between open items.
The menu bar enables you to access common tasks, search for content, and log off from SAS Visual
Analytics.
The Create Content area provides icons to access applications.
The My Content area lists recent items and enables you to display favorites.
The Other Content area displays content added by the IT administrator.
The Common Actions section provides links to access applications.
The Links section enables you to access and create links to additional content.
The SAS Resources section provides links to resources provided by SAS.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-21
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-22 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-23
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-24 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-25
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-26 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-27
The Comments: Administrator Properties window is a display capture from SAS Management
Console.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-28 Chapter 1 Getting Started with SAS Visual Analytics
The ability to switch between applications is available in version 6.3 and later.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-29
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-30 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-31
The items returned by the search might be different on your classroom machine.
c. Refine the search to include only tables. Click Table in the Type section.
d. Right-click the first table object, INSIGHT_TOY_COMPANY_2012.
You can position your mouse pointer on the text to see the complete name.
Based on the description, this table includes data for 2012 only.
This is an in-memory table and has been loaded to the SAS LASR Analytic Server.
This table is stored in the LASR Data folder within the Shared Data folder.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-32 Chapter 1 Getting Started with SAS Visual Analytics
The star turns yellow ( ) to indicate that the table has been added to Favorites.
c. Click X to close the object inspector.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-33
d. Click Favorites in the My Content area to ensure that the Favorites are displayed.
10. View and interact with the Insight Toy Company report.
a. Single-click Insight Toy Company Report in the My Content area to view the object inspector.
Because Eric has the ability to create reports, there are two actions available in the object
inspector, View and Edit. Double-clicking the report icon in the My Content area is the equivalent
of selecting the first action, View, which opens the report in SAS Visual Analytics Viewer.
b. Select Edit in the object inspector to open the report in SAS Visual Analytics Designer.
SAS Visual Analytics Designer appears. Unlike the Viewer, the Designer provides right and left
panes for building the report.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-34 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-35
The report is still open, and the asterisk indicates that changes have been made but have not
been saved.
19. Position the mouse pointer on the button on the application bar for Insight Toy Company Report.
Click X to close the report.
Because the changes were not saved, you are prompted to discard your changes.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-36 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-37
e. If necessary, click and drag (the handle bar) to expand the bottom portion of the window in
order to see more details.
The color of the bubbles represents the average facility age. The magenta bubbles indicate older
facilities.
The size of the bubbles represents the average facility efficiency. The larger bubbles indicate
facilities with higher efficiency ratings.
f. Double-click the bubble for California to drill down to the next level of data. Most of the
facilities in California are not very old.
g. Position the mouse pointer on the bubble for San Diego to display additional information.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-38 Chapter 1 Getting Started with SAS Visual Analytics
h. Click (Restore) to view the geo map visualization at the original size.
i. Click (Maximize) in the Unit Analysis by Product bar chart visualization to view it at a larger
size.
j. Select All Product Hierarchy in the upper left corner of the bar chart to display the product
brands.
k. Change the view of the bar chart visualization by right-clicking a bar and selecting
Bar Direction Horizontal.
The bar chart is updated.
l. Move the mouse pointer to the upper right corner of the visualization until the (Show
details) icon appears.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-39
Check boxes in the bottom left corner enable you to show or hide information before
exporting the image.
2) Click Save.
3) If necessary, navigate to the desktop.
4) Click Save.
p. Click (Restore) to view the bar chart visualization at the original size.
q. Click (Home Page) in the upper left corner to return to the Home Page.
The asterisk on the button on the application bar indicates that the exploration changes have not
been saved.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-40 Chapter 1 Getting Started with SAS Visual Analytics
b. Because you do not want to save the changes, click OK to discard them.
c. Close the browser window.
Exercises
1. Interacting with the SAS Visual Analytics Home Page
a. Open Internet Explorer and log on to SAS Visual Analytics using Erics credentials.
Use caution when entering the user ID and password because values might be case
sensitive.
b. Clear the list of recent items displayed in the My Content area.
1) Click Manage in the My Content area or select Manage My Content in the Common
Actions section.
2) Clear recent items.
Hint: Click Options to clear selections.
3) Select Recent in the My Content area to verify that no items are displayed.
4) Select Favorites in the My Content area to view the list of favorites.
c. Open and interact with the Insight Toy Company report in SAS Visual Analytics Viewer.
Select View from the object inspector to open the report in SAS Visual Analytics Viewer.
Select Africa to display information for only that continent.
d. Double-click the dial gauge for Western Cape to link to the Unit Metrics Report section.
Answer the following questions:
What is the average facility age for Cape Town?
__________________________________________________
What is the average unit age for Cape Town?
__________________________________________________
List the two units with the highest lifespans in Cape Town.
__________________________________________________
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Using the SAS Visual Analytics Home Page 1-41
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-42 Chapter 1 Getting Started with SAS Visual Analytics
Objectives
Describe the server components of the
SAS Visual Analytics architecture.
List the functionality provided by the
SAS LASR Analytic Server.
Describe the different types of deployments.
Describe the classroom environment.
List the types of roles and capabilities used
with SAS Visual Analytics.
45
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Discussing the Course Environment and Scenario 1-43
The SAS LASR Analytic Server is deployed across several blades. Hadoop, or a supported co-located
data provider, also takes advantage of the distributed blade environment.
.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-44 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Discussing the Course Environment and Scenario 1-45
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-46 Chapter 1 Getting Started with SAS Visual Analytics
54
54 continued...
The following display captures are from SAS Management Console. They show the role and
capabilities for SAS Visual Analytics and related functionality.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Discussing the Course Environment and Scenario 1-47
The icon indicates that all of the capabilities in that group are assigned.
The icon indicates that some of the capabilities in that group are assigned.
The icon indicates that none of the capabilities in that group are assigned.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-48 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Discussing the Course Environment and Scenario 1-49
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-50 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Discussing the Course Environment and Scenario 1-51
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-52 Chapter 1 Getting Started with SAS Visual Analytics
Comments: Administrator
55
55
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Discussing the Course Environment and Scenario 1-53
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-54 Chapter 1 Getting Started with SAS Visual Analytics
Although Eric is not part of the Visual Analytics: Report Viewing role, he has all of the same
capabilities because they are enabled as part of the Visual Analytics: Analysis role.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Discussing the Course Environment and Scenario 1-55
Exercises
2. Investigating the SAS Visual Analytics Home Page Users
a. Open Internet Explorer and log on to SAS Visual Analytics using Christines credentials.
b. Answer the following questions:
What type of content can Christine create?
__________________________________________________
Which of the following are listed as common actions for Christine?
___ Open
___ Manage My Content
___ Edit Preferences
___ Explore Data
___ Design Report
___ View Report
___ Manage Environment
___ Prepare Data
___ Build Custom Graph
___ Customize Themes
c. Log off from SAS Visual Analytics.
d. Log on to SAS Visual Analytics using Erics credentials.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-56 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions to Exercises 1-57
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-58 Chapter 1 Getting Started with SAS Visual Analytics
The size and layout of the report objects on the classroom machine might be different
from what is shown above. Report object size and layouts can change depending on
the resolution of your computer and the size of the browser window.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions to Exercises 1-59
3) Select Africa on the button bar to display information for only that continent.
d. Double-click the dial gauge for Western Cape, which links to the Unit Metrics Report section.
The Unit Metrics Report section contains several report objects and filters.
1) What is the average facility age for Cape Town?
3
Move the mouse pointer to the bar for Average Facility Age to view the data tip.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-60 Chapter 1 Getting Started with SAS Visual Analytics
3) List the two units with the highest lifespans in Cape Town.
TSA000170 and TSA000171
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions to Exercises 1-61
3) Click the (About these forecast results) icon to view information about the forecast.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-62 Chapter 1 Getting Started with SAS Visual Analytics
4) Click the right-pointing arrow to expand Unit Actual and Facility Efficiency.
Information about the forecast algorithm is displayed for each measure.
5) Right-click in the background of the visualization and select Show Details to deselect it.
6) Click (Restore) to view the visualization at the original size.
j. Select and maximize the Unit Analysis visualization in the Dock panel.
1) Right-click Unit Analysis in the Dock panel and select Maximize to view the visualization at
a larger size.
2) Click the (About these correlation results) icon to view information about the correlation.
3) Right-click in the background of the visualization and select Show Details to deselect it.
4) Move the mouse pointer over the dark blue box that represents the correlation between Unit
Reliability and Unit Age.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions to Exercises 1-63
5) Double-click the dark blue box that represents the correlation between Unit Reliability and
Unit Age.
A new heat map visualization that shows the detail information about the correlation between
the selected measures is created.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-64 Chapter 1 Getting Started with SAS Visual Analytics
6) Click the (About these regression results) icon text to the Linear Fit Line information at
the bottom of the visualization to view information about the linear fit line.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions to Exercises 1-65
Open
Manage My Content
Edit Preferences
Explore Data
Design Report
View Report
Manage Environment
Prepare Data
Customize Themes
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-66 Chapter 1 Getting Started with SAS Visual Analytics
c. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
d. Log on to SAS Visual Analytics using Erics credentials.
1) Click Log On.
2) Enter Eric in the User ID field.
3) Enter Student1 in the Password field.
4) Click Log On.
The SAS Visual Analytics Home Page appears by default.
Open
Manage My Content
Edit Preferences
Explore Data
Design Report
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions to Exercises 1-67
View Report
Manage Environment
Prepare Data
Customize Themes
f. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
g. Log on to SAS Visual Analytics using Robs credentials.
1) Click Log On.
2) Enter Rob in the User ID field.
3) Enter Student1 in the Password field.
4) Click Log On.
The SAS Visual Analytics Home Page appears by default.
Open
Manage My Content
Edit Preferences
Explore Data
Design Report
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-68 Chapter 1 Getting Started with SAS Visual Analytics
View Report
Manage Environment
Prepare Data
Customize Themes
i. Click Log Off in upper right corner to log off from SAS Visual Analytics.
j. Log on to SAS Visual Analytics using Lynns credentials.
1) Click Log On.
2) Enter Lynn in the User ID field.
3) Enter Student1 in the Password field.
4) Click Log On.
The SAS Visual Analytics Home Page appears by default.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions to Exercises 1-69
Open
Manage My Content
Edit Preferences
Explore Data
Design Report
View Report
Manage Environment
Prepare Data
Customize Themes
l. Click Log Off in upper right corner to log off from SAS Visual Analytics.
m. Close the browser window.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-70 Chapter 1 Getting Started with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 2 Administering the
Environment and Managing Data
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-3
Objectives
Describe the purpose of SAS Visual Data Builder.
Identify the components of SAS Visual Data Builder.
Describe the purpose of a data query.
List the steps to select data sources for a data query.
Describe the process to manage column attributes
and create calculated columns.
Define the types of filters that can be used in a data
query.
List the types of data sources that can be imported by
SAS Visual Data Builder.
3
3
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-4 Chapter 2 Administering the Environment and Managing Data
Clicking Create Data Query in the Create Content area opens an empty data query window.
Selecting the Prepare Data link in the Common Action section or clicking the Prepare Data tool on the
toolbar opens a window where you can create a new query, select a recent query, or import data. Selecting
New Data Query opens display an empty data query window.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-5
menu toolbar
bar
workspace Properties
panel
navigation
pane
lower pane
11
The application bar enables you to return to the Home Page and easily switch between open items.
The menu bar enables you to access common tasks and access online Help.
The navigation page displays tables and data queries in the SAS Folders tree.
The toolbar contains icons for working with queries.
The workspace enables you to build data queries.
The lower pane enables you to manage the attributes of the query.
The Properties panel enables you to manage the properties of the item selected in the workspace, as well
as the query itself.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-6 Chapter 2 Administering the Environment and Managing Data
column properties
aggregations
12
create new
columns
edit column
properties
filter data
13
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-7
You can remove an input source from the data query by right-clicking it and selecting Remove
Table.
Joining Tables
SAS Visual Data Builder enables you to join multiple
tables and data queries together. As tables and data
queries are added to the workspace, joins are added
automatically when the tables have foreign and primary
keys or matching column names.
You can change the join type or remove the join by right-
clicking the join line and selecting one of the following:
INNER
LEFT
RIGHT
FULL
15
SAS Visual Data Builder attempts to join tables automatically as you add them to the workspace.
If primary or foreign key information is registered in the table metadata, the application retrieves the
information and uses it to create the join.
If there is no primary or foreign key information in the metadata, then the tables are joined by matching
column name and type.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-8 Chapter 2 Administering the Environment and Managing Data
The default join type is determined by whether the columns are nullable.
If the column for the existing table is not nullable (key values cannot be missing), but the column for
the newly added table is, a left join is used.
If the column for the existing table is nullable but the column for the newly added table is not nullable,
a right join is used.
If both columns for the existing and newly added table are nullable, a full join is used.
If none of the previous conditions are met, an inner join is used.
16
A column can be added to the output table multiple times. When you add a column multiple times, a
number is appended to each column name after the first occurrence.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-9
You can right-click a column name in the Column Editor to remove it.
17
Column Properties
You can specify the following column properties using the
Column Editor tab:
Column Name Name used to identify the column in the query code.
Expression Table name and column name reference or instructions
for calculating the column value. Clicking opens the
expression builder.
Type Type of data the column contains. Valid values are
CHARACTER, DATE, DATETIME, NUMERIC, and TIME.
Format Instructions on how to write out the data values.
Label Used to identify the column in explorations and reports.
Aggregations Identifies how to summarize the data values. Valid values
are Group by, AVG, COUNT, MAX, MIN, STD, and SUM.
18
continued...
When you specify an aggregation for a column, the remaining columns automatically become
GROUP BY columns.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-10 Chapter 2 Administering the Environment and Managing Data
Column Properties
You can specify the following column properties using the
Column Editor tab:
Pivot By Clicking displays the Pivot Values window, which
provides additional options for summarizing data.
Sort Enables you to sort the column by ascending or
descending values.
19
20
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-11
21
The Column Name, Expression, and Type fields are required when creating calculated columns.
string manipulation
date/time
22 manipulation
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-12 Chapter 2 Administering the Environment and Managing Data
Filtering Data
There are two ways to filter data in SAS Visual Data
Builder.
23
HAVING clauses give you the additional ability to filter the data based on calculated columns.
For best practices in working with filters, see Chapter 12 of SAS Visual Analytics 6.4:
Users Guide.
24
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-13
Properties Panel
The drop-down list at the top of the
Properties panel enables you to
select which item for which you
want to display the properties.
The Create a SQL query view option might improve performance by reducing data movement and storage
requirements. Output tables created in SAS LASR Analytics Server or SAS Data in HDFS do not support
views. See Chapter 10 of the SAS Visual Analytics 6.4 Users Guide for more information.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-14 Chapter 2 Administering the Environment and Managing Data
Output Properties
The data query properties in the
Output area define the table that is
registered in metadata when the
data query is saved.
Clicking enables
you to unlock the
code for manual
editing.
28
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-15
29
30
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-16 Chapter 2 Administering the Environment and Managing Data
31
Importing Data
SAS Visual Data Builder enables you to
import three types of local data and many
types of server-based data sources:
local data sources
social media
Twitter stream
32
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-17
33
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-18 Chapter 2 Administering the Environment and Managing Data
Demonstration
Example: Build a new data query to create the
CustomerOrders table in the
SAS LASR Analytic Server.
Profit is calculated by
multiplying the quantity
sold by the item cost and
then subtracting the result
from the retail price.
35
Exercise
Example: Build a new data query to create the
ProductAnalysis table in the
SAS LASR Analytic Server.
Profit is calculated by
multiplying the quantity
sold by the item cost and
then subtracting the result
from the retail price.
36
Preparing Data
This demonstration illustrates how to use SAS Visual Data Builder to build a data source for exploring
and reporting.
1. Log on to SAS Visual Analytics using Lynns credentials.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-19
a. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
b. From the browser window, select Favorites SAS Visual Analytics Home Page.
c. Enter Lynn in the User ID field.
d. Enter Student1 in the Password field.
e. Click Log On.
The SAS Visual Analytics Home Page is displayed by default.
2. Access SAS Visual Data Builder.
a. Click Create Data Query in the Create Content area, click the Prepare Data icon from the menu
bar, or select Prepare Data from the Common Actions section.
SAS Visual Data Builder appears. The Prepare Data button is displayed on the application bar.
A blank workspace enables you to begin building a new query.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-20 Chapter 2 Administering the Environment and Managing Data
d. Right-click an item in the new table and select Add All Columns.
The selected columns and their properties are displayed in the Column Editor tab in the lower
pane:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-21
f. Click each of the following columns in the CUSTOMER_DIM table once to add them to the
query:
Customer_Name
Customer_BirthDate
Customer_Age_Group
Customer_Type
Customer_Group
Customer_Age
CustomerGenderLabel
CustomerCountryLabel
4. Create a calculated column.
a. Create the Profit column.
1) Scroll to the bottom of the Column Editor tab in the lower pane.
2) Click in the Column Name cell for the row identified by the plus sign .
3) Type Profit.
4) Click the Expression cell to make it active.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-22 Chapter 2 Administering the Environment and Managing Data
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-23
b. If necessary, click in the background of the Design view so that no table is selected.
c. Click Clear in the Output section to clear out the existing values.
d. Enter CustomerOrders in the Table field of the Output section.
Prior to version 6.4, the Table field must contain a valid SAS name. Valid SAS names are
between 1 and 32 characters in length. They can contain letters, numbers, and
underscores but cannot start with a number.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-24 Chapter 2 Administering the Environment and Managing Data
l. Click OK.
The Output properties should resemble the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-25
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-26 Chapter 2 Administering the Environment and Managing Data
c. Click Yes.
The results take longer to display than the preview because all rows are available.
Because the output table was created in the SAS LASR Analytic Server, the Explore Results link
is active.
11. Explore the new table in SAS Visual Analytics Explorer.
a. Click Explore Results on the toolbar.
SAS Visual Analytics Explorer appears with the new table loaded as the data source.
The data query is still open and can be viewed by clicking the Prepare Data button on
the application bar.
b. In the Data pane, click Month Name in the Category group, hold down the Ctrl key, and click
Profit in the Measure group.
c. Drag the selected items onto the workspace in the middle of the window.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-27
The automatic chart functionality determines the best visualization type to display based on the
selected data.
d. Right-click Month Name on the axis label and select Sort Ascending.
12. Return to the Home Page, log off, and do not save the changes to the exploration.
a. Click (Home Page) in the upper left corner to return to the Home Page.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-28 Chapter 2 Administering the Environment and Managing Data
c. Click OK to exit SAS Visual Analytics and discard changes to the exploration.
d. Close the browser window.
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Exploring SAS Visual Data Builder 2-29
Product_Name
Supplier_Name
SupplierCountryLabel
SupplierContinent
d. Create a calculated column.
Expression RetailPrice-(Quantity*Cost)
Type Numeric
Label Profit
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-30 Chapter 2 Administering the Environment and Managing Data
Objectives
Describe the components of the SAS Visual Analytics
Administrator interface.
Explore the functionality provided by SAS Visual
Analytics Administrator.
Describe the purpose of SAS Theme Designer.
Describe the purpose of SAS Visual Analytics Graph
Builder.
List the functionality provided by SAS Management
Console.
41
41
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-31
42
43
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-32 Chapter 2 Administering the Environment and Managing Data
45
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-33
46
47
You can access the LASR Servers tab by selecting LASR Manage Servers.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-34 Chapter 2 Administering the Environment and Managing Data
48
You can access the LASR Tables tab by selecting LASR Manage Tables.
49
Clicking Get status as tab is initiated updates the status indicator for all of the objects each time that the
tab is opened.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-35
You can access the Resource Monitor tab by selecting LASR Monitor Resources.
For more information about interacting with the Resource Monitor tab, see Chapter 4 of
SAS Visual Analytics 6.4: Administration Guide.
You can access the Process Monitor tab by selecting LASR Monitor Processes.
For more information about interacting with the Process Monitor tab, see Chapter 4 of
SAS Visual Analytics 6.4: Administration Guide.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-36 Chapter 2 Administering the Environment and Managing Data
52
You can access the Mobile Device tab by selecting Tools Manage Devices.
53
You can access the Alerts tab by selecting Tools Manage Alerts.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-37
54
For more information about SAS Theme Designer, see SAS Theme Designer 4.2 for Flex:
Users Guide.
55
For more information about SAS Visual Analytics Graph Builder, see Chapters 41 through 43 of
SAS Visual Analytics 6.4: Users Guide.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-38 Chapter 2 Administering the Environment and Managing Data
specifying permissions
managing servers
56
57
This demonstration illustrates how to access and view the functionality provided by the following
applications:
SAS Visual Analytics Administrator
SAS Visual Analytics Graph Builder
SAS Theme Designer
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-39
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-40 Chapter 2 Administering the Environment and Managing Data
The tabs on the classroom machine might not match those shown above.
If the LASR Servers tab is not displayed, click LASR Manage Servers.
If the LASR Tables tab is not displayed, click LASR Manage Tables.
3. Click the LASR Servers tab to make it active.
4. Select LASR Analytic Server - sasbap.
The connection status is updated and indicates whether the server is running or stopped.
6. Click (Get Status) on the toolbar to get the status of all of the tables.
The connection status is updated and indicates whether the table is loaded or unloaded.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-41
c. Click Close.
9. Click Tools Manage Alerts.
The information shown on the classroom machine might differ from what is displayed above.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-42 Chapter 2 Administering the Environment and Managing Data
11. Click (Home Page) in the upper left corner to return to the Home Page.
Using the SAS Visual Analytics Graph Builder, you can create custom graph objects that can be
used in reports created by SAS Visual Analytics Designer.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-43
Custom graph objects can be created by combining multiple items and specifying common roles
and properties.
13. Click (Home Page) in the upper left corner to return to the Home Page.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-44 Chapter 2 Administering the Environment and Managing Data
Using SAS Theme Designer for Flex, you can create a theme or modify an existing theme.
d. Click the color selector next to the Text Color field in the Left pane.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-45
If the application is not on the Start menu, select Start All Programs SAS
SAS Management Console 9.4.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-46 Chapter 2 Administering the Environment and Managing Data
A connection profile contains instructions for how to connect to the SAS Metadata Server. User
credentials can be stored in the profile, as is the case on the classroom machine.
The status bar at the bottom of the window indicates that you are connected as Eric. These
credentials have been saved as part of the connection profile.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-47
Each plug-in provides additional administration functionality. Role-based capabilities limit the plug-
ins that Eric is able to see.
4. Explore the Data Library Manager plug-in.
a. Expand the Data Library Manager plug-in.
b. Expand the Libraries folder.
c. Select the Source Data library.
A library contains instructions for accessing a specific data source or location. Libraries can
include metadata definitions for the physical tables that they contain.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-48 Chapter 2 Administering the Environment and Managing Data
These are the same tables that you accessed in SAS Visual Data Builder.
These are the same tables that you viewed on the LASR Tables tab in the Administrator.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring SAS Visual Analytics Administrator 2-49
The User Manager plug-in is used to create and manage credentials for users and groups of users.
Some users and groups are predefined by SAS and provide special functionality. The User
Manage plug-in is also used to manage roles and capabilities.
c. Click the Show Roles check box.
d. Clear the Show Users check box.
e. Clear the Show Groups check box.
Roles provide the ability to grant capabilities to the various applications and SAS platform
features and functionality.
6. Explore the SAS Folders tree.
a. Click the Folders tab.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-50 Chapter 2 Administering the Environment and Managing Data
The Folders tab enables the IT administrator to organize and set permissions on metadata objects
such as tables, explorations, reports, and other objects.
b. Expand the Shared Data folder.
These are the same folders that you viewed in SAS Visual Data Builder and SAS Visual Analytics
Administrator.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Solutions to Exercises 2-51
Exercises
If you followed along with the demonstration, there is no need to complete this exercise.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-52 Chapter 2 Administering the Environment and Managing Data
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Solutions to Exercises 2-53
b) Type Profit.
l) Click Apply.
m) Click in the Type cell to make it active.
n) Select NUMERIC from the list.
o) Click in the Format cell.
p) Select DOLLAR as the format type.
q) Enter 13 in the Width field.
r) Enter 2 in the Decimals field.
s) Click OK.
t) Click in the Label cell and type Profit.
e. Specify Output properties.
2) If necessary, click in the background of the Design view so that no table is selected.
3) Click Clear in the Output section to clear out the existing values.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-54 Chapter 2 Administering the Environment and Managing Data
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Solutions to Exercises 2-55
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-56 Chapter 2 Administering the Environment and Managing Data
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 3 Using SAS Visual
Analytics Explorer
3.2 Selecting Data and Defining Data Item Properties ...................................................... 3-7
Demonstration: Visualizing Data .......................................................................................... 3-23
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.1 Examining Visual Analytics Explorer 3-3
Objectives
Describe SAS Visual Analytics Explorer.
List the components of the SAS Visual Analytics
Explorer interface.
Identify the purpose of explorations and visualizations.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-4 Chapter 3 Using SAS Visual Analytics Explorer
What Is an Exploration?
An exploration has a pointer to a single source of data
and one or more visualizations of the data. The
exploration can contain filters and other display
properties.
filters
data source visualizations
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.1 Examining Visual Analytics Explorer 3-5
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-6 Chapter 3 Using SAS Visual Analytics Explorer
Right
Data pane
pane
data properties
table
workspace
Dock panel
15
The application bar enables you to return to the Home Page and easily switch between open items.
The menu bar enables you to access common tasks and access online Help.
The toolbar contains icons for working with the exploration and visualizations.
The Data pane enables you to manage the data that is used in your visualizations.
The data properties table enables you to view and set data item properties.
The workspace displays one or more visualizations, which can be arranged using a grid.
The Dock panel contains minimized visualizations.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-7
The Right pane contains many tabs such as Filters, Roles, and Properties that enable you to specify
information about the visualizations.
Objectives
Open a data source in SAS Visual Analytics Explorer.
Describe the different tabs in the Right pane of the
Explorer.
Specify data item properties.
Define distinct counts.
Assign colors to category values.
Calculate new data items.
Duplicate data items.
Use the Show or Hide window.
Use the automatic chart functionality to automatically
create a visualization based on selected data items.
17
18
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-8 Chapter 3 Using SAS Visual Analytics Explorer
Role-based
capabilities
determine
whether you can
import data and
the type of data
that you can
import.
19
Based on role-based capabilities, you might be able to import the following types of data sources:
Local Data: Server-based Data: Social Media:
Microsoft Excel (xls, xlsx) SAS data set Twitter
text files Aster
SAS data set BigInsights
Cloudera
DB2
Greenplum
Hortonworks
MySQL
Netezza
ODBC
Oracle
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-9
Data Pane
After you select a data source, the data
items are loaded into the Data pane.
The Data pane displays the available
data items and a frequency count of
unique values.
The Data Source Details window
displays information
about the
data source.
21
Data Options
Clicking (Options) in the Data pane enables you to
change the data source as well as create, edit, and delete
data items. The Options menu also enables you to access
the following windows:
Data Properties
Measure Details
22
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-10 Chapter 3 Using SAS Visual Analytics Explorer
24
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-11
25
References to datetime values in this course are generic references to any and all of the following
types of values:
date
time
timestamp
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-12 Chapter 3 Using SAS Visual Analytics Explorer
Right-clicking a
data item name
in the Data
pane provides
a context menu
of additional
options.
26
Access the Data Properties window from the Options menu in the Data pane or by selecting
Data Data Properties.
Measure Details
The Measure Details window displays descriptive
statistics for all the measure data items in the data
source.
27
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-13
Distinct Counts
You can automatically create a new measure that
contains the distinct count of a category data item.
Right Pane
The Right pane of the Explorer contains the Roles, Filters,
Ranks, Comments, and Properties tabs.
Use the
(List of tabs)
button to select
the tabs to be
displayed.
29
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-14 Chapter 3 Using SAS Visual Analytics Explorer
Filtering Data
A filter is the specification of one or
more conditions to subset the data
source.
Local filters apply only to the
current visualization.
Global filters apply to all of the
visualizations in the current visual
exploration.
Data source filters subset the data
at the data source level and apply
to all visualizations in an
exploration.
A data source filter enables you to subset the data in an exploration. A data source filter differs from a
global filter in the following ways:
A data source filter updates the cardinality values that appear in the Data pane.
A data source filter updates the total number of rows that is used in the filtered rows percentage at the
bottom of the Right pane.
A data source filter is not displayed on the Filters tab.
An exploration can contain only one data source filter.
Creating Filters
Global and local filters can be
created by dragging the data item
to the Filters tab in the Right pane
or by selecting the filter type in
the data item pop-up menu.
Data source filters can be created,
edited, and deleted using the Data
Source Details window.
31
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-15
Creating Filters
Clicking (Options) on the Filters tab provides actions
for the selected filter.
You can use the Edit Filter window
to change the filter expression.
32
33
Basic filters use one data item to subset the data. Advanced filters enable you to subset the data based on
more than one data item.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-16 Chapter 3 Using SAS Visual Analytics Explorer
Roles Tab
The Roles tab enables you to view
the roles and data item assignments
for the selected visualization.
You can assign data items by
dragging them from the Data pane
or selecting them from the (Edit
selection) button.
34
Properties Tab
The Properties tab lists the properties for the currently
selected object. All visualizations have a name property.
Most visualizations enable you
to specify additional properties.
35
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-17
Comments Tab
The Comments tab enables you to view and reply to
existing visualization comments, as well as add new
comments. The (Comments)
icon appears on the title bar for
visualizations with comments.
Exploration
comments are
displayed by
selecting
File
Exploration
Comments.
36
Ranks Tab
The Ranks tab enables you to view, create, and edit ranks
to subset the data in the visualization. A rank selects
either the top (greatest) or the bottom (least) aggregated
value for a category.
To create a rank,
you can right-click
a data item and
select Add as Rank
in the Data pane, or
you can drag a data
item onto the Ranks tab in the Right pane.
37
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-18 Chapter 3 Using SAS Visual Analytics Explorer
38
39
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-19
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-20 Chapter 3 Using SAS Visual Analytics Explorer
42
43
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-21
When the cardinality is higher, more unique values exist for the data item.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-22 Chapter 3 Using SAS Visual Analytics Explorer
46
Demonstration
Use the CustomerOrders
data source to visualize
continent, gender, and
profit and display the
details.
47
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-23
Exercise
Use the ProductAnalysis data source to visualize
product line, profit, and quantity ordered and display the
details.
48
Visualizing Data
This demonstration illustrates how to open SAS Visual Analytics Explorer, select a data source, and create
a visualization.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar
or by selecting Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Click Create Exploration in the Create Content area.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-24 Chapter 3 Using SAS Visual Analytics Explorer
b. Select CustomerOrders.
c. Click Open.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-25
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-26 Chapter 3 Using SAS Visual Analytics Explorer
f. Click the Customer Age column in the Measures group of the Data pane.
g. Select Discrete for the Model type property.
h. Select Average for the Aggregation property.
i. Enter Average Age for the Name property.
9. Control the Data pane appearance.
By default, the data items in the Data pane are organized by classification and sorted in
descending order.
c. Select By First Letter.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-27
Notice how the data items are grouped in the Data pane.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-28 Chapter 3 Using SAS Visual Analytics Explorer
The automatic chart functionality determines the best way to display the selected data.
A bar is displayed for each value of continent. The height of the bars is based on the sum of
profit. Gender is used to display two columns of charts using a lattice.
The size and shape of the image above might not match what you see on the classroom
machine. The resolution of the computer, the size of the browser window, and the status
of the panes (expanded or collapsed) can affect the size of visualizations.
c. Move the cursor to the upper right corner of the visualization to see the action buttons.
d. Click (Hide lattice navigator) to hide the navigation tool that is displayed automatically
when the visualization contains a lattice.
e. Move the cursor to the upper right corner of the visualization again.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-29
f. Click (Show details) to display a table of the data used to create the graph.
The details are displayed at the bottom of the window. You can use the handle icon
( ) to resize the portions of the visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-30 Chapter 3 Using SAS Visual Analytics Explorer
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-31
If a tab is not displayed in the Right pane, click (List of tabs) on the right side and
select the tab name from the list.
c. Change 5 to 3. Use the down arrow.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-32 Chapter 3 Using SAS Visual Analytics Explorer
The visualization is updated to include only the top three continents with the highest profits.
Make sure that you do not select the File menu for the browser.
14. Click (Home Page) in the upper left corner to return to the Home Page.
The Customer Analysis exploration is displayed in addition to the exploration and report that you
opened earlier:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Selecting Data and Defining Data Item Properties 3-33
16. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-34 Chapter 3 Using SAS Visual Analytics Explorer
Select the following data items to use with the automatic chart visualization:
Product Line
Profit
Quantity Ordered
Modify the data item properties of Quantity Ordered to rename it as Quantity.
Use the Properties tab in the Right pane to modify the visualization properties as shown below.
Property Value
Objectives
List the types of available visualizations.
Create new visualizations.
Set visualization properties and roles.
53
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-35
54
Types of Visualizations
55
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-36 Chapter 3 Using SAS Visual Analytics Explorer
57
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-37
Visualization Properties
Each visualization has common
properties and might have
additional properties that are
specific to the visualization type.
59
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-38 Chapter 3 Using SAS Visual Analytics Explorer
Visualization: Table
The table visualization enables you to examine the raw
data for each row of the data source.
60
To change the sorting, click on the heading for the column that you want to sort by. An arrow appears in
the column heading to indicate the sorting. If the arrow points upward, then the sort is ascending. If the
arrow points downward, then the sort is descending.
Visualization: Crosstab
The crosstab visualization enables you to examine your
data using intersections of category values.
61
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-39
63
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-40 Chapter 3 Using SAS Visual Analytics Explorer
64
A forecast can
be added to
predict future
values.
65
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-41
66
67
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-42 Chapter 3 Using SAS Visual Analytics Explorer
A datetime value
enables you to
animate the bubble
plot over time.
69
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-43
71
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-44 Chapter 3 Using SAS Visual Analytics Explorer
Demonstration
Add four visualizations to the Customer Analysis
exploration and specify the visualization properties.
72
Exercise
Add a scatter plot and line chart visualization to the Profit
Analysis exploration.
73
This demonstration illustrates how to use SAS Visual Analytics Explorer to add additional visualization to
an existing exploration.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar
or by selecting Start All Programs Internet Explorer.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-45
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Single-click or right-click Customer Analysis in the My Content area.
The object inspector appears.
The star in the object inspector is displayed in yellow ( ) for items that are marked as
favorites.
8. Click Open to open the Customer Analysis exploration in the Explorer.
By default, the new visualization is added to the workspace alongside any visualizations that are
already displayed.
Minimized visualizations are displayed in the Dock panel at the bottom of the workspace.
The Manage visualizations button ( ) in the Dock panel provides options for working with
visualizations.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-46 Chapter 3 Using SAS Visual Analytics Explorer
17. Click (Table) on the toolbar to change the visualization type for Visualization 2.
You could also select Table from the drop-down list on the left side of the window bar.
18. Hold down the Ctrl key and select the following columns in order:
Customer Group
Customer Type
Order Type
Profit
19. Drag the selected columns to the blank table visualization window in the workspace.
20. Drag the line between the fields on the column heading in the table to change the column widths to
display all of the data values in each column.
The visualization resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-47
The bar at the bottom of the Right pane displays the percentage of the data that is available after
applying the filter.
Moving your cursor over a filter value displays the number of rows that contain that value.
30. Click (Minimize) on the window bar to minimize the 2011 Profit by Group and Order Type
visualization.
31. Click (Bubble plot) on the toolbar to set the visualization type.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-48 Chapter 3 Using SAS Visual Analytics Explorer
32. Hold down the Ctrl key and select the following columns in order:
Quantity
Profit
Retail Price
Month Name
33. Drag the selected columns to the blank visualization window in the workspace.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-49
39. Click (Minimize) on the window bar to minimize the Monthly Profit by Quantity visualization.
41. Drag Customer Group to the columns section (top) of the crosstab in the workspace.
42. Drag Continent to the rows section (left) of the crosstab in the workspace.
43. Drag Profit to the measures section (table) of the crosstab in the workspace.
47. Click (Minimize) on the window bar to minimize the Profit by Continent and Customer
Group visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-50 Chapter 3 Using SAS Visual Analytics Explorer
48. Click (Bar Chart) on the toolbar to set the visualization type.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-51
Exercises
If a message window appears, read the message, and click Yes to convert the
visualization to a heat map. The axis assignment might also change automatically.
Add Year as a local filter and select 2011 as the only value.
Hint: Because the model type for Year is set to continuous, the filter selector control is a slider
rather than check boxes. To select a single value, move both sliders to the same location,
or enter a value in the left or right text box.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-52 Chapter 3 Using SAS Visual Analytics Explorer
Property Value
Create a new visualization and set the visualization type to line chart.
Minimize the 2011 Quantity and Product Price Analysis visualization.
Duplicate the Year data item and name the copy Year Category.
Hint: Right-click Year in the Data pane and select Duplicate Data Item.
Change the Classification property for Year Category to Category.
Drag the following data items from the Data pane to the new visualization:
Year Category
Quantity
Add Product Line to the Group role.
Hint: Click the Roles tab in the Right pane.
Modify the following visualization properties:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-53
Property Value
Additional Visualizations
Many visualization types provide functionality that is
useful for exploring all types of data sources.
77
78
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-54 Chapter 3 Using SAS Visual Analytics Explorer
79
Visualization: Histogram
The histogram visualization enables you to view the
distribution of values for a single measure.
80
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-55
Visualization: Histogram
Consider the following when you use a histogram:
One measure is required.
81
82
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-56 Chapter 3 Using SAS Visual Analytics Explorer
83
84
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-57
85
86
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-58 Chapter 3 Using SAS Visual Analytics Explorer
88
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-59
Visualization: Treemap
A treemap visualization enables you to display a category
or hierarchy as a set of rectangular tiles. The size of each
tile represents either the
summarization of a
measure or the frequency
displayed as a count or
percent.
An additional measure
can be added to control
the color of each tile.
90
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-60 Chapter 3 Using SAS Visual Analytics Explorer
Visualization: Treemap
Consider the following when you use a treemap:
A category or hierarchy is required.
92
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-61
93
94
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-62 Chapter 3 Using SAS Visual Analytics Explorer
96
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-63
97
Word clouds that use category values analyze each value in a category data item as a single text string.
The word cloud can display either the string values that have the highest frequency or the string values
that have the greatest value for a measure. The color of each word can indicate the value of a measure.
Word clouds that use text analytics analyze each value in a document collection data item as a text
document that can contain multiple words. Words that often appear together in the document collection
are identified as topics. The word cloud displays the most relevant terms for each topic, where the size of
each term indicates the relevance.
To enable text analytics, you must set a unique row identifier and define one or more categories as
document collections.
Depending on the number of rows in your data source and the length of the values in your
document collection, a word cloud with text analytics might require a significant amount of time
to appear.
Text analytics in SAS Visual Analytics uses a different algorithm from SAS Text Miner. Your
results might be different from the results that SAS Text Miner produces.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-64 Chapter 3 Using SAS Visual Analytics Explorer
What Is a Hierarchy?
A hierarchy is a defined arrangement of categorical data
items based on parent-child relationships. The levels of
a hierarchy are arranged with more general information
at the top and more specific information at the bottom.
1 2 FEB MAY
2012
MAR JUN
JUL OCT
3 4 AUG NOV
SEP DEC
JAN APR
1 2 FEB MAY
2013 MAR
JUL
JUN
OCT
3 4 AUG NOV
SEP DEC
98
Managing Hierarchies
Clicking (Options) New Hierarchy in the Data pane
enables you to create a new hierarchy. The New
Hierarchy window enables you to name the hierarchy
and select the data items that make up a navigational
path through the data.
The pop-up menu for
hierarchy data items
provides the following
actions:
create a new hierarchy
edit a hierarchy
delete a hierarchy
99
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-65
100
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-66 Chapter 3 Using SAS Visual Analytics Explorer
102
103
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-67
Demonstration
Add a geo map and decision tree visualization to the
Customer Analysis exploration.
104
Exercise
Add a box plot, a heat map, and a word cloud to the Profit
Analysis exploration.
105
This demonstration illustrates how to use SAS Visual Analytics Explorer to create advanced
visualizations.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar
or by selecting Start All Programs Internet Explorer.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-68 Chapter 3 Using SAS Visual Analytics Explorer
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Double-click Customer Analysis in the My Content area to open it in the Explorer.
7. Click (Minimize) on the window bar to minimize the Profit Percentage by Order Type
visualization.
8. Modify data item properties.
a. Click the State Name column in the Data pane.
b. Change the classification to Geography in the data properties table.
The Geography Classification window appears.
c. Select US State Names for the Geography field.
d. Click OK.
9. Hold down the Ctrl key and select the following columns:
State Name
Profit
10. Drag the selected columns to the workspace.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-69
11. Click at the end of the warning message and select Show details.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-70 Chapter 3 Using SAS Visual Analytics Explorer
Disabling auto-update enables you to make several changes without having the visualizations
update with each change.
15. Clear the All check box for the local filter based on Country.
A message is displayed in the visualization so that you know that a data update is required.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-71
24. Click Use Geo Map at the top of the Roles tab.
The automatic chart visualization has only two roles, Categories and Measures. Changing the
visualization type can enable you to use other roles that are valid for that type of
visualization.
25. Select Regions for the Map style field.
The updated visualization should resemble the following:
The warning message is displayed because there are two data values for State Name that still
do not match the US States geographical role.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-72 Chapter 3 Using SAS Visual Analytics Explorer
27. Click (Minimize) on the window bar to minimize the US Profit by State visualization.
28. Click (Decision tree) on the toolbar to set the visualization type.
29. Select Quantity in the Data pane and drag it to the workspace.
There are 951,669 rows of data, and the average number of items ordered is 2. Test some predictors to
see what might be behind this number.
30. Hold down the Ctrl key and select the following columns in order:
Discount
Retail Price
Month Name
These columns were selected because these values might explain the top value.
31. Drag the selected columns to the workspace to determine how they contribute to Quantity.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-73
The ability to see the boxes of information about the branches is based on the resolution of
your computer, the size of the browser window, and the status of the Data and Right panes.
You can use the Details view to view the information contained in the boxes even if the boxes
are not displayed.
The top value is Retail Price, which means that it is the best data item to explain the quantity
ordered. The value $858.47 was determined to be the split factor as indicated at the top of the next
level.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-74 Chapter 3 Using SAS Visual Analytics Explorer
32. After Retail Price, the model determined that Discount was the second factor. Move your mouse
pointer to Discount in both branches to view more information.
45% was determined to be the split factor.
33. Based on the size of the branches, it is clear that the months of April, May, June, July, and August
contribute significantly to Quantity at this level of the tree. Position your mouse pointer on the April,
May, June, July, August box of the decision tree to view the details.
34. Click the Roles tab in the Right pane to add more predictors to the analysis.
The decision tree is updated. Gender has the least effect of all the predictors.
Because of the size of the tree, the data value boxes are no longer displayed.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-75
The decision tree is updated. Order Type has more effect than Gender.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-76 Chapter 3 Using SAS Visual Analytics Explorer
39. Using the overview, you can select the portion to focus on. Resize the selector square and select a few
of the nodes at the bottom portion of the decision tree.
40. Because Gender is the least significant predictor, click the Roles tab. Right-click Gender in the
predictor list and select Remove Gender.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-77
The decision tree is updated. Use the overview tool to look at the changes.
With Gender: Without Gender:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-78 Chapter 3 Using SAS Visual Analytics Explorer
A histogram visualization is created and shows the distribution of Quantity for a node in the tree.
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-79
Create a new visualization and set the visualization type to box plot.
Minimize the Quantity by Year and Product Line visualization.
Drag the following data items from the Data pane to the new visualization in order:
Product Line
Cost
Create a local filter where Supplier Continent is equal to Australia/Pacific.
Modify the following visualization properties:
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-80 Chapter 3 Using SAS Visual Analytics Explorer
Create a new visualization and set the visualization type to heat map.
Minimize the Cost by Product Line for Australia/Pacific visualization.
Drag the following data items from the Data pane to the new visualization:
Product Line
Supplier Country
Add Supplier Continent as a local filter and select Europe as the only value.
Modify the following visualization properties:
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Visualizations 3-81
Create a new visualization and set the visualization type to word cloud.
Minimize the European Supplier Analysis visualization.
Drag Product Group from the Data pane to the new visualization and select Words for the
role type.
Drag Profit from the Data pane to the new visualization.
Modify the following visualization properties:
Property Value
Font scale 5
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-82 Chapter 3 Using SAS Visual Analytics Explorer
Objectives
Describe the types of data analyses available in
SAS Visual Analytics Explorer.
Explore the correlations capabilities in the Explorer.
Explore the types of fit lines that can be applied to
visualizations.
Explore the forecasting capabilities in the Explorer.
Describe how text analytics can enhance word cloud
visualizations.
110
Type of Analytics
SAS Visual Analytics enables you to perform four types of
data analyses in the Explorer:
Correlation Identifies the degree of statistical
correlation between measures.
Fit Line Plots a model of the relationship
between measures.
Forecasting Predicts future values based on the
statistical trends in your data.
Text Analyzes each value in a document
Analytics collection as a text document that can
contain multiple words. Words that often
appear together in the document
collection are identified as topics.
111
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-83
Understanding Analytics
The Details view of some visualizations contains an
Analysis tab when you perform the different types of
analyses. The Analysis
tab explains what the
analysis means.
Clicking the icon
displays the Details
view.
Depending on the type
of analysis, additional
information such as
forecasting algorithm
might be displayed.
112
Correlations
A correlation identifies the
degree of statistical
correlation between
measures. The strength
of a correlation is
described as a number
between -1 and 1.
113
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-84 Chapter 3 Using SAS Visual Analytics Explorer
114
115
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-85
Fit Lines
A fit line plots a model of the relationship between
measures. You can add a fit line to a scatter plot or heat
map by using the pop-up menu or the Fit Line option
on the Properties tab in the Right pane.
The Details view explains the
details of the analysis.
116
Type Description
Best Fit Tests the cubic, quadratic, and linear fit methods against your data and selects the fit
method that produces the best result. To see which fit method was used, select the
information icon from the visualization legend.
Linear Creates a linear fit line from a linear regression algorithm. A linear fit line produces the
straight line that best represents the relationship between two measures. For a linear fit,
correlation is automatically added to the visualization.
Quadratic Produces a line with a single curve. A quadratic fit line often produces a line with the
shape of a parabola.
Cubic Produces a line with two curves. A cubic fit line often produces a line with an S shape.
PSpline Creates a penalized B-spline fit. A penalized B-spline is a smoothing spline that fits the
data closely. A penalized B-spline can display a complex line with many changes in its
curvature.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-86 Chapter 3 Using SAS Visual Analytics Explorer
117
The correlation in heat maps and scatter plots is identified by a text label in the visualization legend.
A scatter plot matrix displays the correlation using a colored border around the plot. The visualization
legend displays a key for the color values.
Correlation and a linear fit line are automatically applied to the visualization. When two measures are
selected, the values are displayed as a scatter plot or heat map (for high-cardinality values). When three
or more measures are selected, the values are displayed in a scatter plot matrix or a correlation matrix
(for high-cardinality values).
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-87
Forecasting
Forecasting predicts future values based on the statistical
trends in your data.
A forecast adds a line
with a predicted value
and a colored band
that represents the
95% confidence
interval.
118
No forecasting is available if data items are assigned to the Group, Lattice columns, or Lattice
rows roles.
The forecasting duration (in intervals) can be selected on the Properties tab of the Right pane. The
default duration is six intervals.
Your data is tested against the following forecasting methods and the best one is automatically applied:
damped-trend exponential smoothing
linear exponential smoothing
seasonal exponential smoothing
simple exponential smoothing
Winters method (additive)
Winters method (multiplicative)
The RMSE (Root Mean Square Error) test is used to determine the best method.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-88 Chapter 3 Using SAS Visual Analytics Explorer
Creating Forecasts
Selecting Analysis Forecast from the menu bar
displays the Forecast window. Selecting measures and
clicking OK creates a new visualization.
120
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-89
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-90 Chapter 3 Using SAS Visual Analytics Explorer
Document
collection
123
A document collection can be used in your visualizations the same way as a category.
See Appendix 5 of the SAS Visual Analytics 6.4: Users Guide for a list of data limits for each type of
visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-91
Demonstration
Add a correlation matrix and forecast to the Customer
Analysis exploration.
125
Exercise
Add visualizations to the Profit Analysis exploration. Add
analytics to each visualization and view the resulting
analysis.
126
This demonstration illustrates how to add different types of analytics to an existing exploration.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar
or by selecting Start All Programs Internet Explorer.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-92 Chapter 3 Using SAS Visual Analytics Explorer
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Double-click Customer Analysis in the My Content area.
7. Click (Minimize) on the window bar to minimize the Quantity Decision Tree visualization.
You can also drag items from the operators list onto the workspace.
g. Drag Quantity to the workspace and drop it into the second drop zone.
The expression should resemble the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-93
4) Click OK.
i. Click OK to close the New Calculated Item window.
9. Create a correlation.
a. Verify that there are no visualizations displayed in the workspace.
c. Select Cost, hold down the Ctrl key, and select Profit, Quantity, Retail Price, and Total
Product Cost.
d. Drag them onto the workspace.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-94 Chapter 3 Using SAS Visual Analytics Explorer
e. Click (About these correlation results) in the bottom right corner to view the details.
f. Select (Close details) in the top right corner of the visualization to close the details view.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-95
d. Click OK.
e. Click the Properties tab.
1) Click Forecast for first six months of 2012 in the Name field.
2) Clear the Generate graph titles check box.
3) Clear the value in the Title field.
4) Click Show markers.
The visualization should resemble the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-96 Chapter 3 Using SAS Visual Analytics Explorer
f. Click (About these forecast results) to view information about the forecast.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-97
c. Select Quantity.
Position your mouse pointer over Discount in the Underlying factor field to view a data
tip that explains why this value was not added to the scenario analysis.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-98 Chapter 3 Using SAS Visual Analytics Explorer
4) Click OK.
5) Click Update.
The forecast is updated to show the results of the scenario.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-99
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-100 Chapter 3 Using SAS Visual Analytics Explorer
Create a new visualization and set the visualization type to line chart.
Minimize the Word Cloud of Product Group visualization.
Drag the following data items from the Data pane to the new visualization:
Month Name
Cost
Format Month Name to use the MMMYYYY format.
Modify the following visualization properties:
Property Value
Title <clear>
d. Add a forecast to the visualization and view information about the analysis.
Modify the following visualization properties:
Property Value
Duration 9
Confidence 90
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Enhancing Visualizations with Analytics 3-101
Create a new visualization and set the visualization type to heat map.
Minimize the Cost Forecast visualization.
Drag the following data items from the Data pane to the new visualization:
Profit
Quantity
Add a fit line to the visualization and view the information provided.
Hint: Right-click in the visualization and select Fit Line Best Fit.
g. Save the updated exploration and use the same name.
h. Log off from SAS Visual Analytics.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-102 Chapter 3 Using SAS Visual Analytics Explorer
Objectives
Define the process for changing or refreshing the data
for the exploration.
List various ways of interacting with visualizations and
explorations.
State the differences between exporting an exploration
as a PDF and exporting the exploration as a report.
Describe the process for e-mailing a link to an
exploration from SAS Visual Analytics.
131
132
132
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-103
133
a filter or rank
134
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-104 Chapter 3 Using SAS Visual Analytics Explorer
135
136
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-105
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-106 Chapter 3 Using SAS Visual Analytics Explorer
139
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-107
Exporting Data
There are several ways to export your explorations and
visualizations.
Explorations
You can export an exploration as a PDF.
Visualizations
You can export an image of a visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-108 Chapter 3 Using SAS Visual Analytics Explorer
143
continued...
network diagrams
word clouds
144
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-109
145
146
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-110 Chapter 3 Using SAS Visual Analytics Explorer
147
148
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-111
Data Brushing
Clicking (Use data brushing mode) on the toolbar
enables you to click items in a visualization and display
related items in the
other visualizations.
Not all visualizations
support data brushing.
149
Exploration Properties
Selecting File Exploration Properties enables you
to view the exploration properties and edit the description
and keywords.
150
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-112 Chapter 3 Using SAS Visual Analytics Explorer
Demonstration
This demonstration shows you how to do the following:
create a geographic hierarchy and use it with an
existing visualization
create another hierarchy and a new visualization
151
continued...
Exercise
During this exercise, you create a hierarchy and use
it in existing visualizations.
153
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-113
Exercise
During this exercise, you will create a new visualization,
create a copy of the exploration and manage the
visualizations in both explorations.
154
This demonstration illustrates creating hierarchies and exploring the exploration as a PDF.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar
or by selecting Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Double-click Customer Analysis in the My Content area.
7. Click (Minimize) on the window bar to minimize the Forecast for first six months of 2012
visualization.
8. Modify data item properties.
a. Right-click Postal code in the Data pane to select it.
b. Select Geography US ZIP Codes.
9. Create a new hierarchy to navigate through the data.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-114 Chapter 3 Using SAS Visual Analytics Explorer
e. Click OK.
10. Use the new hierarchy in the US Profit by State visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-115
a. Click in the Dock panel and select the US Profit by State visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-116 Chapter 3 Using SAS Visual Analytics Explorer
g. Double-click the bubble on Hawaii to navigate to the next level of the hierarchy, Postal code.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-117
e. Click OK.
12. Create a new visualization. Use the hierarchy.
a. Hold down the Ctrl key and select the following columns:
World Hierarchy
Profit
b. Drag the selected columns to the workspace.
The visualization resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-118 Chapter 3 Using SAS Visual Analytics Explorer
c. Double-click the bar for Europe to navigate to the next level of the hierarchy, Country.
d. Use the overview axis to locate the bar for Switzerland. Click in the white box on the overview
axis and drag to the right.
The overview chart might not be displayed. It depends on your resolution and browser
window size. In Internet Explorer, you can press F11 to toggle to full-screen mode.
e. Double-click the bar for Switzerland to navigate to the next level of the hierarchy, City.
You can also single click the value on the axis, such as Switzerland, to navigate to the
next level of data. This is helpful when height of the bar makes it difficult to click on.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-119
f. Place the cursor on Switzerland in the navigation tools above the chart.
g. Click the arrow and select Denmark.
h. Click All World Hierarchy to display values for the top of the hierarchy, Continent.
i. Click the Properties tab in the Right pane.
j. Enter Profit by World Hierarchy in the Name field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-120 Chapter 3 Using SAS Visual Analytics Explorer
a. Click (Maximize view) on the toolbar to collapse the Right and Left panes.
f. Click (Manage Visualizations) in the Dock panel and select Manage Visualizations.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-121
g. Select the Monthly Profit by Quantity visualization in the Available pane and click to
move it to the Selected pane.
h. Select the 2011 Profit by Group and Order Type visualization in the Available pane and click
to move it to the Selected pane.
i. Select the Monthly Profit by Quantity visualization in the Selected pane on the right size of the
Manage Visualization window and click to move it to the top.
j. Click OK.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-122 Chapter 3 Using SAS Visual Analytics Explorer
k. Drag the Profit Percentage by Order Type visualization from the Dock panel to the workspace
until the drop zone is below the Profit by World Hierarchy and 2011 Profit by Group and
Order Type visualizations.
l. Click (Manage visualizations) in the Dock panel and select US Profit by State. The
visualization is minimized in the Dock panel.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-123
m. Click the Monthly Profit by Quantity visualization and move it to the right size of the Profit
Percent by Order Type visualization by dragging the window bar to the desired drop zone.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-124 Chapter 3 Using SAS Visual Analytics Explorer
d. Move your pointer over the icon for the 2011 Profit by Group and Order Type visualization to
display information about why it cannot be exported to a PDF.
f. Click Finish.
g. When you are prompted, select the desktop as the location to save the PDF.
h. Click Save.
16. Click Log Off to log off from SAS Visual Analytics.
17. Close the browser window.
18. View the Customer Analysis PDF.
a. Double-click the Customer Analysis PDF on the desktop to open it.
b. Use the scroll bars and the bookmarks to view all of the pages of the PDF.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-125
c. Select File Exit when you are finished viewing the PDF.
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-126 Chapter 3 Using SAS Visual Analytics Explorer
If necessary, click in the Dock panel. Select Minimize All Visualizations to display an
empty workspace.
Drag the following data items from the Data pane to the workspace:
Supplier Country
Profit
Modify the visualization property:
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Interacting with Visualizations and Explorations 3-127
Before beginning this step, make sure that you have saved the exploration.
Use the Save As option to save a second copy of the exploration named Supplier Analysis in
the Shared Data location.
Click (Maximize view) on the toolbar to collapse the Right and Left panes.
Click (Manage Visualizations) in the Dock panel and select Show All Visualizations.
Delete the following visualizations:
Profit and Quantity by Product Line
Quantity by Year and Product Line
Cost by Product Line for Australia/Pacific
Cost Forecast
2011 Quantity and Product Price Analysis
Word Cloud of Product Group
Visualization 1
Rearrange the two remaining visualizations to resemble the following:
Hint: Click (Options) from the right side of the window bar of the Profit by Supplier
Country visualization.
Select File Close to close the exploration and click Save if prompted.
Select File Recent Product Analysis to open the exploration.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-128 Chapter 3 Using SAS Visual Analytics Explorer
Click (Maximize view) on the toolbar to collapse the Right and Left panes.
Click (Manage Visualizations) in the Dock panel and select Show All Visualizations.
Delete the following visualizations:
Profit by Supplier Country
European Supplier Analysis
Visualization 1
If necessary, click in the Profit and Quantity by Product Line visualization to close the
details view.
Rearrange the visualizations to resemble the following:
The 2011 Quantity and Product Price Analysis visualization is minimized to the Dock
pane.
Save the updated exploration.
h. Log off from SAS Visual Analytics.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-129
2) From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS
Visual Analytics logon page appears.
3) Enter Eric in the User ID field.
4) Enter Student1 in the Password field.
5) Click Log On.
b. Explore the ProductAnalysis data source.
1) Click Create Exploration in the Create Content area.
2) Click Select a Data Source.
3) Select ProductAnalysis.
4) Click Open.
5) Hide two columns so that they are not displayed in the Data pane.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-130 Chapter 3 Using SAS Visual Analytics Explorer
What you see on your classroom machine might have a different size and layout than
what is shown above.
8) Modify data item properties.
a) Select Quantity Ordered in the Data pane.
b) Enter Quantity in the Name field.
9) Modify the visualization properties.
a) Click the Properties tab in the Right pane.
b) Enter Profit and Quantity by Product Line in the Name field.
c) Clear the Generate graph titles check box.
d) Clear the text in the Title field.
e) Click the Show data labels check box.
10) Click (Show details) to display a table of the data used to create the graph.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-131
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-132 Chapter 3 Using SAS Visual Analytics Explorer
2) Click (Minimize) on the window bar to minimize the Profit and Quantity by Product
Line visualization.
4) Drag Quantity from the Data pane to the Measure placeholder for the X axis in the
visualization.
The Explorer displays a message that indicates that there is too much data to display.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-133
b) Drag Year from the Data pane to the Local Filters section on the Filters tab.
c) Move the left slider all the way to the right to select only 2011.
3) Click (Minimize) on the window bar to minimize the 2011 Quantity and Product Price
Analysis visualization.
4) Duplicate the Year data item and name the copy Year Category.
a) Right-click Year in the Data pane and select Duplicate Data Item.
b) Enter Year Category in the Name field.
c) Click OK.
5) Change the Classification property for Year Category to Category.
a) Select Year Category in the Data pane.
b) Change the value for the Classification property to Category.
6) Hold down the Ctrl key and select Year Category and Quantity in the Data pane.
7) Drag the selected data items to the new visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-134 Chapter 3 Using SAS Visual Analytics Explorer
8) Add Product Line to the Group role. Use the Roles tab in the Right pane.
a) If necessary, click the Roles tab in the Right pane.
b) Drag Product Line from the Data pane to the Group role on the Roles tab.
9) Modify the visualization properties.
a) Click the Properties tab in the Right pane.
b) Enter Quantity by Year and Product Line in the Name field.
c) Click Show markers.
The visualization resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-135
3) Click (Minimize) on the window bar to minimize the Quantity by Year and Product
Line visualization.
4) Hold down the Ctrl key and select Product Line and Cost in the Data pane.
5) Drag the selected data items to the new visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-136 Chapter 3 Using SAS Visual Analytics Explorer
Detailed information is displayed when you move the cursor over each of the boxes:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-137
3) Click (Minimize) on the window bar to minimize the Cost by Product Line for
Australia/Pacific visualization.
4) Hold down the Ctrl key and select Product Line and Supplier Country in the Data pane.
5) Drag the selected data items to the new visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-138 Chapter 3 Using SAS Visual Analytics Explorer
3) Click on the window bar to minimize the European Supplier Analysis visualization.
4) Drag Product Group from the Data pane to the new visualization.
5) Select Words as the role type.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-139
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-140 Chapter 3 Using SAS Visual Analytics Explorer
3) Click (Minimize) on the window bar to minimize the Word Cloud of Product Group
visualization.
4) Hold down the Ctrl key and select Month Name and Cost in the Data pane.
5) Drag the selected data items to the new visualization.
6) Change the format for Month Name to use the MMMYYYY format.
a) Click Month Name in the Data pane.
b) In the properties table, select MMMYYYY as the format.
c) Click OK.
7) Click the Properties tab.
a) Enter Cost Forecast in the Name field.
b) Clear the Generate graph titles check box.
c) Clear the text in the Title field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-141
5) Click (About these forecast results) to view information about the forecast.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-142 Chapter 3 Using SAS Visual Analytics Explorer
3) Click (Minimize) on the window bar to minimize the Cost Forecast visualization.
4) Hold down the Ctrl key and select Profit and Quantity in the Data pane.
5) Drag the selected data items to the new visualization.
The visualization should resemble the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-143
6) Add a fit line to the visualization and view the information provided.
a) Right-click in the visualization and select Fit Line Best Fit.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-144 Chapter 3 Using SAS Visual Analytics Explorer
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-145
5) Click OK.
e. Modify visualizations to use the new hierarchy.
1) Click (Manage Visualizations) in the Dock panel. Select Minimize All Visualizations.
2) Click Profit and Quantity by Product Line in the Dock panel to view it.
3) Click the Roles tab in the Right pane.
4) Click next to the Categories field and select Replace Product Line Product
Hierarchy.
5) Double-click a bar for Sports to navigate to the next level of data.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-146 Chapter 3 Using SAS Visual Analytics Explorer
The top of the visualization is updated to display for which level of the hierarchy you are
viewing data values.
8) Click All Product Hierarchy to return to the top level of the hierarchy.
9) Click (Minimize) on the window bar to minimize the Profit and Quantity by Product
Line visualization.
10) Click European Supplier Analysis in the Dock panel to view it.
11) Click the Roles tab in the Right pane.
12) Click next to the X-axis value and select Replace Product Line Product Hierarchy.
13) Double-click the box for United Kingdom and Sports to navigate to the next level of data.
14) Click (Minimize) on the window bar to minimize the European Supplier Analysis
visualization.
f. Create a new visualization.
1) If necessary, click in the Dock panel. Select Minimize All Visualizations to display an
empty workspace.
2) Hold down the Ctrl key and select Supplier Country and Profit in the Data pane.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-147
Before beginning this step, make sure that you have saved the exploration.
2) Click (Maximize view) on the toolbar to collapse the Right and Left panes.
3) Click (Manage Visualizations) in the Dock panel and select Show All Visualizations.
4) Click X in the title bar of the Profit and Quantity by Product Line visualization to delete it.
5) Click Delete when prompted to confirm the deletion.
6) Delete the following visualizations:
Quantity by Year and Product Line
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-148 Chapter 3 Using SAS Visual Analytics Explorer
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.6 Solutions to Exercises 3-149
The button on the application bar does not have an asterisk indicating that changes
have been made since the last save. Creating and interacting with exploration
comments does not require the exploration to be saved. When you click Post, the
comment is saved.
14) Click (Options) from the right size of the menu bar of the Profit by Supplier Country
visualization.
You can also use the arrow button next to the Home Page button to select Recent
items.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-150 Chapter 3 Using SAS Visual Analytics Explorer
20) Click (Maximize view) on the toolbar to collapse the Right and Left panes.
21) Click (Manage Visualizations) in the Dock panel and select Show All Visualizations.
23) If necessary, click (Hide details) in the Profit and Quantity by Product Line
visualization to close the details view.
24) Rearrange the visualizations to resemble the following:
The 2011 Quantity and Product Price Analysis visualization is minimized to the
Dock pane.
25) Select File Save to save the updated exploration.
h. Click Log Off to log off from SAS Visual Analytics.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 4 Designing Reports with
SAS Visual Analytics
4.1 Examining the SAS Visual Analytics Designer Interface ............................................ 4-3
4.3 Creating Data Items and Working with Graphs ......................................................... 4-29
Demonstration: Working with Graphs: Part 1....................................................................... 4-40
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Examining the SAS Visual Analytics Designer Interface 4-3
Objectives
Describe the features of SAS Visual Analytics
Designer.
List the ways to access SAS Visual Analytics
Designer.
Identify the components of the SAS Visual Analytics
Designer interface.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-4 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Examining the SAS Visual Analytics Designer Interface 4-5
menu bar
Left Right
pane pane
11 canvas
The application bar enables you to return to the Home Page and easily switch between open items.
The menu bar enables you to access common tasks and access online Help.
The toolbar contains icons for working with the report.
The Left pane enables you to work with new report objects, data, and imported report objects.
The Right pane enables you to work with details about the report and report objects.
The canvas is the workspace for building reports.
12
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-6 Chapter 4 Designing Reports with SAS Visual Analytics
sort Items
group Items by
first letter
data type
classification
format
aggregation
14
14
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Examining the SAS Visual Analytics Designer Interface 4-7
15
Designer Canvas
The canvas is the workspace for building a report. The
canvas can contain one or more report sections. Each
section can have one or more report objects and one or
more section prompts that filter the objects in the section.
report section
sections prompt
16
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-8 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Examining the SAS Visual Analytics Designer Interface 4-9
Properties Tab
The Properties tab lists the properties for the currently
selected object. All report
objects share some common
properties. Most report objects
have other properties that are
specific to that type of object.
19
20
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-10 Chapter 4 Designing Reports with SAS Visual Analytics
Styles Tab
The Styles tab enables you to
specify styles for the selected
report object.
frame styling
text styling
data colors
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Examining the SAS Visual Analytics Designer Interface 4-11
23
24
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-12 Chapter 4 Designing Reports with SAS Visual Analytics
Interactions Tab
The Interactions tab enables you to view, create, and edit
interactions and links for the selected object. Clicking
Interactions View displays the
interactions view in the workspace.
You can also manage interactions
from the interactions view.
25
Comments Tab
The Comments tab enables you to view and reply to
existing comments, as well as add new comments.
Role-based capabilities
determine who can edit
and delete comments.
26
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Examining the SAS Visual Analytics Designer Interface 4-13
Ranks Tab
The Ranks tab enables you to view, create, and edit ranks
for the selected report object.
You can specify how many values to display from the top
or the bottom of the data based on a specific
measure.
27
Alerts Tab
The Alerts tab enables you to
view, create, and edit alerts
for the selected report object.
28
28
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-14 Chapter 4 Designing Reports with SAS Visual Analytics
Auto-Update
Above the canvas, there is an
Auto-update check box. You can
clear this check box so that you can design your report
and defer data-based changes to the report objects.
When you are finished designing your report, select the
Auto-update check box to run and refresh all of the
objects.
29
29
Objectives
Access the Designer from the Home Page.
Select data for a report.
Add a pie chart graph object.
Assign data items to the pie chart graph object.
Save a report.
32
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Creating a Simple Report 4-15
33
Each report can contain multiple sections. Each report section can use multiple data sources.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-16 Chapter 4 Designing Reports with SAS Visual Analytics
Role-based capabilities
determine whether you
can import data and the
type of data that you
can import.
35
35
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Creating a Simple Report 4-17
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-18 Chapter 4 Designing Reports with SAS Visual Analytics
Report Layout
There are two report layout types available in SAS Visual
Analytics Designer.
Tile Provides a grid that
(default) enables you to place Use the Properties tab to
report objects next to set the layout choice for
other report objects. each section of the
report.
Precision Enables you to
control the exact
placement and size
of the report objects.
Report objects can
overlap other report
objects in the
precision layout.
39
When you use the precision layout, each report object enables you to specify size and position properties:
The toolbar displays the Arrange and Sizing menus when you use the precision layout:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Creating a Simple Report 4-19
Graphs
Gauges
Controls
Containers
Other
You can control which objects are displayed by selecting (Options) Show or Hide Objects.
The ability to open the SAS Visual Analytics Graph Builder is based on capabilities assigned by
your IT administrator.
41
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-20 Chapter 4 Designing Reports with SAS Visual Analytics
43
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Creating a Simple Report 4-21
Saving a Report
To save a report, select File Save or click (Save
report). If you are saving a new report, the Save As
window appears.
Demonstration
Create a new report, select a data source, specify data
item properties, and add two pie charts that show yearly
and quarterly profit.
45
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-22 Chapter 4 Designing Reports with SAS Visual Analytics
Exercise
Create a new report, select a data source, and add a pie
chart that show profit by product category.
46
This demonstration illustrates creating a simple report by selecting a data source, specifying data item
properties, adding a pie chart object, assigning data items to the pie chart, and then saving the report.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Click Create Report in the Create Content area.
SAS Visual Analytics Designer appears.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Creating a Simple Report 4-23
b. Click (Add data source) on the Data tab in the Left pane.
c. Select CustomerOrders.
d. Click Add.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-24 Chapter 4 Designing Reports with SAS Visual Analytics
c. Select Category.
d. Click Quarter on the Data tab.
e. Select Category as the value for the Classification property.
9. Add a pie chart to the canvas.
a. Click the Objects tab in the Left pane.
b. Drag the Pie Chart graph object from the Objects tab on the Left pane to the canvas.
A pie chart is added to the report canvas.
The icon in the lower right corner indicates that the required roles have not been
assigned a data item. Until the required roles are assigned, a placeholder is displayed on
the report canvas.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Creating a Simple Report 4-25
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-26 Chapter 4 Designing Reports with SAS Visual Analytics
b. Drag the Pie Chart graph object from the Objects tab in the Left pane to the canvas.
When the canvas already contains objects, drop zones are highlighted in green as you move the
mouse pointer around the canvas.
c. Drop the pie chart graph object into the drop zone at the bottom of the window.
Dropping a data item directly onto a drop zone bypasses the assignment window.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Creating a Simple Report 4-27
The resolution of the computer, the size of the browser window, and the pane status
(expanded or collapsed) all impact how the different report objects are displayed. What
you see in the classroom might not match what is printed in the book.
12. Save the report.
a. Select File Save As.
b. If necessary, select the Shared Data folder.
c. Enter Customer Analysis Report in the Name field.
d. Click Save.
13. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-28 Chapter 4 Designing Reports with SAS Visual Analytics
Select the ProductAnalysis table as the data source for the report.
Add a pie chart to the report to display Profit by Product Category.
Sort Product Category in ascending order.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-29
Objectives
List the type of data items that can be created.
Create calculated items and aggregated measures.
Create data items that display percent of total or time-
based values.
Create hierarchies.
Create custom category and distinct count data items.
List the types of graph report objects and describe the
properties and styles that apply to each.
Describe the expression editor interface.
51
aggregated measure
time-based calculation
percent of total
hierarchy
custom category
distinct count
52
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-30 Chapter 4 Designing Reports with SAS Visual Analytics
54
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-31
Difference from Displays the difference between the value for the current time period and the
Previous Period value for the previous time period. For example, you might derive the difference
between sales for the current month and sales for the previous month.
Difference from Displays the difference between the value for the current time period and the
Previous Parallel value for the previous parallel time period within a larger time interval. For
Period example, you might derive the difference between sales for the current month
and sales for the same month of the previous year.
Percent Difference Displays the percentage difference between the value for the current time period
from Previous Period and the value for the previous time period.
Percent Difference Displays the percentage difference between the value for the current time period
from Previous Parallel and the value for the previous parallel time period within a larger time interval.
Period
Period to Date Displays the aggregated value for the current time period and all of the previous
time periods within a larger time interval.
Year to Date Displays the aggregated value for the current time period and all of the previous
time periods within the year.
Year to Date Growth Displays the percentage difference between the year-to-date value for the
current time period and the year-to-date value for the same time period of the
previous year. The year-to-date calculation subsets the data for each year using
todays date (where today is evaluated each time you view the exploration). To
use all data for every period, use a Period to Date item or edit the expression for
the derived item.
Year over Year Growth Displays the percentage difference between the current time period and an
equivalent time period from the previous year.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-32 Chapter 4 Designing Reports with SAS Visual Analytics
Right-click the
measure and
select Create
Percent of Total.
Right-clicking an
existing hierarchy on the
Data tab enables you to
perform these actions
on that hierarchy:
edit
hide
delete
57
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-33
59
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-34 Chapter 4 Designing Reports with SAS Visual Analytics
Building Expressions
When creating new calculated data items, aggregated
measures, or distinct counts, you build the expression
using the expression editor.
name workspace
Data Items
list
Operators
list
Scratch
Messages tab
tab
64
When building the expression for a calculated item, the Data Items list organizes the data items by
Character, Date, and Numeric. When building expressions for aggregated measures and distinct counts,
the Data Items list organizes data items by Aggregated Measure, Category, and Measure.
The workspace is where the expression is built. You can drag and drop items from Data Items list,
Operators list, and Scratch tab. The workspace has two views, Visual and Text.
The Data Items list enables you to add data source items to the expression. The Operators list enables you
to add many types of operators to the expression. To add items from these lists to the expression, double-
click or drag values onto the workspace.
Detailed information about each type of operator is available in Appendix 3 of the SAS Visual Analytics
6.4: Users Guide.
The name can be up to 60 characters.
The expression is automatically evaluated as you make changes. If the expression is not valid, then an
error appears on the Messages tab, and the OK button is disabled.
The Scratch tab enables you to store elements of an expression and then add them back into the
expression using the drag-and-drop method. Items on the Scratch tab can be deleted by clicking
(Delete item).
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-35
Types of Graphs
Multiple graph objects are available in the Designer.
bar charts bubble plots
targeted bar charts treemaps
waterfall charts dual axis bar charts
line charts dual axis line charts
pie charts dual axis bar-line charts
scatter plots dual axis time series plots
time series plots
65
Title
Description
If you enter a title, you can control how the values are
displayed by specifying the title format properties.
66
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-36 Chapter 4 Designing Reports with SAS Visual Analytics
frame styling
text styling
data colors
68
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-37
legend properties
70
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-38 Chapter 4 Designing Reports with SAS Visual Analytics
73
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-39
72
72
Demonstration
Create a new data item
that shows the percent of
total profit.
74
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-40 Chapter 4 Designing Reports with SAS Visual Analytics
Exercise
Add quantity as an
additional measure to
the pie chart and set the
grouping style to display
multiple charts.
75
This demonstration illustrates how to add graph objects to a report and work with the graph object
properties and styles.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Change the order of action to enable a report to be opened in the Designer by double-clicking it from
the My Content area of the Home Page.
a. Select Edit Preferences in the Common Actions section in the Right pane.
b. Select Home in the selection list on the left side of the Preferences window.
c. Select SAS report (2G).
d. Select Edit SAS Visual Analytics Designer.
e. Click (Move up) to move the selected item to the top of the list.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-41
The first action listed is the action that is performed when double-clicking the item in the My
Content area on the Home Page.
9. Click X to close the object inspector.
10. Double-click Customer Analysis Report to open it in the Designer.
11. Click the Data tab.
12. On the Data tab, right-click Profit and select Create Percent of Total.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-42 Chapter 4 Designing Reports with SAS Visual Analytics
Profit (Percent of Total) is created and listed in the Aggregated Measure group in the Data pane.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-43
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-44 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-45
22. Specify properties and styles for the first pie chart.
a. Click the first pie chart (Pie Chart 1) to select it.
b. Click the Properties tab in the Right pane.
c. Enter Profit by Year in the Name field.
d. Click the Show category labels check box.
e. Clear the Create Other slice for minimal values check box.
f. Click the Styles tab in the Right pane.
g. Select Gloss in the Data skin field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-46 Chapter 4 Designing Reports with SAS Visual Analytics
j. Click (Select a font color) next to the Value category and select the white color.
23. Specify properties and styles for the second pie chart.
a. Click the object selector at the top of the Right pane and select Pie Chart 2.
The Pie Chart 2 becomes the selected item on the report canvas.
b. Select Gloss in the Data skin field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-47
h. Click (Select a font color) next to the Value category and select the white color.
24. Select File Save to save the updated report using the same name.
25. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-48 Chapter 4 Designing Reports with SAS Visual Analytics
Exercises
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-49
Change the classification property for the Quarter data item to Category.
Add a line chart below the pie chart and specify the following properties and styles:
Quarter Category
Profit Measure
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-50 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-51
80
81
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-52 Chapter 4 Designing Reports with SAS Visual Analytics
Demonstration
Create a customer hierarchy. Add a treemap report object
that displays profit and cost by customer. Use the
hierarchy to navigate through the levels in the treemap.
Add an additional
measure to the
data tips that is
displayed when
you move your
mouse pointer
over a tile.
Assign properties
and styles to the
treemap.
82
Exercise
Create a new report, select a
data source, and create a
product hierarchy.
83
This demonstration illustrates how to create hierarchies, add graph objects to a report, and work with the
graph object properties and styles.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-53
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Click Create Report in the Create Content area.
7. Select a data source for the report.
a. Click the Data tab.
b. Click (Add data source) on the Data tab in the Left pane.
c. Select CustomerOrders.
d. Click Add.
8. Create a new hierarchy for Customer Group Name, Customer Gender, and Customer Age Group.
a. Click (Options) on the Data tab.
g. Click OK.
The new hierarchy is added to the Hierarchy category on the Data tab.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-54 Chapter 4 Designing Reports with SAS Visual Analytics
The placement of the tiles in the treemap is determined based on the size of the report
object. The resolution of your computer, the size of the browser window and the status of
the panes (collapsed or expanded) will impact how the treemap is displayed. What you
see on your classroom machine might not match what you see above.
10. Navigate through the Customer hierarchy.
a. Double-click Orion Club Gold members to drill down to Customer Gender.
b. Double-click Male.
You can position the mouse pointer on the tiles to display values for Profit and Cost.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-55
d. Select All Customer Hierarchy in the breadcrumb at the top of the treemap to navigate to the top
level of the hierarchy.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-56 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-57
d. Click Save.
14. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
Exercises
Profit Size
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-58 Chapter 4 Designing Reports with SAS Visual Analytics
Your computer resolution and browser window size impact how the tiles are drawn.
Your report might not match what is shown above.
c. Save the report as Product Report 2 in the Shared Data folder.
d. Log off from SAS Visual Analytics.
87
87
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-59
reference lines
grid lines
attributes for
each axis
legend
placement
89
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-60 Chapter 4 Designing Reports with SAS Visual Analytics
Demonstration
Add a dual axis bar-line chart report
object that shows profit and quantity
by customer gender and group.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-61
Exercise
Add a dual axis time series
plot that displays profit and
quantity by order date below
the treemap report object in
Product Report 2.
92
This demonstration illustrates how to add graph objects to a report and work with the graph object
properties and styles.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Double-click Customer Hierarchy Report to open it in the Designer.
7. Add a dual axis bar-line chart to the canvas and specify the desired property and style options.
a. If necessary, click the Objects tab.
b. Drag the Dual Axis Bar-Line Chart graph object from the Objects tab into the drop zone to the
right of the treemap.
c. Click the Data tab.
d. Drag Customer Group Name from the Data tab onto the dual axis bar-line chart.
e. Drag Customer Gender from the Data tab onto the dual axis bar-line chart.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-62 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-63
o. Select File Save to save the updated report using the same name.
8. Add a time series plot graph object to the canvas and specify the desired property and style options.
a. Click the Objects tab.
b. Drag the Time Series Plot graph object from the Objects tab into the drop zone at the top of the
window, above the two other graph objects.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-64 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Creating Data Items and Working with Graphs 4-65
9. Select File Save to save the updated report using the same name.
10. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
Exercises
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-66 Chapter 4 Designing Reports with SAS Visual Analytics
Objectives
Describe the functionality provided by multi-section
reports.
List the types of report views.
Describe the process for importing objects into the
report.
Describe the ways to interact with report objects.
List the ways to filter data in SAS Visual Analytics
Designer.
Describe how to change and refresh data sources.
Create data source filters and report object filters.
Create section prompts.
List the types of control objects and how they can be
used to interact with data.
97
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-67
98
99
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-68 Chapter 4 Designing Reports with SAS Visual Analytics
transparency
properties
and styles
addition style
settings such
as font color
101
101
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-69
The Delete
option is not
available if the
report has only
one section.
102
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-70 Chapter 4 Designing Reports with SAS Visual Analytics
Other options
are available
based on the
report object
type.
104
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-71
106
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-72 Chapter 4 Designing Reports with SAS Visual Analytics
Importing Visualizations
You can import visualizations from
a report that was created by
exporting an exploration in the
Explorer.
108
For more information about repairing reports, see Appendix 6, Troubleshooting in SAS Visual Analytics
Designer, of SAS Visual Analytics 6.4: Users Guide.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-73
If a data item with the same name does not exist, then it is
removed from the data tab if no report objects use that
data item. If the data item is
used in a report object, the
Repair Report window appears.
110
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-74 Chapter 4 Designing Reports with SAS Visual Analytics
112
The data source filter editor is similar to the expression editor that is used when creating data items.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-75
Section Prompts
Section prompts enable you to automatically filter values
for all objects in one section based on user selection.
button bar
range slider
text input
drop-down
list
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-76 Chapter 4 Designing Reports with SAS Visual Analytics
Demonstration
Create a new report from a copy of an existing report. Add
a new section. Move and import report objects from other
sections and reports. You also add ranks, section
prompts, and data source filters.
117
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-77
Exercise
Add a new section to the Product report. Add a section
prompt to the new section to filter by year. Move and
import report objects.
118
This demonstration illustrates creating a report section, moving and importing objects to the new section,
and filtering values.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Double-click Customer Analysis Report to open it in the Designer.
7. Save the report under a new name.
a. Select File Save As.
b. If necessary, select the Shared Data folder.
c. Enter Profit Report in the Name field.
d. Click Save.
8. Edit the Profit by Month report object to include only the five months with the highest percent of
total profit.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-78 Chapter 4 Designing Reports with SAS Visual Analytics
b. In the Right pane, click (List of tabs) to display the list of tabs.
a. Select Insert New Section or click (Add new section) next to the Section 1 tab.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-79
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-80 Chapter 4 Designing Reports with SAS Visual Analytics
f. Click Insert Profit and Cost by Customer Hierarchy on the top of the thumbnail view.
g. Select Profit and Quantity by Customer Gender and Group.
h. Click Insert Profit and Quantity by Customer Gender and Group.
11. Add a section prompt to the Customer Demographics section.
a. Click the Objects tab in the Left pane to make it active.
b. Drag the Drop-Down List control to the Drop controls here to create a section prompt area at
the top of the report canvas.
2) Click (Edit selection) next to the Frequency field and select Replace Frequency
Frequency Percent.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-81
i. Select Clear Filter on the section prompt to clear the year filter.
12. Add a data source filter.
a. Click (Options) on the Data tab and select New Data Source Filter.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-82 Chapter 4 Designing Reports with SAS Visual Analytics
d. Double-click Customer Group Name NotContains 'x' in the Column Template list to add it to
the expression.
f. Press Enter.
g. Click OK.
All objects in all sections of the report are filtered by the new selection. There are now only two
category values displayed:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-83
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-84 Chapter 4 Designing Reports with SAS Visual Analytics
2) Click (Edit selection) next to the Frequency field and select Remove Frequency.
3) Click Yes when prompted to delete the data assignment.
f. Select Canada as the value for the section prompt.
All three report objects are updated.
Exercises
Be careful when selecting the report because there is also a Product Report 2.
Add a new section to the report.
Rename Section 2 (the newly created section) to Profit and Quantity Analysis.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Working with Filters and Report Sections 4-85
You can also use the Properties tab in the Right pane to rename sections.
Rename Section 1 to Profit Analysis by Product Line.
Move the Profit by Product Category pie chart to the Profit and Quantity Analysis section.
Hint: To move an object to another section, right-click the object and select Move to.
Import the Profit by Product Hierarchy treemap from Product Report 2 into the Profit Analysis
by Product Line section and place it on the left side of the report.
Modify the line chart (Profit by Quarter and Product Line).
Use the Properties tab to change the name to Profit by Month and Product Line.
Use the Roles tab to replace Quarter with Month Name.
Add a section prompt that uses a drop-down list control to select the year. Select 2011 as the
value for the section prompt.
Hint: You will need to change the classification of Year to Category.
Import the Profit and Quantity by Order Date dual axis time series plot from Product Report 2
into the Profit and Quantity Analysis section and place it at the bottom of the report.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-86 Chapter 4 Designing Reports with SAS Visual Analytics
Objectives
Describe the purpose of interactions.
List the two types of interactions available for reports.
Create filter interactions.
Create brush interactions.
List the types of links available for reports.
Define links for a report object.
Describe the purpose of alerts.
123
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-87
Types of Interactions
There are two types of interactions:
Filter Is used to restrict the data that is displayed in
a report object. Filters are simply a set of
conditions that you specify to subset the data
that is displayed. This is the default.
Brush Is short for data brushing, which enables you
to show the same data that is selected in
multiple objects.
125
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-88 Chapter 4 Designing Reports with SAS Visual Analytics
126
127
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-89
Interactions View
The Interactions View
displays a thumbnail of
each report object and
section, and shows
existing interactions
and links.
128
129
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-90 Chapter 4 Designing Reports with SAS Visual Analytics
130
Deleting an Interaction
You can delete interactions using the Interactions view or
the Interactions tab.
131
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-91
132
133
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-92 Chapter 4 Designing Reports with SAS Visual Analytics
134
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-93
136
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-94 Chapter 4 Designing Reports with SAS Visual Analytics
139
139
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-95
Demonstration
Use control objects and interactions
to filter the data objects in a report.
140
Exercise
Modify the Product Report:
change the category
value for the pie chart
add button bar
define interactions
between the button bar
and the time series plot
141
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-96 Chapter 4 Designing Reports with SAS Visual Analytics
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Double-click Customer Analysis Report to open it in the Designer.
7. Remove the Profit by Year pie chart.
a. Click the Profit by Year pie chart to select it.
b. Click X in the report object title bar to delete the Profit by Year pie chart.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-97
e. Click the Profit by Quarter pie chart and drag the pencil icon to the Profit by Month bar chart. A
derived interaction is established between the Year Selector and the Bar Chart.
The Interaction view resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-98 Chapter 4 Designing Reports with SAS Visual Analytics
The Show derived interactions check box controls the display of derived interactions.
h. Select Profit by Quarter in the drop-down list at the top of the Interactions tab and view the
interactions.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-99
Select (List of tabs) Show icons only to display icons instead of text for the tabs
in the right pane. The selected tab also displays the tab name.
i. Select Year Selector in the drop-down list at the top of the tab and view the interactions.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-100 Chapter 4 Designing Reports with SAS Visual Analytics
Moving your mouse pointer over the Filter icon displays a data tip that lists the report objects that
are filtering the current object:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-101
15. Add a range slider control to the left of the time series plot.
a. Click the Objects tab.
b. Click Range Slider in the Objects pane and drag it to the left of the time series plot.
c. Click the Data tab.
d. Drag Year from the Data tab to the range slider control.
e. Click the Properties tab in the Right pane.
f. Enter Year Selector in the Name field.
g. If necessary, clear the Horizontal check box.
h. Click the handle between the range slider and the time series plot and drag to the left to provide
more space for the time series plot.
i. Click (Refresh Data) in the Year Selector to show the data values.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-102 Chapter 4 Designing Reports with SAS Visual Analytics
e. Click OK.
f. Click New Interaction.
g. Verify that the first radio button (Year Selector filters Profit and Cost by Customer Hierarchy)
is selected.
h. Click OK.
i. Click New Interaction.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-103
j. Verify that the first radio button (Year Selector filters Profit and Quantity by Customer
Gender and Group) is selected.
k. Click OK.
The Interactions tab should resemble the following:
m. Click Close.
n. Slide the bottom of the slider to 2008.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-104 Chapter 4 Designing Reports with SAS Visual Analytics
o. Click (Refresh all data) at the top of the report canvas to refresh all of the objects based on
the values of the Year Selector.
p. Click Auto-update at the top of the report canvas to update the report automatically.
q. Select File Save to save the report using the same name.
r. Test the interactions.
1) Select File View Report to open the report in the SAS Visual Analytics Viewer.
Testing the report in the Viewer is helpful because it removes the Left pane and all of
the editing functionality.
2) Click the box on the right side of the slider that contains 2011.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Establishing Interactions, Links, and Alerts 4-105
17. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
Exercises
6. Defining Interactions
a. Log on to the SAS Visual Analytics Home Page as Eric.
b. Edit Product Report from the Recent category in the My Content area of the Home Page.
View the Profit and Quantity Analysis section.
Modify the Profit by Product Category pie chart.
Replace Product Category with Product Group.
Change the name to Profit and Quantity by Product Group.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-106 Chapter 4 Designing Reports with SAS Visual Analytics
Add a vertical button bar control to the left of the pie chart.
Populate the button bar with the Product Line data item.
Hint: If necessary, clear the Horizontal check box on the
Properties tab to create a vertical button bar.
Remove frequency.
Hint: Use the Roles tab to specify frequency information.
Name the button bar Product Line Selector.
Set the background color to black.
Set the background selection color to yellow.
Set the text color to white.
Set the selected color to black.
Click Children to select it.
Add the following interactions to the Profit and Quantity Analysis section:
c. Add an external link from the Profit and Quantity by Product Group object that links to
http://www.sas.com. Enter SAS Home Page as the value for the label.
d. Save the updated report using the same name.
e. Test the interactions and link using the SAS Visual Analytics Viewer.
Select File View Report.
View the Profit and Quantity Analysis section.
View the information for Clothes & Shoes.
Clear the filter selection.
Double-click one of the pie charts to view the external link.
Close the browser tab that the external web page is displayed on.
f. Log off from SAS Visual Analytics.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-107
Objectives
List the types of gauges available for reports.
List the steps to assign data items to a gauge.
Set properties and styles for a gauge object.
Describe the purpose of a display rule.
List the process to establish display rules for different
types of report objects.
146
Gauge Types
A gauge displays the status or measure of one or more
variables in relation to a target, goal, or interval. There
are five types of gauges available in the Designer:
Bullet
Slider
Thermometer
Dial
Speedometer
147
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-108 Chapter 4 Designing Reports with SAS Visual Analytics
measure
target
148
149
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-109
150
151
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-110 Chapter 4 Designing Reports with SAS Visual Analytics
The center
circle displays
the color range
associated with
the primary
measure.
152
153
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-111
Type
Bullet
Dial
Slider
Speedometer
Thermometer
Direction
154
continued...
Maximum visuals
Fill direction
Horizontal
Vertical
155
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-112 Chapter 4 Designing Reports with SAS Visual Analytics
Basic
Charcoal
Modern
None
Onyx
Satin
Header background color
none
onyx
satin
None Onyx Satin
157
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-113
Bullet Speedometer
Slider Thermometer
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-114 Chapter 4 Designing Reports with SAS Visual Analytics
159 continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-115
160
161
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-116 Chapter 4 Designing Reports with SAS Visual Analytics
163
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-117
164
Demonstration
Create the Profit Dashboard report that contains two
sections. The Dashboard section has three gauges, one
of which links to the Details section.
165
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-118 Chapter 4 Designing Reports with SAS Visual Analytics
Exercise
Create the Product Dashboard report that contains two
gauges.
The dial gauge
displays profit by
product category.
The thermometer
gauge displays
profit by product
line.
166
continued...
Exercise
Create a second section in the Product Dashboard report.
Use a treemap to
display profit by
product group.
Define an alert when
profit is greater than
$7,000,000.
167
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-119
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. Click Create Report to build a new report using SAS Visual Analytics Designer.
7. Select a data source.
a. Click the Data tab.
b. Click Select a data source in the Data tab.
c. Select CustomerOrders.
d. Click Add.
8. Add a gauge to the canvas.
a. Click the Objects tab.
b. Drag the Slider gauge from the Objects tab on the Left pane to the canvas.
c. Click the Data tab.
d. Drag Order Type from the Data tab onto the slider.
e. Drag Profit from the Data tab to the report canvas and drop onto the slider.
Activating the Roles tab in the Right pane is helpful to verify the role assignments.
h. Verify that 3 is selected as the value for the Number of intervals field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-120 Chapter 4 Designing Reports with SAS Visual Analytics
k. Click OK.
The interval values are populated.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-121
k. Click OK.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-122 Chapter 4 Designing Reports with SAS Visual Analytics
o. Click OK.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-123
i. Click OK.
j. Click the Properties tab in the Right pane.
k. Enter Profit by Gender in the Name field.
l. Enter Profit by Gender in the Title field. Press the Enter key.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-124 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-125
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-126 Chapter 4 Designing Reports with SAS Visual Analytics
i. Hold down the Ctrl key and select the following data items in order:
Customer Gender
Customer Age Group
Profit
j. Drag the selected item and drop them onto the bar chart.
Many report objects enable you to drop multiple items at the same time.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-127
9) Click OK.
10) Click New.
11) Click Expression.
12) Verify that Profit is selected as the value of the Column field.
13) Select < (less than) as the value for the Operator field.
14) Enter 7,000,000 as the value for the Value field.
15) Click the color selector and choose a bright yellow.
16) If necessary, click Background.
17) Click OK.
The bar chart is updated.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-128 Chapter 4 Designing Reports with SAS Visual Analytics
17. Create a section link from the Profit by Age Group gauge to the Profit by Customer Age Group and
Age Group bar chart.
a. Click the Dashboard tab.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-129
d. Click OK.
18. Select File Save to save the report using the same name.
19. Test the section link.
a. Double-click the gauge for 15-30 years. The Details section displays the bar and line chart that
filtered for the 15-30 year range that you selected.
b. Click (Back to dashboard or toggle section link filters) to return to the Dashboard
section.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-130 Chapter 4 Designing Reports with SAS Visual Analytics
c. Click the arrow portion of (Back to dashboard or toggle section link filters) and
select Apply section filter links to deselect it.
The bar and line chart are no longer filtered by the customer age group.
20. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
21. Click Save if prompted to save the changes to the report.
Exercises
Profit Measure
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-131
Hint: To fit all 12 gauges on 2 rows of 6, set Maximum visible rows to 2 and Maximum
visible columns to 6. Change the Maximum visuals setting on the Properties tab in the
Right pane to display all 12 gauges for Product Category.
Attribute Value
The resolution of the computer, the size of the browser window, and the pane status
(expanded or collapsed) all impact the display of the different reports objects. What
you see in the classroom might not match what is printed in the book.
Add a thermometer gauge below the dial gauge.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-132 Chapter 4 Designing Reports with SAS Visual Analytics
Attribute Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Working with Gauges and Display Rules 4-133
Assign both Product Group and Profit to the treemap at the same time by holding down the Ctrl
key and clicking.
Enter Profit by Product Group as the name of the object and do not show the legend.
e. Establish alerts for the treemap using the criteria below.
Hint: Click (New alert) on the Alerts tab to create a new alert.
when the profit is more than $7,000,000
f. Enable linking between the gauges in the Summary section and the Detail section.
Hint: Create a section link from both gauges.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-134 Chapter 4 Designing Reports with SAS Visual Analytics
Objectives
List the types of table report objects.
List the ways that the two table objects display
information.
Describe how display rules can be used with list tables
and crosstabs.
List the steps to add a sparkline to a list table.
Describe the process to create a hierarchy from a
crosstab.
List the properties for working with totals and subtotals
in a crosstab object.
172
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-135
173
headings
totals
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-136 Chapter 4 Designing Reports with SAS Visual Analytics
175
176 continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-137
To sort by multiple
columns, click the first
column that you want to
sort by, hold down the
Ctrl key, and click the
next column to sort by.
177 continued...
When a group of data items are assigned at one time, the list table is sorted by the last item in the
group.
178
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-138 Chapter 4 Designing Reports with SAS Visual Analytics
179
continued...
180
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-139
181
The set baseline option enables you to specify a baseline value and determine the fill type: Gradient or
Solid.
182 continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-140 Chapter 4 Designing Reports with SAS Visual Analytics
183
184
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-141
185
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-142 Chapter 4 Designing Reports with SAS Visual Analytics
Demonstration
Add a list table report object to the Monthly Profit Analysis
section that displays profit by customer type and gender.
187
continued...
Demonstration
Add a crosstab report object to the Customer
Demographics section that displays profit by customer
demographics.
Add totals and subtotals.
Create a hierarchy from the data items populating the
rows.
188
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-143
Exercise
Add a crosstab table report object to the Profit Analysis by
Product Line section that displays discounts by product
line and order type.
189
continued...
Exercise
Add a list table report object to the Profit and Quantity
Analysis section that displays profit and quantity by
supplier continent.
190
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-144 Chapter 4 Designing Reports with SAS Visual Analytics
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. If necessary, select Recent in the My Content area to display the recent items.
7. Double-click Profit Report to open it in the Designer.
8. Add a list table to the Monthly Profit Analysis section.
a. If necessary, click the Monthly Profit Analysis tab.
b. Drag the List Table object from the Objects tab on the Left pane to the canvas below the Profit
Analysis time series plot.
c. Click the Data tab.
d. Hold down Ctrl and select the following data items in order in the Data pane:
Customer Type Name
Customer Gender
Profit
e. Drag the selected items to the list table.
f. Click the Styles tab in the Right pane.
g. Click the Wrap text check box.
h. Resize the columns as needed.
i. Click the Properties tab in the Right pane.
j. Enter Profit by Customer Type and Gender in the Name field.
k. Click Show totals.
The list table resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-145
5) Click .
8) Click .
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-146 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-147
6) Click OK.
n. Resize the columns as needed.
The table should resemble the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-148 Chapter 4 Designing Reports with SAS Visual Analytics
g. Drag Customer Gender from the Data tab to the crosstab and drop it to the right of the
Customer Age Group column.
h. Drag Order Type from the Data tab to the columns section (top) of the crosstab.
i. Drag Profit from the Data tab to the body of the crosstab.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-149
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-150 Chapter 4 Designing Reports with SAS Visual Analytics
Add a display rule to the crosstab to display maximum discount values greater than 55% (.55)
with an orange background. Create an alert from the display rule.
Add a list table object to the bottom of the Profit and Quantity Analysis section.
Specify the following properties and display rules for the list table:
Name: Supplier Analysis
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.7 Working with Tables 4-151
Display rules:
Select bold face and a green color for the text attributes of the second rule.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-152 Chapter 4 Designing Reports with SAS Visual Analytics
Objectives
Describe the report objects in the Containers and
Other categories.
Describe how container objects can be used in
reports.
List the ways that text objects display information.
List the ways that image objects are used in reports.
List the ways that the stored process object are used
in SAS Visual Analytics.
Describe the differences between the geo bubble map
and the geo region map.
195
Other
196
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.8 Working with Other Objects 4-153
The containers
provide scroll bars,
if needed, which
enable you to scroll
through the content.
197
continued...
198
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-154 Chapter 4 Designing Reports with SAS Visual Analytics
navigation
control
199
continued...
Top left
Top Center
Top Right
Bottom Left
Bottom Center
Bottom Right
Navigation button type
Buttons
Links
Dots
200
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.8 Working with Other Objects 4-155
You can add links to the text and image report objects.
201
202
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-156 Chapter 4 Designing Reports with SAS Visual Analytics
204
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.8 Working with Other Objects 4-157
205
206
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-158 Chapter 4 Designing Reports with SAS Visual Analytics
A measure determines
the size of the bubble.
In addition, a measure
can be used to color the
bubble.
207
A geography data item is a category whose values are mapped to geographical locations or regions.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.8 Working with Other Objects 4-159
A measure determines
the size of the bubble.
208
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-160 Chapter 4 Designing Reports with SAS Visual Analytics
209
Demonstration
Add a text object
and an image
object to a report.
210
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.8 Working with Other Objects 4-161
Demonstration
Add a geo bubble
map report object
that displays profit
by customer
country.
211
Exercise
Add an image object to
the top of the Product
Dashboard report.
212
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-162 Chapter 4 Designing Reports with SAS Visual Analytics
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Eric in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
6. If necessary, select Recent in the My Content area to display the recent items.
7. Double-click Profit Dashboard to open it in the Designer.
8. Add a text object to the report.
a. If necessary, click the Objects tab.
b. Drag the Text object from the Objects tab on the Left pane to the canvas above the Profit by Age
Group gauge.
c. In the text object, enter the following: Select a continent from the filter box in the upper right
corner to subset the information displayed below.
d. Highlight the text and select 14 as the value for the font size.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.8 Working with Other Objects 4-163
d. Navigate to D:\CourseData.
e. Select OrionStarLogo and click Open.
f. Click Browse next to the Save the local image to the repository field.
g. Select Shared Data.
h. Click Save.
i. Select Fit All in the Scale type field.
j. Click OK.
k. Use the handles to adjust the object spacing until the report resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-164 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.8 Working with Other Objects 4-165
d. Navigate to D:\CourseData.
e. Select Focus_Customers.xlsx.
f. Click Open.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-166 Chapter 4 Designing Reports with SAS Visual Analytics
Clicking Preview enables you to view up to the first 500 rows of the Excel file.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.8 Working with Other Objects 4-167
f. Click OK.
15. Add a treemap to display the new data source.
a. Click the Objects tab to select it.
b. Drag a Treemap object to the report canvas to the right side of the geo bubble map.
c. Click the Data tab to select it.
d. Drag the Key Customers hierarchy onto the treemap.
e. Click the Properties tab.
f. Enter Key Customers for the Name field.
g. Enter Key Customers - double-click to navigate for the Title field.
h. Click to italicize the text.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-168 Chapter 4 Designing Reports with SAS Visual Analytics
Exercises
9. Adding an Image
a. Log on to the SAS Visual Analytics Home Page as Eric.
b. Edit Product Dashboard from the Recent category in the My Content area of the Home Page.
c. Add an image report object to the top of the Product Dashboard section.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-169
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-170 Chapter 4 Designing Reports with SAS Visual Analytics
b) Click (Add data source) on the Data tab in the Left pane.
c) Select ProductAnalysis.
d) Click Add.
3) Add a pie chart graph object.
a) Click the Objects tab in the Left pane.
b) Drag the Pie Chart graph object from the Objects tab on the Left pane to the canvas.
c) Click the Data tab in the Left pane.
d) Drag Product Category from the Data tab to the report canvas.
e) Drag Profit from the Data tab to the report canvas.
f) Right-click Product Category in the legend and select Sort Ascending.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-171
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-172 Chapter 4 Designing Reports with SAS Visual Analytics
b. If you did not follow along with the demonstration, change the order of action to enable a report
to be opened in the Designer by double-clicking it from the My Content area of the Home Page.
1) Select Edit Preferences in the Common Actions section in the Right pane.
2) Select Home in the selection list on the left side of the Preferences window.
3) Select SAS report (2G).
4) Select Edit SAS Visual Analytics Designer.
5) Click (Move up) to move the selected item to the top of the list.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-173
5) Using the Data Properties table in the Left pane, change the value of the Classification
property to Category for the Quarter data item.
6) Add a line chart to the report.
a) Click the Objects tab.
b) Drag the Line Chart graph object from the Objects tab into the drop zone in the bottom of
the window.
c) Click the Data tab.
d) Drag Quarter from the Data tab and drop it onto the line chart.
e) Drag Profit from the Data tab onto the Y axis and drop it onto the line chart.
f) Drag Product Line from the Data tab onto the line chart.
g) Select Group as the value for the data assignment.
h) Specify properties and styles for the pie chart.
(1) If necessary, click the Properties tab in the Right pane.
(2) Type Profit by Quarter and Product Line in the Name field.
(3) Select Stacked Filled in the Grouping style field.
(4) Click the Styles tab in the Right pane.
(5) Select Crisp in the Data skin field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-174 Chapter 4 Designing Reports with SAS Visual Analytics
d. Click File Save to save the updated report using the same name.
e. Click Log Off to log off from SAS Visual Analytics.
3. Working with a Treemap
a. Log on to the SAS Visual Analytics Home Page as Eric.
1) Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2) From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS
Visual Analytics logon page appears.
3) Enter Eric the User ID field.
4) Enter Student1 in the Password field.
5) Click Log On.
b. Create a new report.
1) Click Create Report in the Create Content area.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-175
c) Select ProductAnalysis.
d) Click Add.
3) Create the Product Hierarchy data item that contains Product Line, Product Group, and
Order Type.
a) Click (Options) on the Data tab.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-176 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-177
b. Edit Product Report 2 from the Recent category in the My Content area of the Home Page.
1) Double-click Product Report 2 to open it in the Designer.
2) Add a dual axis time series plot below the treemap and specify the properties and styles.
a) If necessary, click the Objects tab.
b) Drag the Dual Axis Time Series Plot graph object from the Objects tab into the drop zone
in the bottom of the window.
c) Click the Data tab.
d) Drag Date Order was placed by Customer from the Data tab onto the X axis and drop it
onto the dual axis time series plot.
e) Drag Profit from the Data tab onto the Y axis and drop it onto the Measure (line) drop
zone.
f) Drag Quantity Ordered from the Data tab onto the Y axis and drop it onto the
Measure (line 2) drop zone.
The dual axis time series plot resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-178 Chapter 4 Designing Reports with SAS Visual Analytics
c. Select File Save to save the updated report using the same name.
d. Click Log Off to log off from SAS Visual Analytics.
5. Adding Sections and Importing Objects
a. Log on to the SAS Visual Analytics Home Page as Eric.
1) Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2) From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS
Visual Analytics logon page appears.
3) Enter Eric in the User ID field.
4) Enter Student1 in the Password field.
5) Click Log On.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-179
b. Edit Product Report from the Recent category in the My Content area of the Home Page.
1) Double-click Product Report to open it in the Designer.
Be careful when selecting the report because there is also a Product Report 2.
2) Add a new section to the report and provide meaningful names to both sections.
a) Select Insert New Section or click (New section) next to the Section 1 tab.
You can also use the Properties tab in the Right pane to rename the section.
d) Press Enter.
e) Right-click the Section 1 tab and select Rename.
f) Type Profit Analysis by Product Line.
g) Press Enter.
3) Move an object from one section to another and import additional objects.
a) Click the Profit Analysis by Product Line tab to select it.
b) Right-click the pie chart and select Move Profit and Product Category to Profit and
Quantity Analysis.
c) Click the Imports tab in the Left pane.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-180 Chapter 4 Designing Reports with SAS Visual Analytics
The updated Profit Analysis by Product Line section resembles the following:
5) Add a section prompt that uses a drop-down list control to select the year.
a) Click the Objects tab.
b) Drag the Drop-Down List control to the Drop controls here to create a section prompt
area in the upper right corner of the report canvas.
c) Click the Data tab.
d) Change the data item classification for Year.
(1) Click Year in the Data tab to select it.
(2) Select Category as the value for the Classification property.
e) Drag Year to the drop-down list control to populate the values.
f) Select 2011 as the value for the section prompt.
6) Click the Profit and Quantity Analysis tab to select it.
a) Click the Imports tab in the Left pane.
b) Verify that Product Report 2 is the selected report.
c) Select Profit and Quantity by Order Date.
d) Click Insert Profit and Quantity by Order Date.
e) Move the dual axis time series plot below the pie chart.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-181
The updated Profit and Quantity Analysis section resembles the following:
c. Select File Save to save the updated report using the same name.
d. Click Log Off to log off from SAS Visual Analytics.
6. Defining Interactions
a. Log on to the SAS Visual Analytics Home Page as Eric.
1) Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2) From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS
Visual Analytics logon page appears.
3) Enter Eric in the User ID field.
4) Enter Student1 in the Password field.
5) Click Log On.
b. Edit Product Report from the Recent category in the My Content area of the Home Page.
1) Double-click Product Report to open it in the Designer.
2) Click the Profit and Quantity Analysis tab to view that section of the report.
3) Modify the Profit by Product Category pie chart.
a) Click the pie chart to select it.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-182 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-183
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-184 Chapter 4 Designing Reports with SAS Visual Analytics
e) Click Close.
c. Add an external link from the Profit and Quantity by Product Group object that links to
http://www.sas.com. Enter SAS Home Page as the value for the label.
1) Right-click the pie chart.
2) Click Add Link External Link.
3) Enter SAS Home Page for the Label field.
4) Enter www.sas.com in the URL field.
5) Click OK.
d. Select File Save to save the updated report using the same name.
e. Test the interactions and link.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-185
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-186 Chapter 4 Designing Reports with SAS Visual Analytics
h) Verify that 3 is selected as the value for the Number of intervals field.
i) Enter 0 as the value for the Lower bounds field.
j) Enter 23,000,000 as the value for the Lower bounds field.
k) Click OK.
l) Click the Properties tab in the Right pane.
m) Enter Profit by Product Category in the Name field.
n) Clear the Show range labels check box.
o) Click (Auto populate intervals) to open the Populate intervals window
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-187
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-188 Chapter 4 Designing Reports with SAS Visual Analytics
k) Click OK.
l) Click the colored box and select a blue color.
m) Click OK.
n) Click the Properties tab in the Right pane.
o) Enter Quantity by Product Line in the Name field.
p) Clear the Show range labels check box.
q) Click the Styles tab in the Right pane.
r) Select Modern as the value for the KPI skin field.
The updated thermometer gauge resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-189
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-190 Chapter 4 Designing Reports with SAS Visual Analytics
8) Click OK.
f. Enable linking between the gauges in the Summary section and the Detail section.
1) Click the Summary tab to make it the active section.
2) Right-click the Profit by Product Category gauge and select Add Link Section Link.
3) Click OK.
4) Right-click the Quantity by Product Line gauge and select Add Link Section Link.
5) Click OK.
g. Save the report as Product Dashboard in the Shared Data folder.
1) Select File Save As.
2) If necessary, select the Shared Data folder.
3) Enter Product Dashboard in the Name field.
4) Click Save.
h. Test the section links.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-191
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-192 Chapter 4 Designing Reports with SAS Visual Analytics
3) Add a crosstab table to the bottom of the Profit Analysis by Product Line section.
a) If necessary, click the Profit Analysis by Product Line tab.
b) Click the Objects tab.
c) Drag the Crosstab table object from the Objects tab on the Left pane to the canvas and
add it to the bottom of the report.
d) Click the Data tab.
e) Drag Product Line from the Data tab to the rows section (left side) of the crosstab.
f) Drag Order Type from the Data tab to columns section (top) of the crosstab.
g) Hold down Ctrl and select the following data items in order:
Maximum Discount
Average Discount
Minimum Discount
h) Drag the selected items to the body of the crosstab.
The crosstab should resemble the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-193
o) Click OK.
The Profit Analysis by Product Line section resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-194 Chapter 4 Designing Reports with SAS Visual Analytics
4) Add a list table object to the Profit and Quantity Analysis section.
a) Click the Profit and Quantity Analysis tab.
b) Click the Objects tab.
c) Drag the List Table object from the Objects tab on the Left pane to the canvas and add it
to the bottom of the report.
d) Click the Data tab.
e) Hold the Ctrl key and select the following data items in order:
Supplier Country
Quantity
Profit
f) Drag the selected item to the list table.
g) Resize the columns as needed.
h) Click the Properties tab on the Right pane.
i) Enter Supplier Analysis in the Name field.
j) Click the Display Rules tab.
k) Click New.
(1) Select Gauge as the type.
(2) Verify that Icon is selected in the Gauge type field.
(3) Select Quantity in the Based on column field.
(4) Select Left of text in the Cell placement field.
(6) Verify that 3 is selected as the value for the Number of intervals field.
(7) Enter 0 as the value for the first field of the first interval value.
(8) Enter 20,000 as the value for the second field of the first interval value.
(9) Enter 100,000 as the value for the second field of the second interval value.
(10) Enter 250,000 as the value for the second field of the third interval value.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-195
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-196 Chapter 4 Designing Reports with SAS Visual Analytics
c. Select File Save to save the updated report using the same name.
d. Click Log Off to log off from SAS Visual Analytics
9. Adding an Image
a. Log on to the SAS Visual Analytics Home Page as Eric.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-197
1) Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2) From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS
Visual Analytics logon page appears.
3) Enter Eric in the User ID field.
4) Enter Student1 in the Password field.
5) Click Log On.
b. Edit Product Dashboard from the Recent category in the My Content area of the Home Page.
1) If necessary, select Recent in the My Content area to display the recent items.
2) Double-click Product Dashboard to open it in the Designer.
c. Add an image to the report.
1) Drag the Image object from the Objects tab on the Left pane to the canvas above the Profit by
Product Category gauge.
2) Click the Load from local machine radio button.
3) Click Browse next to the Load from local machine field.
4) Navigate to D:\CourseData.
5) Select OrionBanner and click Open.
6) Click Browse next to the Save the local image to the repository field.
7) Select Shared Data.
8) Click Save.
9) Select Fit All in the Scale type field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-198 Chapter 4 Designing Reports with SAS Visual Analytics
d. Select File Save to save the updated report using the same name.
e. Add a new section to the report and display the results of a stored process.
1) Select Insert New Section.
2) Select Insert Other Stored Process.
3) Navigate to Products SAS Intelligence Platform Samples.
4) Select Sample: Frequency Analysis of Municipalities.
5) Click Open.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.9 Solutions to Exercises 4-199
The stored process runs and the results are displayed in the Stored Process report object.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-200 Chapter 4 Designing Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 5 Viewing SAS Visual
Analytics Reports
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Viewing Reports on the Web 5-3
Objectives
List the functionality provided by SAS Visual Analytics
Viewer.
Describe the types of information provided by the
Properties tab in the Right pane.
Describe the functionality provided by the Comments
tab in the Right pane.
List the purpose of the Alerts tab in the Right pane.
List the options available when searching for reports.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-4 Chapter 5 Viewing SAS Visual Analytics Reports
5
continued...
Comments
Alerts
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Viewing Reports on the Web 5-5
Properties Tab
The Properties tab in the Right pane
provides information about the report
or the selected item. Information
provided by the Properties tab
includes the following:
the item name
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-6 Chapter 5 Viewing SAS Visual Analytics Reports
Comments Tab
The Comments tab enables you to view and manage
comments for the report.
respond to an existing
comment
edit a comment
delete a comment
Alerts Tab
The Alerts tab enables you to view the alert conditions
that were defined by the report author. You can subscribe
to alerts by clicking the Subscribe check box.
10
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Viewing Reports on the Web 5-7
11
Opening a Report
The Open window enables you to navigate SAS Folders
and select a report to open.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-8 Chapter 5 Viewing SAS Visual Analytics Reports
Viewing a Report
This demonstration illustrates opening and interacting with reports in SAS Visual Analytics Viewer.
1. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS Visual Analytics Home Page. The SAS Visual
Analytics logon page appears.
3. Enter Rob in the User ID field.
4. Enter Student1 in the Password field.
5. Click Log On.
The Home Page is displayed.
6. Click Browse in the My Content area.
7. If necessary, select the Shared Data folder.
8. Double-click the Profit Dashboard report to open it in the SAS Visual Analytics Viewer.
The Viewer opens and the report is displayed.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Viewing Reports on the Web 5-9
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-10 Chapter 5 Viewing SAS Visual Analytics Reports
The Properties tab also displays the filter information for the selected object.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Viewing Reports on the Web 5-11
Profits are down for our customers between 61-75 years old. Lets run a promotion next
month and see whether we can increase profits.
g. Click Post.
11. Answer questions about the information provided by the report.
a. Which age group generates the most profit for Europe?
Verify that Europe is selected for the section prompt.
12. Click Log Off to log off from SAS Visual Analytics.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-12 Chapter 5 Viewing SAS Visual Analytics Reports
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Viewing Reports on a Mobile Device 5-13
Objectives
Explain the purpose of the SAS Mobile BI app.
Access reports using the SAS Mobile BI app.
View the differences between SAS Visual Analytics
Web Viewer and the SAS Mobile BI app.
18
19
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-14 Chapter 5 Viewing SAS Visual Analytics Reports
20
21
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Viewing Reports on a Mobile Device 5-15
22
My Portfolio
23
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-16 Chapter 5 Viewing SAS Visual Analytics Reports
subscribe to
reports
24
Connecting to a Server
From the Library interface, tap Connections to view
existing connections and to create and define new
connections.
25
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Viewing Reports on a Mobile Device 5-17
26
27
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-18 Chapter 5 Viewing SAS Visual Analytics Reports
28
29 continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Viewing Reports on a Mobile Device 5-19
You can also swipe right and left to move between the report sections.
30
31
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-20 Chapter 5 Viewing SAS Visual Analytics Reports
32
Objectives
Describe SAS Office Analytics.
Describe the SAS Central Web Part for SharePoint.
List how SAS Visual Analytics reports can be viewed
in Microsoft Office applications.
List how SAS Visual Analytics reports can be viewed
in SAS Enterprise Guide.
Describe the functionality provided by the
SAS Central Web Part for SharePoint.
35
35
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Viewing Reports with SAS Office Analytics 5-21
36
37
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-22 Chapter 5 Viewing SAS Visual Analytics Reports
38
39
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Viewing Reports with SAS Office Analytics 5-23
40
40 continued...
41
41
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-24 Chapter 5 Viewing SAS Visual Analytics Reports
42
42
43
43
Viewing Reports
This demonstration illustrates opening and interacting with reports using SAS Office Analytics.
1. View the Profit Dashboard in Microsoft Excel
a. Select Start All Programs Microsoft Office 2013 Excel 2013.
b. Click Blank workbook.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Viewing Reports with SAS Office Analytics 5-25
The bottom of the Reports window displays the connection information. By default, the
SAS add-in remembers your credentials between sessions. Robs credentials are stored on
the classroom machine.
f. Double-click Profit Dashboard.
g. Click the Place sections on separate worksheets check box.
h. Click OK.
The report is displayed, and by default the control objects that are used to filter the sections are
displayed in a floating window.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-26 Chapter 5 Viewing SAS Visual Analytics Reports
i. Click the title bar of the floating window and drag it to the right side of the Excel window to dock
it in place.
j. Use the scroll bars to view all of the report objects.
k. Click the Details tab at the bottom of the window and use the scroll bars to view the report
objects in that section.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Viewing Reports with SAS Office Analytics 5-27
l. Close Excel.
m. Click Dont Save when prompted to save the changes.
2. View the Profit Dashboard in Microsoft Outlook.
a. Select Start All Programs Microsoft Office 2013 Outlook 2013.
b. Select SAS Central (My Server) on the left side of the Outlook window.
SAS Central displays your SAS Favorites from Office Analytics as well as your Visual Analytics
favorites.
c. Click Browse.
d. Double-click the Shared Data folder.
e. Double-click Profit Dashboard.
f. A new window appears. Click where indicated to run the report and display the information.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-28 Chapter 5 Viewing SAS Visual Analytics Reports
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Viewing Reports with SAS Office Analytics 5-29
h. Click the arrow on the far right side of the comment from Rob and select Reply.
i. Enter A promotion for the 61-75 year group is being developed in the comment box.
j. Click Save.
k. Click x in the upper right corner of the window to close the report.
l. Select File Exit to close Microsoft Outlook.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-30 Chapter 5 Viewing SAS Visual Analytics Reports
Exercises
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Solutions to Exercises 5-31
c) Click OK.
9) Click Add a Favorite to add a report to the favorites group.
c. View and interact with the Product report using the SAS Visual Analytics Viewer.
1) Double-click Product Report to open it in the Viewer.
2) Answer the following questions:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-32 Chapter 5 Viewing SAS Visual Analytics Reports
What was the profit for the Sports product line in May of 2009?
$610,748.76
Determine the value by selecting 2009 in the section prompt and moving the cursor over the
line for Sports for May in the line chart.
Which product group has the largest profit for Sports not counting the Other category?
Skates
Click the Profit and Quantity Analysis tab to select that section.
Determine the value by selecting Sports in the button bar and moving the cursor over the
second largest pie slice.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Solutions to Exercises 5-33
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-34 Chapter 5 Viewing SAS Visual Analytics Reports
e. Click the Profit and Quantity Analysis tab to display that section.
f. Click Outdoors in the button bar.
g. Close Enterprise Guide and do not save the changes to the project.
1) Select File Exit to close Enterprise Guide.
2) Click No when prompted to save the changes.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 6 Case Study: Creating
Analyses and Reports with SAS
Visual Analytics
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics .................. 6-3
Demonstration: Managing LASR Tables ............................................................................. 6-16
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-3
Objectives
Identify the differences between SAS Visual Analytics
Explorer and SAS Visual Analytics Designer.
Apply the knowledge that you learned in the other
chapters to complete a case study exercise.
2
2
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-4 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Custom Graphs created with SAS Visual Analytics Graph Builder can be used with the Designer but not
with the Explorer.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-5
fit lines
forecasts
text analytics
6 continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-6 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-7
MegaCorp Templates
An initial exploration and
report have been created
for you.
10
10
MegaCorp Exploration 2
MegaCorp Exploration 3
MegaCorp Exploration 4
11
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-8 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
MegaCorp Exploration 1
Create a geo map
visualization to explore
the total capacity of each
fabrication unit in a
specific location.
A hierarchy is used to
create a navigational path
through the data from
region to state to city.
12 continued...
MegaCorp Exploration 1
Create a bubble plot to explore the relationship between
Unit Yield and
Unit Capacity
by state.
Assign Date
by Year to the
Animation role
to view the
values as they
change over
time.
13
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-9
MegaCorp Exploration 2
Create a visualization to
analyze the correlation
between Unit Age and
Unit Reliability.
14 continued...
MegaCorp Exploration 2
Create a visualization to
analyze the correlation
between Unit Age and
Expenses.
15 continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-10 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
MegaCorp Exploration 2
Create a visualization to analyze the average unit
reliability and the average unit yield rate for each month
during the years 2007 through 2011.
A local filter
is used to
subset the
data for this
visualization
to display
only the
specified
years.
16
MegaCorp Exploration 3
Create a visualization to analyze the profitability of each
facility based on expenses, revenue, and profit.
Use a hierarchy
to create a
navigational path
through the data
from region to
state to city.
17 continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-11
MegaCorp Exploration 3
Create a visualization to analyze the profitability of each
product based on expenses, revenue, and profit.
Use a hierarchy to
create a navigational
path through the data
using the four product
levels:
Product Brand
Product Line
Product
Product Description
18 continued...
MegaCorp Exploration 3
Create a visualization to
geographically display
profit by the facility state.
Display the
values using
the Regions
map style.
19
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-12 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
MegaCorp Exploration 4
Create a visualization
to analyze profit by
year grouped by
product line.
20 continued...
MegaCorp Exploration 4
Create a visualization to
analyze the relationship
on unit production by
product line and region.
21
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-13
22
23
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-14 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Each gauge is
linked to the
Detail section.
24
25
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-15
26
27
continued...
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-16 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
28
This demonstration illustrates how to load and unload tables in the LASR Analytic Server.
1. Log on to SAS Visual Analytics using Christines credentials.
a. Open Internet Explorer by clicking the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
b. From the browser window, select Favorites SAS Visual Analytics Home Page.
c. Enter Christine in the User ID field.
d. Enter Student1 in the Password field.
e. Click Log On.
2. Access SAS Visual Analytics Administrator.
a. Select Manage Environment in the Common Actions section.
b. If necessary, select LASR Manage Tables.
c. If necessary, click the LASR Tables tab to make it active
3. Unload CustomerOrders and Product Analysis from the SAS LASR Analytic Server.
a. Select CustomerOrders. The status indicates that the table is loaded into memory.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-17
d. Select ProductAnalysis. The status indicates that the table is loaded into memory.
f. Click OK.
A message window appears, indicating that the table was loaded.
g. Click Close.
5. Click Log Off in the upper right corner to log off from SAS Visual Analytics.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-18 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Exercises
If you followed along with the demonstration, there is no need to complete this first step. If
you did not follow along with the demonstration, you must complete the steps below to load
data that will be used for the case study
a. Log on to SAS Visual Analytics using Christines credentials.
b. Access SAS Visual Analytics Administrator.
c. Unload the CustomerOrders and ProductAnalysis tables from the SAS LASR Analytic Server
using the LASR Tables tab.
d. Load the MEGACORP table from Shared Data/Source Data onto the SAS LASR Analytic
Server folder and modify the description to Loaded by your name.
e. Log off from SAS Visual Analytics.
2. Logging On to SAS Visual Analytics
Log on to the SAS Visual Analytics as Eric.
Display the recent history in the My Content area.
Clear the recent history in the My Content area.
3. Creating a New Exploration
Open the MegaCorp Exploration Template from Shared Data Case Study.
When prompted, click Change Data Source and select the MEGACORP table that you
loaded earlier.
Save the updated exploration.
Be sure to save a copy of the exploration template as you will use it later in the case study.
Create a copy of the exploration named MegaCorp Exploration 1 by selecting File Save As.
Create a visualization to analyze the capacity of each fabrication unit. Use a hierarchy to create
a navigational path through the data from region to state to city.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-19
Use the hierarchy to navigate through the data and answer the following question:
Which facility in California has the lowest unit capacity?
__________________________________________________
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-20 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Create a bubble plot visualization to analyze the total unit yield and unit capacity by state for all of
the years of production.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-21
Create a visualization to analyze the correlation between Unit Age and Unit Reliability.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-22 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Create a second visualization to analyze the correlation between Unit Age and Expenses.
Bin count 10
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-23
Create a visualization to analyze the average unit yield rate and average unit reliability from month
to month from 2007 through 2011.
Save the data exploration as Mega Corp Exploration 2 in the Shared Data Case Study folder
location.
Open the MegaCorp Exploration template.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-24 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-25
Create a visualization to analyze the profitability of each product based on expenses, revenue, and
profit. Use a hierarchy to create a navigational path through the data from Product Brand to
Product Description.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-26 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Hint: To set the Map Style to Regions, select Use Geo Map on the Roles tab in the right pane.
Answer the following question:
Which state has the largest profit?
__________________________________________________
Save the data exploration as Mega Corp Exploration 3 in the Shared Data Case Study folder
location.
Open the MegaCorp Exploration Template.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-27
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-28 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Create a visualization to analyze the relationship on unit production between the facility region and
the product line.
Save the data exploration as Mega Corp Exploration 4 in the Shared Data Case Study folder
location.
Close the Explorer by clicking the X in the button on the application bar.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-29
When prompted, click Change Data Source and select the MEGACORP table that
you loaded earlier.
Save the updated report.
Be sure to save a copy of the report template as you will use it later in the case study.
Create a copy of the report named MegaCorp Unit Report by selecting File Save As.
b. Specify data item properties and add report objects to the report canvas.
Change the name of Unit Yield (rate) to Yield and set the aggregation to Average.
Add a list table object to the report canvas with the following properties:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-30 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Property Value
Hint: Click the section tab and drag to move it to a new location.
Click the Summary tab to make it the active section.
Add a drop-down list control to the canvas with the following properties:
Property Value
Required <enabled>
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-31
Property Value
Name Yield
Title Yield
Maximum visuals 45
Property Value
Category Unit
Measure Reliability
Name Reliability
Title Reliability
Maximum 45
visuals
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-32 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Property Value
Category Unit
Measure Age
Name Age
Title Age
Maximum visuals 45
The gauge layout and orientation are determined based on the window size, width of
the Left and Right panes, and your computer resolution. Interactions will be
established to limit the number of gauges that are displayed.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-33
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-34 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Click (Back to Summary or toggle section link filters) to return to the Summary
section.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-35
Save the report as MegaCorp Product Report and store it in the Case Study folder.
b. Add report objects to the report canvas.
Add a list table object to the report canvas with the following properties:
Property Value
Column Product
Expenses
Revenue
Profit
Property Value
Font style
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-36 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Property Value
Text Use the check boxes below to select which year (or years) of data to
view. If no check boxes are selected, all years are included in the report.
Add a second text object to the right of the first text object with the following properties:
Property Value
Property Value
Category Year
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-37
Property Value
Tile Product
Size Expenses
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-38 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Add four dial gauges to the report. Place each dial gauge inside the horizontal container and
assign properties.
First dial gauge properties:
Property Value
Name Capital
Title Capital
Width 30
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-39
Property Value
Name Material
Title Material
Width 30
Property Value
Name Operational
Title Operational
Width 30
Property Value
Name Staffing
Title Staffing
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-40 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Property Value
Width 30
Show <cleared>
range
labels
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-41
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-42 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Property Value
Required <enabled>
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-43
Add a pie chart to the report below the text object with the following properties:
Property Value
Name Revenue
Create Other slice <cleared>
for minimal values
Legend
Legend Box on the Right-click Facility City in the legend box on the report
report canvas canvas and select Sort Ascending.
Add a second pie chart to the report below the first pie chart with the following properties:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-44 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Property Value
Name Expenses
Create Other slice <cleared>
for minimal values
Legend
Legend Box on the Right-click Facility City in the legend box on the report
report canvas canvas and select Sort Ascending.
Add a time series plot to the right side of the canvas with the following properties:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 Case Study: Creating Analyses and Reports with SAS Visual Analytics 6-45
Property Value
Measure Profit
Property Value
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-46 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Property Value
Indented <enabled>
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-47
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-48 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
b. Select Manage Environment in the Common Actions section to access SAS Visual Analytics
Administrator.
c. Unload CustomerOrders and Product Analysis from the SAS LASR Analytic Server using the
LASR Tables tab.
1) Select CustomerOrders. The status indicates that the table is loaded into memory.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-49
Be sure to save a copy of the exploration template as you will use it later in the case
study.
c. Create a copy of the current exploration.
1) Select File Save As.
2) If necessary, expand the Shared Data folder.
3) Select the Case Study folder.
4) Enter MegaCorp Exploration 1 in the Name field.
5) Click Save.
d. Create a new visualization.
1) Hold down the Ctrl key and click to select the following data items:
Facility Hierarchy
Unit Capacity
2) Drag the selected data items to the workspace.
The automatic chart functionality determines the best way to display the selected data and
creates a geo map visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-50 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Depending on your resolution, window size, and map zoom level, your geo map
might show more detail than the one displayed above.
3) Modify the visualization properties.
a) Click the Properties tab in the Right pane.
b) Enter Capacity by Facility in the Name field.
4) Use the hierarchy to navigate through the data.
a) Double-click the bubble for the West region (the leftmost bubble).
The map is updated to display the states in the West region.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-51
c) Move your mouse pointer over the smallest bubble to display more information.
3) Hold down the Ctrl key and click to select the following data items:
Unit Capacity
Unit Yield (actual)
Unit Yield (rate)
Facility State
4) Drag the selected data items to the workspace.
5) If necessary, click the Roles tab in the Right pane.
6) Click next to the Animation role and select Date by Year
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-52 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-53
Which state has the largest unit yield (actual) and largest unit capacity of all time?
TX
f. Save the exploration.
Select File Save.
g. Open the MegaCorp Exploration template.
1) Select File Recent MegaCorp Exploration Template.
4. Exploring the MEGACORP Data Source and Saving a Second Data Exploration
a. Create a copy of the current exploration.
1) Select File Save As.
2) If necessary, select the Case Study folder.
3) Enter MegaCorp Exploration 2 in the Name field.
4) Click Save.
b. Create a new visualization.
1) Hold down the Ctrl key and click to select the following data items:
Unit Age
Unit Reliability
2) Drag the selected data items to the workspace. The automatic chart functionality determines
the best way to display the selected data.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-54 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
What is the correlation value between Unit Reliability and Unit Age?
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-55
A correlation of -0.94 suggests that there is a strong linear relationship between Unit
Reliability and Unit Age.
a) Click on the visualization title bar to minimize the visualization.
Based on the analysis, are the majority of the units under or over five years?
There are many more data points for units under five years of age.
e) Click on the visualization title bar to minimize the visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-56 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
You can also type in the boxes to specify the beginning and ending values.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-57
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-58 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-59
a) Double-click one of the bars for the West region. You can also click the region name on
the axis.
The chart is updated to display the states in the West region.
b) Double-click one of the bars for California.
The chart is updated to display the three facilities in California.
Which facilities in California have expenses that are larger than revenue?
San Diego
c) Click the All Facility Hierarchy box at the top of the visualization to return to the highest
level of the hierarchy.
5) Click on the visualization title bar to minimize the visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-60 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-61
Are there any toy product lines that have a negative profit?
Yes, Action Figures has a negative profit.
b) Click the All Product Hierarchy box at the top of the visualization to return to the top
level of the hierarchy.
6) Click on the visualization title bar to minimize the visualization.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-62 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-63
2) Hold down the Ctrl key and click to select the following data items:
Date by Year
Profit
3) Drag the selected columns to the workspace.
4) Drag Product Line from the Data pane to the line chart.
5) Select Group.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-64 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
3) Hold down the Ctrl key and click to select the following data items:
Product Line
Facility Region
Unit Yield (actual)
4) Drag the selected data items to the workspace.
The visualization resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-65
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-66 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Be sure to save a copy of the report template as you will use it later in the case study.
9) Select File Save As.
10) If necessary, select the Case Study folder.
11) Enter MegaCorp Unit Report in the Name field.
12) Click Save.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-67
b. Specify data item properties and add report objects to the report canvas.
1) Change data item properties.
a) Select Unit Yield (rate) in the Data tab.
b) Use the data items table to change the Name to Yield.
c) Use the data items table to change the Aggregation to Average.
2) Add a list table object.
a) Click the Objects tab in the Left pane.
b) Drag the List Table object from the Objects tab to the report canvas.
c) Click the Data tab in the Left pane.
d) Hold down the Ctrl key and select the following data items:
Facility City
Unit
Year
Yield
Reliability
e) Drag the selected items from the Data tab to the list table.
f) Click the Facility City column heading to sort the data in ascending order by city.
g) Hold down the Ctrl key and click the Unit column heading to sort the data in ascending
order by unit within city.
h) Hold down the Ctrl key and click the Year column heading to sort the data in ascending
order by year within unit within city.
i) Hold down the Ctrl key and click the Year column heading again to sort in descending
order.
j) Click the Properties tab in the Right pane.
k) Enter Unit Detail in the Name field.
l) Enter Unit Detail in the Title field.
The report object resembles the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-68 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-69
Selecting the report in the selector on the Properties tab provides an alternate
method for managing report sections.
j) Click (Edit selection) next to the Frequency field and select Replace Frequency
Frequency Percent.
6) Add a list control object.
a) Click the Objects tab to make it active.
b) Drag the List control object from the Objects tab to the right of the drop-down list control.
c) Click the Data tab to make it active.
d) Drag Facility City from the Data tab to the list object.
e) Click the Properties tab in the Right pane.
f) Enter City Selector in the Name field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-70 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
i) Click (Edit selection) next to the Frequency field and select Replace Frequency
Frequency Percent.
7) Add three gauges to the canvas.
a) Click the Objects tab to make it active.
b) Drag the Dial gauge object from the Objects tab to the bottom of the report canvas.
c) Drag a second Dial gauge object from the Objects tab to the bottom of the report canvas.
d) Drag a Thermometer gauge object from the Objects tab to the bottom of the report
canvas.
e) Click the Data tab to make it active.
f) Drag Unit from the Data tab onto the first dial gauge.
g) Drag Unit from the Data tab onto the second dial gauge.
h) Drag Unit from the Data tab onto the thermometer gauge.
i) Drag Yield from the Data tab onto the first dial gauge.
j) Drag Reliability from the Data tab onto the second dial gauge.
k) Drag Age from the Data tab onto the thermometer gauge.
l) Create a display rule and set the properties and styles for the first dial gauge.
(1) Click the first gauge to make it the active object.
(2) Click the Display Rules tab in the Right pane.
(i) Enter .7 as the beginning value for the first rule.
(ii) Enter e .75 as the ending value for the first rule.
(iii) Enter .9 as the ending value for the second rule.
(iv) Enter 1 as the ending value for the third rule.
(v) Press Enter.
A warning icon is displayed in the bottom right corner of the report object.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-71
The gauge layout and orientation are determined based on the window size,
width of the Left and Right panes, and your computer resolution.
m) Create a display rule and set the properties and styles for the second dial gauge.
(1) Click the second gauge to make it the active object.
(2) Click the Display Rules tab in the Right pane.
(i) Enter .84 as the beginning value for the first rule.
(ii) Enter .88 as the ending value for the first rule.
(iii) Enter .9 as the ending value for the second rule.
(iv) Enter 1 as the ending value for the third rule.
(v) Press Enter.
(3) Click the Properties tab in the Right pane.
(i) Enter Reliability in the Name field.
(ii) Enter e Reliability in the Title field.
(iii) Clear the Show range labels check box.
(iv) Enter 45 in the Maximum visuals field.
(4) Click the Styles tab in the Right pane.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-72 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-73
o) Click and drag your mouse to the Detail section to establish a link.
The interactions view should resemble the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-74 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-75
4) Click (Back to Summary or toggle section link filters) to return to the Summary
section.
d. Save the report.
Select File Save.
e. Open the MegaCorp Report template.
Select File Recent MegaCorp Report Template.
8. Creating the MegaCorp Product Report
a. Create a copy of the current report.
1) Select File Save As.
2) If necessary, select the Case Study folder.
3) Enter MegaCorp Product Report in the Name field.
4) Click Save.
b. Add report objects to the report canvas.
1) Add a list table object.
a) If necessary, click the Objects tab in the Left pane to make it active.
b) Drag the List Table object from the Objects tab to the report canvas.
c) Click the Data tab in the Left pane to make it active.
d) Hold down the Ctrl key and select the following data items:
Product
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-76 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Expenses
Revenue
Profit
e) Drag the selected items from the Data tab to the list table.
f) If necessary, click the Properties tab in the Right pane.
g) Enter Product Detail in the Name field.
h) Enter Product Detail in the Title field.
i) Click the Show totals check box.
j) If necessary, resize the columns to view the totals.
(vii) Verify that Expenses is selected as the value for the Applies to field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-77
(viii) Click OK to close the Add New Display Rule window. The table is updated.
(2) Click New to define another new rule.
(i) Select Expression.
(ii) Select Profit for the Column field.
(iii) Select < (less than) for the Operator field.
(iv) Enter 0 in the Value field.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-78 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-79
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-80 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-81
d) Highlight all of the text and click to set the bold style.
i) Highlight <0.
k) Highlight 0-1,000,000.
m) Highlight >1,000,000.
3) Resize the report objects so that the text object takes up the least amount of space.
c. Rename the current section to Detail.
1) Right-click the Section 1 tab and select Rename.
2) Type Detail.
3) Press the Enter key to lock in the value.
d. Add a new report section named Summary and make it the first section of the report.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-82 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Click (Edit selection) next the Frequency field and select Replace Frequency
Frequency Percent.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-83
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-84 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-85
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-86 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-87
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-88 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-89
9) Click OK.
h. Resize the report objects to resemble the following:
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-90 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-91
4) Click (Back to Summary or toggle section link filters) to return to the Summary
section.
j. Save the report.
Select File Save.
k. Open the MegaCorp Report template.
Select File Recent MegaCorp Report Template.
9. Creating the MegaCorp Profitability Report
a. Create a copy of the current report.
1) Select File Save As.
2) If necessary, select the Case Study folder.
3) Enter MegaCorp Profitability Report in the Name field.
4) Click Save.
b. Add a section prompt.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-92 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
d) Click (Edit selection) next the Frequency field and select Remove Frequency.
e) Click Yes when prompted to remove the data assignment.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-93
(4) Right-click Facility City in the legend box on the report canvas.
(5) Select Sort Ascending.
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-94 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-95
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-96 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Solutions to Exercises 6-97
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-98 Chapter 6 Case Study: Creating Analyses and Reports with SAS Visual Analytics
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 7 Learning More
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 SAS Resources 7-3
Objectives
Identify areas of support that SAS offers.
List additional resources.
3
3
Education
SAS Education provides comprehensive training to
deliver greater value to your organization.
more than 200 course offerings
world-class instructors
4
4 http://support.sas.com/training
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-4 Chapter 7 Learning More
Publishing
SAS Publications offers a complete selection of
publications, including
e-books
CD-ROM
hard-copy books
5
5 http://support.sas.com/publishing
6
6 http://support.sas.com/certify
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 SAS Resources 7-5
Customer Support
SAS provides a variety of self-help and assisted-help
resources.
SAS Knowledge Base
license assistance
7
7 http://support.sas.com/techsup
User Groups
SAS supports many local, regional, international,
and special-interest SAS user groups.
SAS Global Forum
8
8 http://support.sas.com/usergroups
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-6 Chapter 7 Learning More
Objectives
Introduce the different types of SAS training.
Identify where to find the current classroom training
and e-learning.
List the training paths used by SAS Education for
grouping SAS platform training.
Identify additional learning opportunities that follow
this course.
11
11
Education (Review)
SAS Education provides comprehensive training to
deliver greater value to your organization.
more than 200 course offerings
world-class instructors
12
12 http://support.sas.com/training
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Beyond This Course 7-7
Live Web
e-learning
on-site
mentoring
13
13 http://support.sas.com/training/options
14
14 http://support.sas.com/training/us/paths
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-8 Chapter 7 Learning More
e-Learning
SAS e-Learning provides award-winning training when
and where you need it.
15 http://support.sas.com/elearn
Business Intelligence
Administration
16
16
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Beyond This Course 7-9
Administration Training
The SAS Administration training path is divided into three
categories:
SAS Platform Training for those who install, configure,
administer, and maintain the platform for
SAS Business Analytics
Application/ Training on administration of specific
Technology Area SAS applications and technology areas
Solutions Training for those who install, configure,
administer, and maintain SAS solutions
17
17
18
18
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-10 Chapter 7 Learning More
19
19 continued...
20
20
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Beyond This Course 7-11
SAS Foundation
SAS Solutions
21
21
Next Steps
After this course, you have access to extended learning
resources, including the following:
an electronic copy of the course notes
22
22
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-12 Chapter 7 Learning More
Copyright 2014, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.