SAS User Guide
SAS User Guide
Users Guide
SAS Documentation
The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Visual Analytics 7.2: User's Guide. Cary, NC:
SAS Institute Inc.
SAS Visual Analytics 7.2: User's Guide
Copyright 2015, SAS Institute Inc., Cary, NC, USA
All rights reserved. Produced in the United States of America.
For a hard-copy book: 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.
For a web download or e-book: Your use of this publication shall be governed by the terms established by the vendor at the time you
acquire this publication.
The scanning, uploading, and distribution of this book via the Internet or any other means without the permission of the publisher is illegal and
punishable by law. Please purchase only authorized electronic editions and do not participate in or encourage electronic piracy of copyrighted
materials. Your support of others' rights is appreciated.
U.S. Government License Rights; Restricted Rights: The Software and its documentation is commercial computer software developed at
private expense and is provided with RESTRICTED RIGHTS to the United States Government. Use, duplication or disclosure of the Software
by the United States Government is subject to the license terms of this Agreement pursuant to, as applicable, FAR 12.212, DFAR
227.7202-1(a), DFAR 227.7202-3(a) and DFAR 227.7202-4 and, to the extent required under U.S. federal law, the minimum restricted rights
as set out in FAR 52.227-19 (DEC 2007). If FAR 52.227-19 is applicable, this provision serves as notice under clause (c) thereof and no other
notice is required to be affixed to the Software or documentation. The Government's rights in Software and documentation shall be only those
set forth in this Agreement.
SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513-2414.
May 2015
SAS provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. For more
information about our offerings, visit support.sas.com/bookstore or call 1-800-727-3228.
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.
Contents
PART 1
PART 2
Accessing Data
7
8
8
8
9
9
11
iv Contents
Import Data from Google Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Import Tweets from Twitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
PART 3
Preparing Data
33
Source Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify Properties for a Source Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Output Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Staging Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Output and Staging Table Interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create SQL Query Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
47
48
48
49
50
51
61
61
62
63
About Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
How Does the Automatic Join Feature Work? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Adding a Join . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Contents
68
69
69
70
75
76
76
77
78
79
80
80
82
Features Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Load a Stop List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Add a Unique Numeric Key to a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Chapter 18 / Customizing Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
vi Contents
PART 4
Exploring Data
103
105
106
107
108
Overview of Visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Display Detailed Data for a Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Change the Data Source for a Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Control Visualization Data Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Manage Visualization Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Managing Visualization Data Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Work with Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Ranking Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Managing Visualization Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Visualization Data Ranges and Color Gradients . . . . . . . . . . . . .
Working with Data Brushing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Automatic Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Crosstabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Bar Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Line Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Scatter Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Bubble Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
138
144
146
146
147
147
147
149
149
151
151
153
155
156
157
158
160
163
165
Contents
vii
213
214
216
216
217
What Is a Hierarchy? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create a New Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Derive a Hierarchy from a Date, Time, or Datetime Data Item . . . . . . . . . . . . .
Create a Hierarchy from a Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Edit a Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Delete a Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
219
219
220
220
221
221
223
225
225
226
PART 5
Building Models
231
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Create the Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Create a Decision Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
viii Contents
Create a Linear Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Create a Generalized Linear Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Perform a Model Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Chapter 33 / Modeling Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Available Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Variables and Interaction Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Variable Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Missing Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Group By Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Filter Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Score Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Derive Predicted Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
247
248
249
249
249
251
251
252
Contents
ix
PART 6
Designing Reports
295
About Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create a New Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Choose a Report View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Choose a Report Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View Report Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Change a Reports Name or Title . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Import a Report or Report Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Repurpose an Existing Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Open a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Refresh a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Delete a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
305
306
307
307
308
310
311
312
312
313
313
x Contents
Working with Calculated Items in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Data Role Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sorting Data in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Cancel a Slow-Running Query for a Report Object . . . . . . . . . . . . . . . . . . . . . . .
374
379
388
393
395
396
397
405
409
Contents
xi
PART 7
477
495
496
497
498
498
501
504
PART 8
Viewing Reports
507
509
512
513
517
xii Contents
About Guest Access in the Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
Chapter 57 / Viewing Reports in Modern SAS Visual Analytics Viewer (Preproduction) . . . . . . . . 529
PART 9
Appendixes
531
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538
Graphs, Charts, and Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539
Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
Other Report Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
Appendix 3 / Editing a Data Expression in Text Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561
Appendix 4 / Aggregations for Measures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565
Appendix 5 / Operators for Data Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567
Repairing Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Alert Notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Exporting Data from Report Objects to Microsoft Excel 2007 . . . . . . . . . . . . . .
Specifying Colors for Data Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
597
598
599
599
Your First Look at the Classic SAS Visual Analytics Home Page . . . . . . . . . . . 607
Manage Content on the Classic Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Manage Collections on the Classic Home Page . . . . . . . . . . . . . . . . . . . . . . . . . 612
Contents
xiii
Working with the Right Pane on the Classic Home Page . . . . . . . . . . . . . . . . . . 613
Discover Details Using the Object Inspector on the Classic Home Page . . . . 615
Add Comments to Objects on the Classic Home Page . . . . . . . . . . . . . . . . . . . 617
Specifying Your Preferences for the Classic Home Page . . . . . . . . . . . . . . . . . 618
About Searching from the Classic Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . 620
Refining Your Search Results for the Classic Home Page . . . . . . . . . . . . . . . . . 622
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629
xiv Contents
xv
on that data.
Persons responsible for managing SAS servers and managing the SAS Visual
Analytics environment should refer to SAS Visual Analytics: Administration
Guide.
The content of this document is also applicable to other SAS solutions that
integrate with and use SAS Visual Analytics features.
Prerequisites
Here are the prerequisites for using SAS Visual Analytics:
n A user ID and password for logging on to SAS Visual Analytics.
n A supported web browser installed on your desktop client.
n A supported version of the Adobe Flash player installed on your desktop
client.
n Access to data sources that can be used to obtain data for exploration or
reports.
If you have questions about whether you are ready to use SAS Visual Analytics,
contact your system administrator.
Documentation Conventions
This book uses short forms of the following phrases where the meaning is clear
from context:
Long Form
Short Form
Nickname*
the administrator
Administrator
the explorer
Data Explorer
the designer
Report Designer
the viewer
Report Viewer
Data Preparation
* Application nicknames are used on the home page, in the banner, and in the right pane.
xvii
Whats New
Whats New in SAS Visual Analytics
7.2
measure variables.
n A logistic regression visualization, which creates predictive models for
category variables.
n A generalized linear model visualization, which creates predictive models for
measure variables.
n A cluster visualization, which segments the input data into clusters.
n Model comparison, which compares two or more predictive models.
n You can create interaction effects, which are used when the contribution of
can be manually changed to the new report theme by using the Styles tab.
n You can export an image of a report object.
n New options (for example, adding page numbers) are available for printing to
PDF.
n You can attach a PDF of a report to an e-mail message.
n When you add e-mail addresses to the To line in the E-mail window, the
xix
n A new Show Selected at Top option is available on the Data tab for basic
filters.
n The Data tab has a new Delete Filter option when you are editing individual
filters. It also has a new Show Selected at Top option for basic filters.
n A Remove All Data Items menu item is now available for crosstabs and list
tables.
n Text in the Location field on the Report Properties window is now selectable,
which makes it easier for you to share the location of your report with other
users.
xxi
Accessibility
For information about the accessibility of this product, see Accessibility Features
of SAS Visual Analytics 7.2.
Part 1
Introduction to SAS Visual Analytics
Chapter 1
About SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 2
Accessing SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1
About SAS Visual Analytics
What Is SAS Visual Analytics? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Benefits of Using SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
How Does SAS Visual Analytics Work? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
SAS Visual Analytics User Community . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
data
n empowers users to visually explore data, based on any variety of measures,
mobile device
Explore Data
Utilize Self-Service
Predictive and
Prescriptive Analytics
Create Hierarchies
Dynamically
Filter on Selection
Viewer
Export Visualizations
Build Analytical
Models
Analyst
Home
Find Content
Statistician or
Data Scientist
Explore Data
Create Report
Prepare Data
Report Designer
Manage
Environment
Reports
Build Predictive
and
Descriptive Models
Evaluate Models
View on
Mobile Device
View Online
and Offline
Filter and Drill
Collaborate
Generate Model
Outputs
Customize Reports
Using Parameters
Create Report
Data Administrator
Design Reports
and Dashboards
Layout and
Style Precisely
Define Interactions
and Display Rules
IT Administrator
Add Controls
for Filtering
Schedule and
Distribute Reports
View on Web
View Online
Filter and Drill
Collaborate
Customize Reports
Using Parameters
Prepare Data
= SAS Visual Analytics license
Join Tables
Stage Data
Distribute Data
Manage
Environment
Monitor Resources
Administer Security
Load Tables
Manage
Mobile Devices
and
LASR Servers
2
Accessing SAS Visual Analytics
About SAS Visual Analytics Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Authenticated Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Guest Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Use the SAS Home Page to Access SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . 8
Overview of SAS Visual Analytics Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
About the Availability of Menus and Menu Selections in
SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
About Application Themes in SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Personalize SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Guest Access
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 the viewer. Guest access uses a shared account, so it does not
provide individualized features, such as history or alerts. If provided by the
system administrator, favorites and preferences are read-only features.
Accessing SAS Visual Analytics as a guest is useful if you do not have a
metadata identity. This enables you to view reports that are widely available
under a generic, shared account. You can also view reports that are available to
the public on the Internet.
list tables.
n whether the data for a report has been defined. For example, if the data has
For more information about roles and capabilities, see the SAS Visual Analytics:
Administration Guide.
application. Several themes are available, including the SAS High Contrast
theme. For more information, see Specify Global Preferences on page
618.
You can also change the themes that are used in reports. For more
information, see About Report Themes on page 302.
n Configurable focus indicator: The interface provides an indicator of the
current location of the focus. You can configure the focus indicator to make it
easier to see. For more information, see Specify Global Preferences on
page 618.
n Color inversion: You can invert the colors in the interface to improve
using the zoom in (Ctrl+plus sign) and zoom out (Ctrl+minus sign). You can
reset the zoom state (Ctrl+0) keyboard shortcuts.
n Landmarks in the user interface: Landmarks are references to the primary
areas of an applications interface. They provide a quick and easy way for
keyboard users to navigate to these areas. Press Ctrl+F6 to open the
Landmarks window.
way to perform tasks or navigate the user interface. For more information,
see Keyboard Shortcuts for SAS Visual Analytics on page 533.
For more information, see Accessibility Features of SAS Visual Analytics 7.2.
11
Part 2
Accessing Data
Chapter 3
Overview of Data Flow in SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . 13
Chapter 4
Importing Local Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Chapter 5
Importing Data from Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Chapter 6
Importing Data from Other Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
12
13
3
Overview of Data Flow in SAS Visual
Analytics
Data Flow in SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Self-Service Data Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Managed Data Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
After a SAS LASR Analytic Server Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Requirements for Importing Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
SAS Visual Analytics Administrator provides features that are most commonly
associated with managed data access. The administrator enables control of
whether tables are loaded to memory and secures access to in-memory tables.
15
17
4
Importing Local Data Files
Import a Local Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Limitations and Restrictions for Importing Local Data Files . . . . . . . . . . . . . . . . . 19
Large Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Importing Data from Spreadsheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table Names, Column Names, and Special Characters . . . . . . . . . . . . . . . . . . . . . . 20
Usage Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
SAS Web
Application Server
Self-Service
Components
SAS Workspace
Server
Job Execution
Service
PROC IMPORT
SAS Data Set
DBMS
Spreadsheets
and
Delimited Files
Note: When you import a SAS data set, it is not processed with PROC
IMPORT. SAS data sets are transferred to output with a DATA step.
19
(Optional) Click Preview to view the data. Preview displays up to 500 rows
from the file.
TIP Previewing the data can help you determine whether you specified
the correct encoding.
4 (Optional) In the Output Table section, enter the name for the output table
97-2003 Workbook (XLS) files. You cannot import XLST or other Excel file
types.
Here are some key points about importing XLSB files:
o
The machine for the SAS Workspace Server must have the following
provider software installed: Microsoft Data Access Components (MDAC)
The bit version of Microsoft Access Database Engine must be the same
as the bit version of SAS.
You can import XLSB files only if the SAS Workspace Server is running
on Microsoft Windows.
TIP If your spreadsheet is from an unsupported Excel file type, then try
saving it as an XLSX file before importing it.
n When you import a spreadsheet (from your PC) that has multiple worksheets,
by default, all of the worksheets are imported. A table is created for each
worksheet. You can clear the check boxes for the worksheets that you do not
want to import.
n Importing pivot tables is not supported.
filename.
n When you import a spreadsheet, table names are handled as follows:
o
special characters include / \ * ? " < > | : - and period (.). After the
initial table name is determined, any unsupported special character in the
name is replaced with an underscore.
n Table names are shortened to 32 characters because that is the table name
length that is supported by SAS. The entire name appears as the label.
If you clear the Includes column names check box or the First row contains
column names check box, then the column names are generated for you as
follows:
n Spreadsheets Column names are assigned A, B, C, and so on.
n Text files Column names are assigned VAR1, VAR2, and so on.
Usage Notes 21
The following table identifies how a column name that begins with a number,
such as 2014sales, or that uses numbers only, such as 2014, will appear after
being imported:
Source File Column Name
2014sales
2014
files.
Usage Notes
Review the following notes if you have trouble importing data:
n Before you click OK to import the data, click Preview. Preview shows an
accurate representation of the column names and data values that will be
available after the import.
n If SAS is configured as a Unicode server at your site, then you have the most
flexibility for importing data. Specifically, SAS as a Unicode server helps with
using column names or filenames (that are used as table names) that have
double-byte characters.
n When you import a delimited text file (CSV file), you must specify the
encoding of the text file. In some cases, the import reports success, even
though the data might be corrupted. It is important to verify the imported
data.
n If you import a SAS data set that uses user-defined formats, then you must
ensure that the custom format catalog is available to the SAS Web
Application Server. For more information, see Work with User-Defined
Formats on page 37.
n If importing large data files at the same time is common for your deployment,
then you should be aware that large data files are written to temporary disk
space on the server. In extreme cases, this can cause temporary disk space
to become full. Systems that run out of disk space can become unresponsive
and difficult to troubleshoot.
n If you import data from text files and plan to append the data, then you must
verify that the column data types and lengths match the table that you want
to append to.
23
5
Importing Data from Servers
Import a SAS Data Set on a Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Import a Database Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Database Connection Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Additional Options for Importing Hadoop Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Additional Options for Importing ODBC Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Additional Options for Importing Oracle Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Additional Options for Importing PostgreSQL Tables . . . . . . . . . . . . . . . . . . . . . . . . 27
Additional Options for Importing Teradata Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
DATA Step
SAS LASR
Analytic Server
(Optional) In the LASR Table section, enter the name for the table and a
description. The description is limited to 256 characters. Review the library
and location settings by clicking Advanced and make changes if necessary.
You do not have access to the Advanced section if you are using the
explorer or designer and do not have the Build Data capability. Instead, you
can import the data to a general-purpose area or select Store the table in a
private location to prevent other users from accessing the data.
3 Click OK.
MapR, Pivotal HD
Note: BigInsights, Cloudera, Hortonworks, MapR, and Pivotal HD all use the
SAS/ACCESS Interface to Hadoop, even though they have different menu
selections.
To import a database table:
1 From the Import Data window, select the database name from the list of
server or Hadoop databases. These lists include only the data sources for
which a SAS/ACCESS product is licensed and configured and that your
administrator has granted you the capability to use.
If you want to import SAS Data Set on a server, see Import a SAS Data Set
on a Server on page 23 for more information.
2
Specify the connection information. Here are some key points about
specifying connection information:
n The Server field corresponds to the host name for the server. Some
25
n In the DBMS table names field, you can import multiple tables at the
same time. To do this, hold down the Ctrl key while selecting the table
names in the Choose Tables window. During the import, an icon in the
Status column indicates whether the table was successfully imported, if it
failed, or if you chose to cancel. By clicking the link in the Remarks
column, you can view additional information, such as log or error
messages.
For connection details for specific databases, see the Database Connection
Tips on page 26 topic.
Most fields are case sensitive. For example, specifying a value of products
in the Database field might not be the same as specifying PRODUCTS. Case
sensitivity depends on the database vendor. Furthermore, some databases
use schemas. Some databases automatically use the user ID as the schema
if a schema is not explicitly specified. Be aware that the User ID and
Schema fields can be case sensitive. Check with your database
administrator if you are unsure.
3 Click Browse to select the table to import.
4
The options keyword is submitted with any options that you specify in
this field.
5
Click OK.
27
service name for the connection information is in this file. See the following
figure:
29
6
Importing Data from Other Sources
Import Data from Facebook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Import Data from Google Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Import Tweets from Twitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2 Click OK in the Import Facebook Data window to accept the terms and
conditions.
If you would like to view the terms or remove authorization after completing
this step, click Clear Authorization on the lower left-hand side of the Import
Facebook Data window.
3
Indicate the Facebook fan page that you want to import. Valid values include
the full URL (for example, http://www.facebook.com/SASsoftware) or
the page name (for example, SASsoftware).
(Optional) In the LASR Table section, modify the table name and description.
Review the library and location settings by clicking Advanced. Make any
necessary changes.
You do not have access to the Advanced section if you are using the
explorer or designer and do not have the Build Data capability. Instead, you
can import the data to a general-purpose area or select Store the table in a
private location to prevent other users from accessing the data.
8 Click OK.
A Facebook limitation can cause the table to be created with only partial data. If
this occurs, you will receive a warning message. To get a complete data set, try
making one or more of the following adjustments before rerunning the import:
Click Obtain access code in the Import Google Analytics window. The
Google Analytics service opens in a new window.
3 After signing in with your Google user name and password, click Accept to
Navigate back to SAS Visual Analytics. Paste the code (Ctrl+V) in the Paste
access code here field.
(Optional) Modify the fields and date range based on the data that you would
like to import.
Note: The default value for the maximum number of rows that you can
import is 100,000. For more information, contact your administrator.
(Optional) In the LASR Table section, modify the table name and description.
Review the library and location settings by clicking Advanced. Make any
necessary changes.
You do not have access to the Advanced section if you are using the
explorer or designer and do not have the Build Data capability. Instead, you
can import the data to a general-purpose area or select Store the table in a
private location to prevent other users from accessing the data.
(Optional) Review the Proxy Server section. Make any necessary changes.
10 Click OK.
originally imported.
31
n Indicate both a different library and a different output folder than when the
The search operators that you can use are described at https://
dev.twitter.com/rest/public/search.
3
(Optional) In the LASR Table section, enter the name for the table and a
description. Review the library and location settings by clicking Advanced.
Make any necessary changes.
You do not have access to the Advanced section if you are using the
explorer or designer and do not have the Build Data capability. Instead, you
can import the data to a general-purpose area or select Store the table in a
private location to prevent other users from accessing the data.
(Optional) Review the Proxy Server section. Make any necessary changes.
5 Click OK.
The search results from a Twitter import in SAS Visual Analytics and the search
results from Twitters own search interface do not match exactly. Each uses a
different mechanism to download tweets. A Twitter import in SAS Visual
Analytics uses Twitters public search API. There are limits on what data and
how much data that SAS can download using Twitters public search API. These
limits might not apply to Twitters own search interface. For more information,
see https://dev.twitter.com/rest/reference/get/search/tweets.
For information about the data structure of imported tweets, see Appendix 10,
Twitter Data Details, on page 603.
Note: Rate limits apply to the Twitter service. Such limits are beyond the control
of SAS Visual Analytics. You are required to follow all applicable terms of use
that Twitter and others might promulgate for Twitter data.
33
Part 3
Preparing Data
Chapter 7
Overview of SAS Visual Data Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Chapter 8
Specifying Preferences for SAS Visual Data Builder . . . . . . . . . . . . . . . . . . 39
Chapter 9
Creating Data Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Chapter 10
Working with Tables in Data Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Chapter 11
Working with Columns in Data Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Chapter 12
Working with Filters in Data Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Chapter 13
Working with Joins in Data Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Chapter 14
Creating LASR Star Schemas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Chapter 15
Working with SAS LASR Analytic Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
34
Chapter 16
Importing SAS Information Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Chapter 17
Supporting Text Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Chapter 18
Customizing Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Chapter 19
Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Chapter 20
Using the Results Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
35
7
Overview of SAS Visual Data Builder
What Is SAS Visual Data Builder? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Your First Look at the Data Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Import Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
About Managed Access to DBMS Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Work with User-Defined Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
After you import the data, you can prepare it for analysis or join it with existing
data.
The data builder provides a series of features that take advantage of the inmemory tables in SAS LASR Analytic Server.
You can perform the following operations to add data to memory in the server:
n load an existing table directly into memory
n load the results of a data query into memory (or stage the data and then load
it into memory)
n append rows to an in-memory table
1 The application bar enables you to return to the home page and to access
other parts of SAS Visual Analytics and other SAS applications that integrate
with the home page. You can access your recently created or viewed reports,
explorations, stored processes, data queries, or other objects in your recent
history. Buttons are displayed for each open application.
2 The menu bar contains menus that enable you to perform tasks such as
creating new data queries and LASR star schemas. The right side of the
menu bar has a memory gauge that displays the memory utilization for a
distributed SAS LASR Analytic Server. You can also sign out of SAS Visual
Analytics.
3 The navigation pane displays a tree (the SAS Folders tree) of tables and
data queries.
4 The center of the screen contains the workspace. When you create a new
37
5 The right pane enables you to manage the properties of the item that is
data queries.
Import Data
The data builder has self-service data import features. After you select File
Import Data, you can click the link for the type of data that you want to import.
For more information, see Chapter 4, Importing Local Data Files, on page
17,Chapter 5, Importing Data from Servers, on page 23, and Chapter 6,
Importing Data from Other Sources, on page 29.
39
8
Specifying Preferences for SAS
Visual Data Builder
Specify Global and General Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Specify Your Preferences for the Data Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
41
9
Creating Data Queries
What Is a Data Query? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
About Creating Data Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Save Your Data Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Save a Data Query as a New Data Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Use the Design Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Adding a Data Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Add a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Add a Subquery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Support for Special Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Best Practices for Adding Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Specify Properties for a Data Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
The default location for saving data queries is initially set to /My Folder. If you
save the data query in a different folder, then the complete length of the path
and name is limited to 128 characters.
Note: If the data query uses a SAS LASR Analytic Server library for the output
table (this is the default), then the server does not need to be running when you
save the data query. However, the server must have been started at least once
in the past. When you save it, the data builder checks the metadata
authorization for the library and table before it performs the save. If the server
has never been started, then there is no security key to use for checking
authorization. For more information, see "Security Keys" in SAS Visual
Analytics: Administration Guide.
Filters the data on the Where or Having tab for the geographic region.
3 Clicks Clear on the Outputs tab, and then specifies new output table
information. This ensures that the original output table, Sales, for the original
data query is not overwritten.
4
43
See Also
Output Tables on page 48
workspace.
n Join tables by using your pointer to select the source column, and then drag
table in the workspace or by right-clicking on the table and selecting Add All
Columns.
n Use the Column Editor tab to specify column expressions, aggregations,
and sort. You can set the attributes for a column, such as the type, format,
and label.
n View the Output Columns tab to see the number of output columns and
attributes. When you specify aggregations and pivot by columns, the number
of output columns can increase dramatically.
n Click
n Check the Messages tab for information about warnings and errors such as
See Also
Add a Subquery
After you have created a data query and saved it, it can be used as an input
data source to another data query. To add a subquery, use the SAS Folders tree
to locate the data query (
workspace.
), and then drag and drop the data query onto the
The subquery is represented in the workspace by the columns that are selected
for output in the subquery.
If you are not using a fact table or dimension tables, then the sequence for
adding tables to the workspace might not be very important. Just remember that
the first table dropped onto the workspace is assigned as the left table, and you
can switch the left table and right table on the Joins tab. The data builder takes
advantage of vendor-specific features in SQL processing whenever possible. If
the source tables are from a third-party vendor database, then the
SAS/ACCESS Interface engine can optimize the performance of the data query
by passing the SQL statements through to the database.
Library
specifies the library to use for the staging table or output table. Click
select a different library.
to
Partition by
specifies the column to use for partitioning the output table. This property
applies when the output table is in a SAS LASR Analytic Server library or
SAS Data in HDFS library only. For more information, see Partition Tables
on page 78.
See Also
Specify Properties for a Source Table on page 48
47
10
Working with Tables in Data Queries
Source Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Specify Properties for a Source Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Output Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
About Output Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Specify an Output Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Staging Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
About Staging Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Specify a Staging Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Output and Staging Table Interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Create SQL Query Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Source Tables
When you drop a table onto the workspace, the data builder connects to the
SAS Metadata Server to determine the column names and data types for the
table. When you drop a subquery onto the workspace, the data builder makes
the same request, but determines the column names and data types for the
output table of the subquery.
You (or an administrator) must register a table in metadata before using it as a
source table for data preparation. When you import data from a file, a database,
Facebook, Google Analytics, or Twitter, the data builder automatically registers
the data in metadata as a table. Source tables can also be registered using SAS
Visual Analytics Administrator or SAS Management Console.
See Also
See Also
Use the Auto-Aggregate Functions on page 57
Output Tables
About Output Tables
When you create a data query, you specify an output table on the Outputs tab in
the right pane. When you save the data query, the output table is registered (or
updated) in the metadata. Registering the table in metadata enables you to use
it as a source table for another data query or another SAS application. When
you run the data query, the physical output table is created, and the table is
updated in metadata.
Subqueries do not require an output table. If you do not need to view the results
of a data query that you intend to use as a subquery, then you can click Clear on
the Outputs tab and still save the subquery. You can then drag and drop the
subquery into a data query.
When you create a data query, the default output table name is OutputTable.
Staging Tables 49
How To
* If you replace the default table name, OutputTable, with another name before you save the data query, the
data builder registers a new output table and uses it with the data query.
You can enter a name that is up to 32 characters as the output table name. If a
third-party vendor database product is used for the output table, then the
number of characters might be less.
If you select a SAS LASR Analytic Server or SAS Data in HDFS library, the
Partition by menu becomes available.
Staging Tables
About Staging Tables
Staging data is a best practice because you can use the data builder to access
and transfer data from operational systems once, rather than frequently interfere
with the operational systems and reduce their performance. Using the data
builder to stage data can provide the advantage of adding calculated columns
when you stage the data.
Like the output table, the staging table is registered in metadata when you save
the data query. The physical table for the staging table is created when you run
the data query.
You cannot specify the name for a staging table. The name of the output table is
used, and an _STG suffix is applied to the name. The suffix is used for the table
name in metadata. The physical name of the staging table does not include the
suffix.
Specify a library.
Note: The data builder is initially configured to use the Visual Analytics
Public LASR library and the Visual Analytics Public HDFS pair of libraries. If
you specify different libraries, then make sure that you understand how the
path in HDFS is related to the server tag for the SAS LASR Analytic Server
library. For more information, see SAS Visual Analytics: Administration
Guide.
table is in the SAS Data in HDFS library, then the staging table is
compressed. The staging table will automatically be compressed when it is
loaded to memory on the SAS LASR Analytic Server.
The following table identifies the supported combinations for output tables and
staging tables. In addition, whether you can append data to tables is indicated.
Table 10.1
Output Table
Staging Table
Append Data
SAS or DBMS *
None
Supported
None
Not supported
Teradata or Greenplum **
None
Supported
None
Supported
SAS or DBMS *
SAS or DBMS *
Supported
SAS or DBMS *
Supported ***
Staging Table
Append Data
Not supported
51
Teradata or Greenplum **
Supported ***
* The SAS or DBMS value represents data stored in SAS data sets or a third-party vendor database,
respectively.
** The Teradata or Greenplum value represents deployments that use a third-party vendor appliance as a co-
The information about appending data in the previous table applies to data
queries. See Appending In-Memory Tables on page 80 if you are working
with in-memory tables on SAS LASR Analytic Server exclusively.
See Also
Chapter 15, Working with SAS LASR Analytic Server, on page 75
Interactions
Base SAS
Interactions
DBMS
Note: In some cases, the check box is enabled, but using this option can result
in an error when running the data query. For example, if you use a DBMS library
for the output table, you must have permission to create a view. You can clear
the check box to create the output table as a physical table in these cases.
53
11
Working with Columns in Data
Queries
Adding Columns to a Data Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Remove Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Specify a Column Expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Specify Aggregations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Remove All Aggregations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Use Group By Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Use the Auto-Aggregate Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Use the Pivot By Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
TIP If you select the column name an additional time, then the column is
added to the data query again. This can be helpful if you want to use a
column for both numeric and character data. When you add a column
more than once, a number is added to the column name. If you change the
column name, then you must make sure that you do not have more than
one column with the same name.
n Click the Column Editor tab and enter a column name, expression, and type
in the bottom row of the table. The remaining fields are optional.
Remove Columns
To remove a column from a data query:
1
Click
to open the expression builder. The table name and column name
are added automatically as the default SQL expression.
The expression is limited to 1024 characters.
4 On the Fields tab, select columns from the source tables that you have
Specify Aggregations
55
Specify Aggregations
To specify an aggregation for a column:
1 On the Column Editor tab, place your pointer in the Aggregations cell for
the column and click. Click the ellipsis button to select the aggregations to
use.
2
Select the check boxes for the aggregate functions to use. Click Apply.
Note: After you click Apply, all of the other columns are automatically
specified as GROUP BY columns. You can change a column from GROUP BY
to an aggregate function by repeating this step for the column.
57
Aggregations window.
4
Select the check boxes for the aggregate functions that you want to apply,
and then click Apply.
Whenever you add a column to the data query, the selected aggregate functions
are automatically applied.
On the Column Editor tab, place your pointer in the Pivot By cell for the
column to use as the pivot column. Click the ellipsis button to select the pivot
column and values.
2 In the Pivot Values dialog box, select the pivot by column. You can enter
After the unique values for the column are loaded, select the check boxes for
the values to use in the summarization. Click Apply.
The following display shows an example of the Column Editor tab when a pivot
by column is used. The minimum and maximum Total_Retail_Price are
calculated for each Customer_ID and are then pivoted by (transposed by) three
values of the Product_Category column.
Figure 11.1 Column Editor Tab with a Pivot By Column
TIP TRP is specified as the label for the Total_Retail_Price column. Look at
the next display to see how the label is used to create labels for the new
columns.
The following display shows how pivoting the Customer_ID column by three
values of the Product_Category column results in additional output columns. A
substring of the pivot by values is used as a prefix to each column name and the
59
aggregate function is used as a suffix. The pivot by column label and aggregate
function are used in the output column label.
Figure 11.2 Output Columns Tab with Pivot By Values
61
12
Working with Filters in Data Queries
About Filtering Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Specify a WHERE Clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Specify a HAVING Clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Best Practices for Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
2 On the Fields tab, expand the table node, and select the column to use for
filtering data.
TIP You can enter a value in the Filter fields field to locate the column.
3
Double-click the column or drag and drop it in the SQL expression area.
For character variables, you can click column_name Values to view the
unique values of the column. In the Filter Values window, select the check
boxes to specify the unique values to include in the filter.
Click Apply to add the unique values to the SQL expression area.
(Optional) You can click the Functions tab and select the functions to use
with filtering.
(Optional) You can add a subquery to the filter using a table from a different
library. On the Libraries tab, click
to add a library.
After you select a library, expand the library node, and select the table that
you want to use for the subquery.
Note: In the SQL expression, you must enclose the subquery in
parentheses.
Number of Values
Edit
Example
CARS.Make = 'Acura'
Specify an IN operator
and enclose the unique
values in parentheses.
CARS.Make IN (
'Acura', 'Audi')
Numeric comparison
Specify a numeric
operator and a constant,
or specify a numeric
operator and another
column name.
CARS.Cylinders >= 6
Click
2 On the Fields tab, expand the table node, and select the column to use for
filtering data. The Output Columns node includes the calculated columns.
TIP You can enter a value in the Filter fields field to locate the column.
3 Double-click the column or drag and drop it in the SQL expression area.
4 For character variables, you can click column_name Values to view the
unique values of the column. In the Filter Values window, select the check
boxes to specify the unique values to include in the filter.
Click Apply to add the unique values to the SQL expression area.
5 (Optional) You can click the Functions tab and select the functions to use
with filtering.
(Optional) You can add a subquery to the filter using a table from a different
library. On the Libraries tab, click
to add a library.
After you select a library, expand the library node, and select the table that
you want to use for the subquery.
Note: In the SQL expression, you must enclose the subquery in
parentheses.
7 Edit the HAVING clause in the SQL expression. The syntax is identical to
remove the reference to the table from the filters before you remove the
table. Otherwise, if you remove a table that is referenced in a filter, then all of
the filtering conditions are cleared.
n When adding a subquery using the Libraries tab, an additional step is
needed if the column names or table names are written in a language that
uses a double-byte character set. After you finish adding the columns, you
must manually enter an n-literal to the string on the Code tab for each
column name or table name in a language that uses a double-byte character
set. For example:
'TABLE_NAME'n.'Column_name'n
For more information about editing code manually, see Chapter 18,
Customizing Code, on page 87.
65
13
Working with Joins in Data Queries
About Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
How Does the Automatic Join Feature Work? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Feature Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Using Foreign and Primary Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Matching by Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Selecting the Join Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Adding a Join . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Drag and Drop Join Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Use the Joins Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Example: Joins with a Junction Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Remove a Join . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Manage Joins in a Data Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Best Practices for Managing Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
About Joins
SAS Visual Data Builder supports joins for tables and subqueries. You can join
tables to each other, including self joins. You can join subqueries to tables and
join subqueries to subqueries. When you use a subquery in a join, the join
condition is made against the output table for the subquery. The data builder
supports joining up to 256 tables.
When you drop a table or subquery onto the workspace, the data builder
attempts to determine a join condition automatically. When the data builder
creates a join automatically using foreign keys or by matching columns, the join
is added as an inner join. The data builder also supports left, right, and full joins.
You must specify the join type manually if you do not want an inner join.
In addition to easily adding joins to a data query, the data builder generates an
SQL statement with all of the joins declared explicitly. For example, you can
specify an inner join in a WHERE clause, such as WHERE
t1.order_id=t2.order_id. However, mixing inner joins in a WHERE clause
and outer join types in a single data query can be complex to read and
understand.
SAS Visual Data Builder always generates an SQL statement with inner joins
declared explicitly. For example, see the following code sample:
Matching by Name
If there is no foreign key or primary key information for the table that is dragged
and dropped onto the workspace, then the data builder does not use foreign key
or primary key information for the tables already in the workspace.
The data builder retrieves the column information for all of the columns in the
newly added table. The data builder then iterates over each of the tables that are
already in the workspace in the same sequence in which they were added to the
workspace. The data builder compares the length, type, and name for each
column with each column in the newly added table. If a match is found, then the
tables are used in the join, and the columns are added as a join condition. The
data builder does not continue to search for matches between the two tables,
and it does not continue iterating over the tables that are already in the
workspace.
Adding a Join
67
If the column for the existing table is nullable but the column for the newly
added table is not nullable, then the tables use a right join.
If both columns for the existing table and newly added table are nullable,
then the tables use a full join.
If none of the previous conditions are met, then the tables use an inner join.
You can specify the join type by right-clicking on the join icon (
the join type from the menu.
) and selecting
Adding a Join
Drag and Drop Join Lines
To add a join by selecting a column name and dragging your pointer to another
column:
1
Place your pointer on one of the columns in a table to use, and then click and
drag your pointer to a column in the other table to use in the join.
If you want a join type other than an inner join, then select the join, right-click,
and select the join type.
TIP The first table that is added to the workspace is always set as the left
table. You can switch the right table and left table by using the Joins tab.
2 Click
3 Use the menus to replace Not Selected with the table names to use in the
The default join type is an inner join. Use the menu in the Join Type column
to select a different join type.
Click
6 Use the menus to replace Not Selected with the column names to use in
Click
To retrieve the transaction amount and transaction type from the Entity_Dim
table, it must have a join that uses the Bridge table instead of the first table (fact
table) that was added to the workspace.
To create a join to a junction (or bridge) table:
1 Add the fact table to the data query first.
69
Add the dimension tables, such as the Accounts_Dim table and junction
tables. The data builder attempts to join the tables automatically.
Review the join as follows:
a Check that the correct columns are used.
b Change the join type, such as from inner to left, as needed.
3 Add the tables that use the junction table, such as the Entity_Dim table.
Initially, the data builder attempts to join the tables to the fact table.
Correct the join as follows:
a Select the automatic join to the fact table, right-click, and select Remove
Join Condition.
b
Use your pointer to connect the keys from the junction table to the
dimension table.
Remove a Join
You can remove a join by using either of the following methods:
n Select the join in the workspace, right-click, and select Remove Join
Condition.
n Click the Joins tab, select the row in the table, and click
The Joins tab shows the join condition for the entire data query. Make sure that
you select a row in the upper table to set the columns in the Join conditions
area.
The workspace shows a link between the tables that are used in a join. If you
specify a left join or right join, then the
icon reflects which table provides the
bulk of the data. If you rearrange the tables in the workspace (switching the left
clicking
n Change the join type from left to right or from right to left.
71
14
Creating LASR Star Schemas
What is a LASR Star Schema? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Create a LASR Star Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
How Are Tables Used? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Input Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Column Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Output Table and Conserving Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Performance Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
are the same data type and length. If your tables do not use the same data
type and length, then there are two ways to correct the data:
o
Change the data definition in the system with the original data.
Create a data query that modifies the columns and outputs the table to an
in-memory table.
Drag and drop tables or data queries from the SAS Folders tree onto the
workspace. Keep the following suggestions in mind:
3 (Optional) If you do not want a column from the dimension table in the output
table, then select the column in the table in the workspace, right-click, and
select Remove Column.
Note: All of the columns from the fact table are automatically selected and
required to be included in the output table.
4
(Optional) Click the Joins tab to review the columns that are used to
generate the output table.
Click the Output tab, and specify a name for the output table.
7 Click
8 Click
, and specify a name and location for the LASR star schema.
to generate the output table.
from the
Because the star schema is formed in memory by the server, the first step is to
make sure that the tables are loaded to memory. Be aware that the tables are
transferred each time the star schema runs and this can reduce performance.
Conversely, if the tables are already loaded to memory on the server, the star
schema runs and generates the output faster.
When creating a star schema using tables from the same HDFS library, the star
schema will fail to run if one or more of the tables in the star schema is
encrypted, but the HDFS library is not encrypted. In this case, you will receive an
error message indicating that a password is needed for the encrypted tables.
This can occur when your administrator turns encryption off for a previously
encrypted library. Any table that was in the library beforehand will remain
73
encrypted. Your administrator can resolve the issue by turning encryption back
on for the library. Contact your administrator for more information.
Column Prefixes
The first 15 characters of a dimension tables name and the underscore
character are initially set as a prefix for the column names from the dimension
table. Column names for the output table are a combination of the prefix and the
original column name.
However, you can specify a different value for the prefix after you select the
table name from the menu at the top of the Inputs tab.
Column names from the fact table are not modified with a prefix.
TIP A column name is limited to 32 characters. If you have a long column
name, then reducing the prefix can help you keep more of the original column
name.
Performance Considerations
Creating a LASR star schema as a view can be more convenient than creating a
table, but accessing data through the view can impact performance negatively.
The scale of the impact depends on the size of the dimension tables. However,
the number of passes through the data is even more important. For example,
requesting percentiles or box plots or fitting statistical models requires passing
through the data multiple times. These requests are impacted more than a
request for summary statistics.
Keep the following considerations in mind:
accessing the data in a view is slower than accessing the data from a table.
n Creating a table requires more physical memory than creating a view. If your
system has sufficient memory capacity, then creating a table provides the
best performance for accessing the data.
75
15
Working with SAS LASR Analytic
Server
Understanding Co-Located Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Predefined Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Using SAS Data in HDFS Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Default Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Staging Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Output Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
76
76
76
77
77
Hadoop cluster that has been configured to use the SAS services from SAS
High-Performance Deployment of Hadoop)
n Teradata Data Warehouse Appliance
n Greenplum Data Computing Appliance
Predefined Libraries
The names and purposes of the libraries are as follows:
Visual Analytics Public LASR
This library is initially configured as the default library for the data builder. It is
automatically selected as the output library for importing self-service data,
creating data queries, and preparing in-memory data.
This library is intentionally configured as a general-purpose library with
extremely limited restrictions for securing data access.
Visual Analytics LASR
This library is initially configured to provide Write permission to data builder
users and administrators only. The initial security settings might align with
organizational goals for securing and managing data access.
For deployments that use a distributed SAS LASR Analytic Server, a pair of
libraries for the co-located data provider are predefined with permissions that
match the same initial security settings.
Staging Library
You can specify a SAS Data in HDFS library as a staging library. This is a
common use because the rows for the output table are distributed among the
77
machines in the cluster. The server can then read the data in parallel when it
loads the table to memory.
You must specify a SAS LASR Analytic Server library for the output library when
you use a SAS Data in HDFS library for staging.
Output Library
You can specify a SAS Data in HDFS library as an output library. The engine
distributes the rows for the table to the machines in the cluster. Afterward, you
can select the table from the SAS Folders tree, right-click, and select Load a
Table. This menu option loads the table from HDFS to memory on a SAS LASR
Analytic Server.
You can partition SAS Data in HDFS tables when they are used in an output
library. You can select a column to use from the Partition by menu. Partitioning
the table ensures that all of the rows with the same formatted value as the
selected column are distributed to one machine in the cluster. The rows are also
placed in the same HDFS block. When you load a partitioned table to memory,
the partitioning information is retained, and the result is a partitioned in-memory
table.
See Also
Partition Tables on page 78
Restrictions
The following restrictions apply to using SAS Data in HDFS libraries with SAS
Visual Data Builder:
n You cannot specify a SAS Data in HDFS library as an input library because
view the results on the Results tab because the SAS Data in HDFS engine
is a Write-only engine.
Input Libraries
When you select a SAS LASR Analytic Server table as an input table for a data
query, be aware of the following best practices if the table is large. If the table is
not large, then using it for input requires no special considerations.
Here are the considerations for using a large SAS LASR Analytic Server table as
an input table:
n A WHERE clause is processed in memory by the server if no aggregations or
joins are used. Specify a filter on the Where tab so that you use only the
rows that you want.
n Instead of using a data query (which transfers the data from the server to the
SAS Workspace Server and then performs the join), you can create a LASR
star schema. The LASR star schema performs the join in memory with other
in-memory tables.
Output Libraries
A SAS LASR Analytic Server library is initially configured as the default output
library. When you run a data query, click
table immediately.
You can select the Append data check box on the Properties tab to add rows
to an in-memory table. However, this option is not available if you use a SAS
Data in HDFS library as a staging library. Instead, for deployments that use
HDFS, you can use the data query to append rows, and then save the inmemory table to HDFS.
Partition Tables
When you specify a SAS LASR Analytic Server or SAS Data in HDFS library as
an output library, you can specify a partition key for the table. You can select a
column to use from the Partition by menu.
Partitioning uses the formatted values of the partition key to group rows that
have the same value for the key. All of the rows that have the same value for the
key are loaded to a single machine in the cluster. For SAS LASR Analytic Server
libraries, this means that the rows that have the same value for the key are in
memory on one machine. For SAS Data in HDFS libraries, all of the rows that
have the same value for the key are written to a single file block on one
machine. (The block is replicated to other machines for redundancy.) When the
partitioned table is loaded onto a server, the partitioning remains when it is in
memory.
If you select a partition key and also specify sort options for columns on the
Column Editor tab, the sort options are passed to the current engine in an
ORDERBY= option. This enhancement applies to SAS LASR Analytic Server
and SAS Data in HDFS libraries and can improve performance once the data is
in memory.
When you specify a partition key, avoid using a variable that has few unique
values. For example, partitioning by a flag column that is Boolean results in all
rows on two machines because only two values are available. At the other end
of the spectrum, partitioning large tables by a nearly unique key results in many
partitions that have few rows.
Determining the optimal partition key can be a challenging task. However, as an
example, if you tend to access data based on a customer ID, then you might
improve performance by partitioning the data by customer.
See Also
SAS LASR Analytic Server: Reference Guide
Field
Description
Name
Description
Location
Library
Click OK.
table.
3 In the SASHDAT Table section, make any necessary changes to the
builder replaces the table if it already exists. You can specify the number of
redundant copies to save.
5 Click
6 Click
Note: The table is saved with the user ID of the user that started the SAS LASR
Analytic Server.
81
Select the table that you want to append data to from the Available tables
list, and click
to move it to the Base table field.
If the table that you want to use is not listed, click
to view a different
source library. If a table is added to the library after you click , then the list
does not automatically refresh to show the new table. Select the same library
again to refresh its contents.
3 Add tables to the Source tables list. These are the tables that have the rows
(Optional) If you select the Unload source tables after appending them to
the base table check box, then the source tables are dropped from memory
after the append completes.
Select this option only if you do not want to access the source tables
individually.
Click
6 Click
Note: If an administrator reloads the base table, any data that you previously
appended to the table will not be saved. The base table will go back to its
original content and size.
Note: If the append fails and you get an error message that says that the file is
read-only, in some cases it could mean that your administrator has indicated the
fullcopyto= option for the table. You cannot append to a table that includes
this option. Contact your administrator for more information.
library.
n The source tables can be LASR star schema views. However, the base table
cannot be a view.
n If you append tables with character columns of different lengths, then the
length of the column in the base table takes precedence. For example, if you
have a column in the base table that is 15 characters and a column in the
source table is 20 characters, the data from the source tables column is
truncated to 15 characters.
n If the base table is partitioned, then the source tables must be partitioned on
rows in the source table receive a missing value for the column that is not
present in the source table.
n If a source table has columns that are not present in the base table, then the
columns are dropped and are not appended to the base table. The base
table always maintains the same number of columns.
more than once. Review the source table list to ensure you did not
accidentally use a source table more than once.
Conserving Memory
After you append the source tables, the base table grows to accommodate the
additional rows. This consumes memory on the SAS LASR Analytic Server.
If you do not need to access the source tables after appending them, then you
can select the Unload source tables after appending them to the base table
check box. This option conserves memory, but you must ensure that the source
tables are loaded to memory again (often with newer data) before you can run
the append again.
In some deployments with limited network bandwidth, the data builder cannot
communicate with the SAS LASR Analytic Server monitor, and the memory
gauge fails to appear.
See Also
SAS Visual Analytics: Administration Guide
83
16
Importing SAS Information Maps
About SAS Information Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Import a SAS Information Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Limitations and Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
See Also
Base SAS Guide to Information Maps
).
The business logic is imported from the map and represented as an SQL query
on the Code tab.
See Also
Chapter 18, Customizing Code, on page 87
tables. Information maps that are based on OLAP cubes cannot be used.
n The information map cannot use more than 50 physical tables. A table that is
used more than once in a self join counts as one physical table.
n The information map cannot use more that 5000 physical columns. A column
that is used in more than one data item counts as one physical column.
n Prompts are not supported. Even if a prompt has a default value, the default
85
17
Supporting Text Analysis
Features Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Load a Stop List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Add a Unique Numeric Key to a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Features Overview
SAS Visual Analytics can perform text analysis with the explorer. To enable text
analysis, perform the following data administration tasks with the data builder:
n Load a stop list to filter out commonly used words.
n Add a numeric key to existing tables that have unstructured text.
n Acquire Twitter data to analyze tweet trends. For more information about
Twitter, see Chapter 6, Importing Data from Other Sources, on page 29.
Make changes to the location and library if necessary. Each stop list must be
stored in its own metadata folder.
A table named ENGSTOPL or GRMSTOPL is registered in the location and
library that you specified.
Click OK.
SAS Visual Analytics supports one stop list for each SAS LASR Analytic Server.
You load the stop list (which is a table) to memory by performing the previous
steps. If more than one library is registered for SAS LASR Analytic Server, then
2 Add the columns to include in the text analysis by clicking the column name
In the Column Editor, right-click on the first row in the table, and select Add
Generated Key Column.
A column that is named GENERATED_ID is added to the table.
When you run the data query, the GENERATED_ID column begins at zero and
increments for each row in the source table. If you select the Append data
check box on the Properties tab, then the data query increments from the
current maximum value.
If the data that you want to use is already in memory on SAS LASR Analytic
Server, then performing the previous steps results in the following sequence of
data movements:
n The data is read from memory on SAS LASR Analytic Server and transferred
You can avoid these data movements by adding the generated key column
before loading the table to memory on SAS LASR Analytic Server.
87
18
Customizing Code
Use the Code Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Preprocess and Postprocess Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Considerations for Manually Editing Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Before You Manually Edit Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Table and Column Metadata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Input and Output Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Output and Staging Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Validate Custom Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
statements that are run before and after the data query runs.
n The All Code view shows the generated SQL statements. Click
to unlock
the view so that you can manually edit all of the SAS statements for the data
query. After you have unlocked the view, the button icon changes to .
After you have unlocked the view, you cannot continue using the Design tab to
edit the data query, and the Preprocess and Postprocess views are disabled.
However, if you have not saved your changes to the code, you can click
able to use the Design tab.
to be
89
See Also
See Also
SAS Language Interfaces to Metadata
.
button is disabled. You
91
19
Scheduling
About Scheduling Data Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
How Does the Scheduling Feature Work? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Edit Data Queries That Are Already Scheduled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Stop Scheduled Data Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Caution about Scheduling Data Queries to Run Now . . . . . . . . . . . . . . . . . . . . . . . . 92
Scheduling Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
When Are the Scheduling Preferences Used? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Creating Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Why Use Events? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create a Time Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create a File Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
94
94
95
96
You can schedule the data query based on specified conditions (for example,
run immediately or run whenever a trigger condition is met).
The job, deployed job, and deployed flow are metadata objects. The data builder
stores them in the same metadata folder with the data query. The metadata
objects are named based on the following pattern:
vdb_name_timestamp
Note: Up to 42 characters from the data query name are used as the name.
92 Chapter 19 / Scheduling
When the specified conditions are met, the data query is run with the user ID
that scheduled it. This is the behavior for the Operating System Services
Scheduler.
Select the trigger that you want to delete, and then click Delete.
4 If you deleted the last trigger in the list, you must perform one of the following
Click OK.
7 Click
to save.
to run.
Note: If you deleted all of the triggers and then selected Run now, the
scheduled data query no longer runs but it will still exist in the SAS Management
Console. To permanently delete the scheduled data query, you must use the
SAS Management Console. For more information, see the Deleting Jobs and
Flows topic in Scheduling in SAS.
Use a SAS data set for the output table of the data query.
These steps result in an error condition because SAS unlocks a SAS data set
when it is opened for reading. When step 3 is performed, the output table is
93
locked, and no other process can overwrite the output table. The following
message is included in the SAS log:
You can avoid this error condition. If you want to schedule the data query to run
now, then close it, open it again, and schedule it to run now. Alternatively, you
can schedule the data query to run in the future and then close the data query.
Scheduling Preferences
Default Scheduling Server
By default, your deployment includes a server that is named Operating
System Services hostname.example.com. This server is used as the
default scheduling server.
Use the Server Manager plug-in to SAS Management Console to identify the
scheduling servers that are included in your deployment. You can specify a
different scheduling server in your application preferences. Any data queries that
you schedule after you specify a different scheduling server will use the new
scheduling server.
Some deployments include the Platform Suite for SAS server. To use this server,
change the scheduling server. The default name is Platform Process
Manager.
In all cases, when you schedule a new data query, the data builder retrieves
your default scheduling server, and uses that value to look up the scheduling
server in SAS metadata. The data builder uses the first server that matches the
value in SAS metadata. Including the host name, such as Operating System
Services hostname.example.com ensures that the data builder uses the
server that you specify.
94 Chapter 19 / Scheduling
If you have multiple server contexts and each context has its own batch servers,
then you should specify in preferences the servers that you want to use.
Lev1/SASApp/SASEnvironment/SASCode/Jobs.
When you schedule a data query, the SAS statements for the data query are
saved in a file. The file is saved in the path that is associated with the
deployment directory. The file is named based on the same pattern that is
described in How Does the Scheduling Feature Work? on page 91.
The data builder looks up the SAS Application Server in the SAS Metadata
Server using your scheduling server preference setting. The initial value is
SASApp. If a matching server name is not found, then the data builder uses the
first application server that is returned. After the server is determined, the data
builder looks up the deployment directory in that server context that matches
your scheduling server preference setting. If a matching deployment directory is
not found, then the data builder uses the first deployment directory that is
returned.
You can specify a different name for the default deployment directory. For more
information about deployment directories and using the Server Manager plug-in
to SAS Management Console, see Scheduling in SAS.
Creating Events
Why Use Events?
Events specify conditions that must be met before a step in the flow can take
place. You can use SAS Visual Data Builder to create two types of events.
n Time events are evaluated based on a specified time being reached.
Note: You can specify multiple time events. However, the Operating System
Services Scheduler (the default scheduler) can use only one of the time
events.
n File events are evaluated based on the state of a specified file.
Creating Events 95
You can create file events if your deployment includes a scheduling server that
supports them, and the flow is deployed to that scheduling server. Time and file
events can be used as triggers (conditions that must be met in order to run a
flow on the scheduling server).
In the New Time Event window, specify whether the time event should
happen one time only or more than once. If the time event should happen
one time only, then specify the date and time for the time event.
3 If the time event should happen more than once, then select More than
once and then select a radio button for how often the time event should
repeat (such as hourly, weekly, or yearly).
4 Specify the details of when the time event should repeat. The specific fields
that are available depend on the recurrence interval that you select.
If you select Hourly, then the time is calculated from hour zero on a 24-hour
clock. For example, if you leave Interval hour set to 1, then the data query
runs at hour zero (midnight), and runs each hour. If you set Interval hour to
2, then the data query runs every other hour, and the Offset hour specifies
whether to run on the even hours (when set to 0) or on the odd hours (when
set to 1). In this case, the Offset hour specifies the offset from hour zero
(midnight).
If the recurrence interval requires you to select start times, then use the
Hours and Minutes check boxes to select the times. The Minutes area
contains groupings of 10-minute intervals. Selecting a check box for a minute
grouping selects all of the minutes in that grouping.
TIP The following display is available after selecting More than once and
96 Chapter 19 / Scheduling
If you select multiple values for Hours, then all of the selections for Minutes
apply to all of the selected values. For example, if you select 19:00 (07:00
PM) and 22:00 (10:00 PM) for Hours, and 43 for Minutes, then the time
event is scheduled for 19:43 and 22:43.
6 If needed, specify the start date and end date for the time event. The default
is to start at the current date and time and not to have an end date.
97
In the New File Event window, specify or select the file to use for the file
event.
3 Select the condition to evaluate the file to make the file event true. For
example, if you selected not exist for the condition, the file event would be
true only if the selected file was not in the specified location.
4 If needed, specify the details (such as size or age) about the condition.
In the Export as a Job window, enter a name and specify a location. Click
Export.
98 Chapter 19 / Scheduling
setting is lost and you must repeat your steps with the Schedule Manager plugin.
See Also
Scheduling in SAS
99
20
Using the Results Tab
About the Results Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Data Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Navigate within the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Find . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Filter and Sort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Export Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Column Headings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Data Pages
When you view data, a SAS server retrieves the data from the data set. Instead
of returning all of the data, the data viewer requests a page of data. You can set
the page size to between 20 and 2000 rows.
A slider is provided at the bottom of the Results tab so that you can navigate
through the pages and browse the entire data set.
Find
Search for text or numbers in the data set by clicking , typing in the Find field,
and pressing Enter. The find feature searches through the rows in the data set
for the value, and it highlights the first row with the value. You can navigate
through the results by clicking Find next and Find previous.
Click
n Options tab
o
Case sensitive
n Columns tab
n The Sample tab is used to limit the number of rows to return or to select
distinct values.
n The Row Filter table is used to subset data with a WHERE clause. You can
filter on the values in multiple columns, set ranges for numeric values, and
use IN and NOT IN criteria for character values. If the number of distinct
values is less than 50, then you can select check boxes for the values. If
there are more than 50 distinct values, then you must enter the values to use
for filtering.
n The Column Filter tab is used to select the columns to display.
Column Headings
101
Export Data
You can save the data that you view as a comma-separated values file. After
you click , you can choose to export the rows on the current data page, all of
the rows, or a range of rows. The export feature has a limit of exporting 200,000
rows.
If you choose to export all of the data or a range of rows, then you must click
Retrieve Data before you can click Export as CSV.
Column Headings
Use the Headings menu to control the appearance of the column headings. You
can view the column name from the data set, the column label from the data set,
or a combination of the two. If a column does not have a label in the data set,
then the column name is used.
103
Part 4
Exploring Data
Chapter 21
Overview of SAS Visual Analytics Explorer . . . . . . . . . . . . . . . . . . . . . . . . . 105
Chapter 22
Specifying Preferences for SAS Visual Analytics Explorer . . . . . . . . . . . . 109
Chapter 23
Managing Explorations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Chapter 24
Managing Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Chapter 25
Working with Visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
135
Chapter 26
Working with Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
Chapter 27
Exporting Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Chapter 28
Managing Hierarchies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Chapter 29
Performing Data Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
104
Chapter 30
Sharing Comments in the Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
105
21
Overview of SAS Visual Analytics
Explorer
What Is SAS Visual Analytics Explorer? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
The Welcome Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Overview of the Welcome Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Create a New Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Open an Existing Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Your First Look at the Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Manage Tabs in the Right Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
1 The application bar enables you to return to the home page and to access
other parts of SAS Visual Analytics and other SAS applications that integrate
with the home page. You can access your recently created or viewed reports,
explorations, stored processes, data queries, or other objects in your recent
history. Buttons are displayed for each open application.
2 The menu bar offers common tasks, such as creating a new exploration.
3 The toolbar enables you to manage your explorations and visualizations.
4 The Data pane enables you to manage the data that is used in your
visualizations.
5 The data properties table enables you to set data item properties.
6 The workspace displays one or more visualizations.
filters and ranks, set global parameter values, and use comments.
8 The dock contains any minimized visualizations.
Roles
Filters
Ranks
Properties
Comments
Parameters
You can reorder the tabs in the right pane by dragging and dropping them.
109
22
Specifying Preferences for SAS
Visual Analytics Explorer
Specify Global Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Specify Your Preferences for the Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Select the default Map provider mode for geographic maps. The map
provider creates the background map for geo maps and for network
diagrams that display a map.
Note: You can change the map provider for an individual visualization by
editing the Map service value on the Properties tab.
If your Map provider mode is Esri, then you must select the specific Esri
map service that you want to use.
Select a Graph skin to change the visual effects that are applied to your
graphs. For example, many of the Graph skin settings apply lighting effects
to the features of your graph to create a 3-D appearance.
111
23
Managing Explorations
What Is an Exploration? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Create a New Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Save Your Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Delete Explorations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
What Is an Exploration?
An exploration (sometimes called a visual exploration) is a metadata object that
contains all of the visualizations and data settings from a SAS Visual Analytics
Explorer (the explorer) session. You can use explorations to save your session
for later and to share it with others.
Delete Explorations
To delete an exploration, use the SAS Visual Analytics home page. See
Manage Content on the Classic Home Page on page 610.
113
24
Managing Data
Managing Data Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Overview of Managing Data Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Manage Data Properties for Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Select a Numeric Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Select a Date or Time Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Show and Hide Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Sort Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Group Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Assigning Colors for Category Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Add Additional Data Sources to Your Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Replace a Data Source in Your Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Remove a Data Source from Your Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Refresh Your Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Creating Custom Categories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
About Custom Categories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Create a Custom Category for a Measure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Create a Custom Category for a Category or a Date . . . . . . . . . . . . . . . . . . . . . . . 120
Working with Global Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
About Global Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Create a Global Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Set the Value for a Global Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Edit a Global Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Delete a Global Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Creating Calculated Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
About Calculated Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Create a Calculated Data Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Creating Aggregated Measures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About Aggregated Measures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create an Aggregated Measure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Support for Aggregated Measures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
124
124
124
125
129
129
129
129
129
130
130
130
130
130
130
130
131
115
Specify the number of Decimals for the format. The Decimals value
specifies the number of digits that appear to the right of the decimal place.
A preview of your format appears in the Sample field.
In the Data Properties window or in the property table in the Data pane, click
the format for the data item. A window appears.
If necessary, select a more specific format from the Sample list. The format
names also represent sample values for the format.
Note: You can restore the default format by clicking Reset to Default.
Note: Time and datetime values in the explorer ignore daylight-saving time.
Click Select All to select or deselect all of the data items, or click the check
box beside each data item to select whether that data item is shown.
By First Letter
groups by the first letter of the data item name.
By Data Type
groups by data type (date, numeric, or character).
By Model Type
groups by model type (continuous or discrete).
By Classification
groups by data classification (category, geography, hierarchy, measure, or
aggregated measure).
By Format
groups by data format (for example, $CHAR, Numeric, Percent, or
MMMYYY).
By Aggregation
groups measures by the default aggregation.
Note: The default grouping is By Classification.
117
Right-click on a category from the Data pane, and then select Colors. A
color selection window appears.
2 For each category value to which you want to assign a color, select the value
from the Choose drop-down list, and then click the color box to select a
color. Click Apply to save your selection.
3
Right-click on a category from the Data pane, and then select Colors. A
color selection window appears.
2 Click Reset all to clear all of the color assignments for the category.
3 Click OK to apply your changes.
drop-down list.
2 Select
3
In the Change Data Source window, select or import the data source that you
want to use.
Note: If any data items in the previous data source do not exist in the new
data source, then a message appears. Any data items that do not exist in the
new data source are removed from your exploration. Any filters, ranks, or
calculated items that are based on the removed data items are also
removed.
119
drop-down list.
2 Select
Note: You cannot delete the last remaining data source from an exploration.
3 Confirm that you want to delete the selected data source.
Note: Any visualizations, filters, ranks, or calculated items that are based on
the deleted data source are removed from your exploration.
Select the measure that you want to use for the custom category.
As needed, click New label to add a new label group to the custom
category.
For each label group, click the label group heading (for example, Label1)
to specify the label text.
Note: The label text must use characters that are compatible with the
locale of the data source. If the data source uses Unicode, then your
labels can contain characters from any locale.
c For each label group, specify the values that are associated with the
label:
n For intervals, select
label group.
6 Select one of the following options:
2 Select the category or date that you want to use for the custom category.
3
category.
b For each label group, click the label group heading (for example, Label1)
label.
Drag and drop values from the Values list onto the label group.
5
121
In the expression editor, right-click the Parameter heading in the Data Items
list, and then select Create Parameter.
3 Specify the Type for the parameter. You can select either Numeric or
Character.
4 For character parameters, specify the Current value for the parameter.
6 Finish editing your item. If you close the expression editor window without
For character parameters, specify the Current value for the parameter.
For numeric parameters, specify the following:
Minimum value
specifies the minimum possible value for the parameter.
Maximum value
specifies the maximum possible value for the parameter.
Current value
specifies the current value for the parameter.
Format
specifies the data format for the parameter.
123
Select Data New Calculated Item. The New Calculated Item window
appears.
3 Select the data type for the calculated data item from the Result type drop-
down list.
Note: The data type is updated automatically based on the outermost
operator of your expression.
4 Build the expression for your calculated data item by dragging and dropping
data items, global parameters, and operators onto the expression in the right
pane. For each field in the expression, you can insert a data item, a global
parameter, an operator, or a specific value.
Note: You can double-click a data item in the Data Items pane to add it to
the first available parameter in the expression.
Note: Aggregated data items and derived data items are not supported for
calculation expressions.
When you drag and drop data items, global parameters, and operators onto
the expression, the precise location of the cursor determines where and how
the new element is added to the expression. As you drag the new element
over the expression, a preview appears, which displays how the expression
would change if you drop the element at the current location.
For example, if your current expression is ( Profit / Revenue ), and you
drag the x - y (subtract) operator over the open parenthesis symbol, then
the expression changes to ( [number] ( Profit / Revenue )). If
you drag the operator over the division symbol, then the expression changes
to ( Profit Revenue ).
aggregation for the calculated data item, and then click Select to choose the
data format.
6
Click Preview to see a preview of the calculated data item as a table. The
table displays the values of the calculated item and any data items that are
part of the calculation expression.
Click OK to create the new calculated data item. The new data item appears
in the Data Items pane.
Build the expression for your aggregated measure by dragging and dropping
data items, global parameters, and operators onto the expression in the right
pane. For each field in the expression, you can insert a data item, a global
parameter, an operator, or a specific value.
Note: You can create a new calculated item to use in the aggregated
measure expression. Click New Calculated Item to create the new calculate
item.
When you drag and drop items, global parameters, and operators onto the
expression, the precise location of the cursor determines where and how the
new element is added to the expression. As you drag the new element over
125
the expression, a preview appears, which displays how the expression would
change if you drop the element at the current location.
There are a large number of operator types available to perform
mathematical functions and evaluate logical processing such as IF clauses.
See Appendix 5, Operators for Data Expressions, on page 567.
Note: You can also edit your expression as text. See Editing a Data
Expression in Text Mode on page 561.
4
When you are finished creating your expression, click Select to choose the
data format.
7 Click OK to create the new aggregated measure. The new data item appears
127
129
Add an Operator
To add an operator to the expression:
1
From the Operators list, select the operator that you want to add. For a list of
the operators that are available, see Appendix 5, Operators for Data
Expressions, on page 567.
For any required parameters, select the parameter, and enter a value. Or,
right-click the parameter field, and select Replace with to select a data item
or a global parameter.
Replace an Operator
To replace an operator, drag and drop a new operator onto the existing operator
in the expression. You can also right-click an operator in your expression, and
select Replace Operator with operator.
Subset an Expression
To subset an expression and delete the remainder:
1
2 Right-click, and select Keep Operand. The parts of the expression that were
You can see the contents of the scratch area on the Scratch tab.
To move items to the scratch area, right-click part of the expression, and select
Move to Scratch Area. You can also drag and drop items from your expression
onto the Scratch tab.
To move an item from the scratch area to your expression, drag and drop the
item from the Scratch tab onto your expression.
To delete an item in the scratch area, click the
Right-click on a measure in the Data pane, and then select Duplicate Data
Item. The New Duplicate Item window appears.
Note: You can also invoke the New Duplicate Item window by dragging and
dropping the same data item onto a visualization more than once.
2 Enter a Name, a Format, and a Default aggregation for the duplicate data
item.
Right-click the category, select Geography, and then select the role type.
The role type can be any of the following:
Country or Region Names
specifies countries or regions by name.
Country or Region ISO 2-Letter Codes
specifies countries or regions by using two-letter country codes from the
ISO 3166-1 standard.
Country or Region ISO Numeric Codes
specifies countries or regions by using three-digit numeric country codes
from the ISO 3166-1 standard.
Country or Region SAS Map ID Values
specifies countries or regions by using the two-letter codes that are used
with the MAPSGFK library that is included with SAS/GRAPH.
Note: The two-letter SAS Map ID country values are identical to the ISO
31661 two-letter country codes.
Latitude
specifies a measure from your current data source that contains the
latitude (Y) coordinate values for the geographic role that you want to
define.
Longitude
specifies a measure from your current data source that contains the
longitude (X) coordinate values for the geographic role that you want to
define.
Coordinate Space
specifies the coordinate space (coordinate system) that is used to project
the longitude and latitude coordinate values.
4
Specify a data item as the unique row identifier for the exploration. You can
choose a category, a measure, or a calculated item. The unique row identifier
must have a unique value for each row of the data source.
TIP To determine whether the values of a category are unique, assign the
category to a bar chart with no measures. If the frequency of any value is
greater than one, then the category values are not unique. To determine
whether the values of a measure are unique, open the Measure Details
window, and then compare the Total Rows and Distinct Count statistics.
If the statistics are identical, then the measure values are unique.
Right-click the data item in the Data pane, and then select Set as Unique
Row Identifier.
Note: A nonunique row identifier can produce unreliable results.
2
Assign one or more categories to the Document Collection data role. Rightclick a category, and then select Document Collection.
Note: A document collection can be used in your visualizations the same
way a category is used.
135
25
Working with Visualizations
Overview of Visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
About Visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Visualization Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Working with Visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Create a New Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Manage Visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Arrange the Visualizations in the Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Use the Manage Visualizations Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Display Detailed Data for a Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Change the Data Source for a Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Control Visualization Data Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Manage Visualization Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Managing Visualization Data Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Add a Data Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Replace a Data Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Remove a Data Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Switch Data Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Work with Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Ranking Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Overview of Ranking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Create a New Rank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Delete a Rank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Managing Visualization Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Lock an Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Adjust an Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Transfer Axis Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Working with Visualization Data Ranges and Color Gradients . . . . . . . . . . . . . . 151
Support for Customized Data Ranges and Color Gradients . . . . . . . . . . . . . . . . . 151
Specify a Custom Color Gradient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Specify a Custom Data Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Share a Color Gradient and Data Range between Visualizations . . . . . . . . . . . . 152
Remove Customized or Shared Color Data Ranges . . . . . . . . . . . . . . . . . . . . . . . . 153
Working with Data Brushing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Overview of Data Brushing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Enable Data Brushing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
156
156
156
156
156
160
160
160
161
162
163
163
163
164
164
164
165
165
165
166
167
Contents
137
178
178
178
178
184
184
184
184
185
186
187
187
188
188
188
189
189
189
191
191
193
193
193
193
194
Overview of Visualizations
About Visualizations
SAS Visual Analytics Explorer (the explorer) displays data by using
visualizations. A visualization is an interactive visual representation of your data.
Visualization Types
You can assign any of the following types to your visualizations:
Automatic
Chart
Table
Overview of Visualizations
Crosstab
139
Bar Chart
Line Chart
Bubble Plot
Network
Diagram
Overview of Visualizations
Sankey
Diagram
141
Histogram
Box Plot
Geo Map
Treemap
Overview of Visualizations
Correlation
Matrix
143
Decision Tree
If SAS Visual Statistics is licensed at your site, then the following modeling
visualizations are available:
n Linear Regression
n Logistic Regression
n Generalized Linear Model
n Cluster
For more information, see Chapter 33, Modeling Information, on page 247.
Manage Visualizations
Delete a Visualization
To delete a visualization, click the
button on the visualization, or select
Visualization Delete from the menu bar to delete the selected visualization.
You can delete all of your visualizations by selecting View Delete All
Visualizations.
Duplicate a Visualization
To duplicate a visualization, select Visualization Duplicate from the main
menu, or select the
select Duplicate.
145
Maximize a Visualization
To maximize a visualization to fill the entire workspace, click
in the
visualization that you want to maximize. To return the visualization to its normal
size, click
Resize a Visualization
To resize a visualization in your workspace, drag the resizing tab
at the
bottom edge or the right edge of the visualization that you want to resize.
Action
(Restore visualizations.)
(Minimize visualizations.)
to
Click
, and then select your filter
parameters. You can filter either on the
visualization type or on the data items that
are used in each visualization.
Only the matching visualizations appear
in the Available list.
Rename a visualization.
Delete a visualization.
147
For an empty visualization with no data items, ranks, or visualization filters, you
can add a data item from any data source. The new data source is assigned to
the visualization automatically.
To change the data source for a visualization that is not empty, follow these
steps:
1 If the data source that you want to use is not part of the exploration, then add
the new data source. See Add Additional Data Sources to Your Exploration
on page 118.
2
Select the visualization for which you want to change the data source.
Remove any ranks from the Ranks tab and any visualization filters from the
Filters tab.
4 On the Roles tab, remove all data items from the data roles.
5
From the Data source drop-down list, select the data source for the
visualization.
role, or expand the drop-down list beside the role and then select a data
item.
Each visualization requires a minimum number of each type of data item. The
following table lists the requirements for each visualization:
Table 25.1
Visualization Type
Requirements
Automatic Chart
Table
Crosstab
Bar Chart
Line Chart
Scatter Plot
one measure
Bubble Plot
three measures
Network Diagram
Sankey Diagram
Histogram
one measure
Box Plot
one measure
Heat Map
Geo Map
one geography
Treemap
Correlation matrix
two measures
Decision tree
Word Cloud
Ranking Data
149
name.
n Right-click on the data item that you want to delete in either the visualization
Ranking Data
Overview of Ranking
You can use the Ranks tab to create ranks to subset the data in your
visualizations. A rank selects either the top (greatest) or the bottom (least)
aggregated value for a category.
A rank selects values for a category based on either the frequency of the
category values or the aggregated value of a measure.
For example, you might create a rank of the top 10 countries by frequency to
select the 10 countries that are most represented in your data source. As
From the Data pane, select the data item that you want to use as the base of
the rank. You can select any category or geography data item, regardless of
whether it is assigned to the current visualization.
2 Either right-click on the data item, and select Add as Rank on Visualization,
or drag and drop the data item onto the Ranks tab.
3 Set the parameters for the rank:
a
Select the type of rank from the drop-down list. Top specifies that the
rank selects the greatest value. Bottom specifies that the rank selects the
least value.
Specify the number of values for the rank. For example, if you specify 5,
and you select Top as the rank type, then the rank selects the five
greatest values.
c From the By drop-down list, select the measure that is used to create the
rank. You can either select any measure, or select Frequency to use the
frequency of the rank category.
Note: If you select a measure that is used in the current visualization,
then the rank uses the same aggregation for the measure that is used by
the current visualization.
Note: Only the Sum, Average, Count, Minimum, and Maximum
aggregation types can be used in a rank.
d
Note: By default, your rank changes are applied automatically to the current
visualization. To apply multiple changes together, deselect Auto-Update, and
then click Update when you are ready to apply your rank changes.
151
Delete a Rank
To delete a rank, click
Adjust an Axis
For a locked axis, you can adjust the visible data range. You can adjust the
range by dragging the scroll bar that appears over the axis tick marks or by rightclicking a measure heading, and then selecting Set Visible Axis Range.
Gradient.
2 From the Edit Color Gradient window, select a color gradient from the Color
Color Gradient.
2
In the Lower field, specify the lower bound for the data range.
4 If the selected color gradient uses three colors, specify the inflection point of
the gradient in the Inflection field, or select Use midpoint to use the
midpoint between the lower and upper values as the inflection point. The
inflection point is the point for the middle color in a three-color gradient.
5
In the Upper field, specify the upper bound for the data range.
If the data range has not been customized, then right-click on the legend for
the color gradient and data range that you want to share, and then select
Lock Data Range.
2 Right-click on the legend for the color gradient and data range that you want
153
Select the visualizations that you want to share the color gradient and data
range with. The visualizations are sorted based on their similarity to the
source visualization. Visualizations that use the same data items and
visualizations that are the same type are shown at the top of the list.
4 When you are finished, click OK to apply the color gradient and data range to
For histograms and for bar charts of frequency that are not grouped or latticed,
data brushing can indicate the portion of a bar that corresponds to the brushed
data. The bar is highlighted and then partially shaded to indicate the
corresponding portion. The value for the shaded portion of the bar is included in
the data tip for the bar.
In Figure 25.2 , a selection in a bubble plot highlights a portion of the
corresponding bar in a bar chart.
Figure 25.2
For bar charts that have a measure assigned or that are grouped or latticed, the
entire bar is highlighted.
155
n Click the data values. This is most useful for bar charts, histograms, and
treemaps. To select multiple data values, hold down the Ctrl key while
clicking each data value.
n Click and drag to select data values in a rectangular region. This is most
Data Items
Chart Type
One measure
Histogram
One category
Bar chart
Crosstab
Line chart
Geo map
Bar chart
Word cloud
Two measures
Bar chart
Note: The Roles tab for an automatic chart always contains Categories and
Measures. To set advanced data roles such as grouping and lattices, click the
Use chart-type link on the Roles tab to change the visualization from an
automatic chart to the chart type that is currently shown. For example, if your
automatic chart shows a bar chart, then click Use Bar Chart to change the type
to a bar chart and enable advanced data role settings.
Managing Columns
Sort Columns
By default, the table is sorted by the values of the first column. 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.
Rearrange Columns
To rearrange your columns, drag and drop the column headings.
Resize Columns
To resize a column, click, and then drag and drop the left or right edge of a
column heading.
157
Resize Columns
To resize a column, click, and then drag and drop the left or right edge of the
column heading.
the response axis. If a bar chart contains no measures, then the frequency of the
category values is plotted on the response axis.
In addition to the basic data roles, you can assign these roles:
Group
groups the data based on the values of the category data item that you
assign. Depending on the value that you selected for the Grouping style
property, the group values are shown as either individual bars or as
segments of each bar.
Note: Grouping is not available if you assign multiple measures to the
visualization.
Lattice columns
creates a lattice of charts with a column for each value of the category data
item that you assign.
Lattice rows
creates a lattice of charts with a row for each value of the category data item
that you assign.
The name of each reference line appears below the Reference Lines option.
You can edit or delete your reference lines by using the icons next to each
name.
161
the response axis. If the line chart contains no measures, then the frequency of
the category values is plotted on the response axis.
In addition to the basic data roles, you can assign these roles:
Group
groups the data based on the values of the category data item that you
assign. A separate line is created for each data value.
Note: Grouping is not available if you assign multiple measures to the
visualization.
Lattice columns
creates a lattice of charts with a column for each value of the category data
item that you assign.
Lattice rows
creates a lattice of charts with a row for each value of the category data item
that you assign.
Forecasting
enables forecasting for the line chart. Forecasting estimates future values for
your data based on statistical trends.
Note: Forecasting is available only if a date or datetime data item is
assigned to the visualization.
Underlying factors
if forecasting is enabled, adds additional measures to the forecast as
underlying factors. The forecasting model evaluates the additional measures
to determine whether they contribute to the accuracy of the forecast. If the
additional measures do not increase the accuracy of the forecast, then they
are not used. If the additional measures do increase the accuracy of the
forecast, then the forecast line is adjusted, and the confidence bands are
narrowed.
The measures that you add as underlying factors can also be used in a
scenario analysis.
Note: Underlying factors are available only if your line chart contains a
single measure in the Measures role.
The name of each reference line appears below the Reference Lines option.
You can edit or delete your reference lines by using the icons next to each
name.
Duration (if forecasting is enabled)
specifies the number of data intervals to forecast.
Note: This option is available only if forecasting is enabled for the
visualization.
Confidence (if forecasting is enabled)
specifies the degree of confidence for the confidence band. The default value
is 95%.
Forecasting
About Forecasting
Forecasting uses the statistical trends in your data source to predict future data
values. Forecasting is available only if a date or datetime data item is assigned
to the visualization.
In addition to the predicted future data values, the forecast displays a confidence
band. For more information, see Forecasting on page 225.
Enable Forecasting
To add forecasting to a line chart, select Forecasting on the Roles tab.
Note: The line chart must contain a date or datetime data item to apply
forecasting.
On the Properties tab for the line chart, you can adjust the number of data
values to predict by using the Duration option. You can specify the degree of
confidence for the confidence band by using the Confidence option.
On the Roles tab, you can add additional measures to the forecast as
Underlying factors. The forecasting model evaluates the additional measures
to determine whether they contribute to the accuracy of the forecast. If the
additional measures do not increase the accuracy of the forecast, then they are
not used. If the additional measures do increase the accuracy of the forecast,
then the forecast line is adjusted, and the confidence bands are narrowed.
Note: Underlying factors are available only if your line chart contains a single
measure in the Measures role.
The measures that you use as underlying factors can also be used in scenario
analysis and goal seeking. For more information, see Working with Scenario
Analysis and Goal Seeking on page 226.
The name of each reference line appears below the Reference Lines option.
You can edit or delete your reference lines by using the icons next to each
name.
165
Correlation
identifies the degree of statistical correlation between the variables in the
visualization. For more information, see Correlation on page 223.
Fit Line
plots a model of the relationship between the variables in the visualization.
There are many types of fit lines, including linear fit, quadratic fit, cubic fit,
and penalized B-spline. For more information, see Fit Lines on page 224.
Correlation is applied to your visualization automatically when you add a linear fit
line. It is not available with other fit types.
167
Note: This option has no effect if a measure is assigned to the Bubble size
role.
Color gradient
selects the gradient colors for the visualization.
You can click
to select the values that are used to assign the colors. See
Specify a Custom Data Range on page 152.
Reference Lines
adds reference lines to the visualization. To create a reference line, click
and then specify the parameters for the line in the New Reference Line
window.
The name of each reference line appears below the Reference Lines option.
You can edit or delete your reference lines by using the icons next to each
name.
3 Assign a data item with a datetime format to the Animation data role.
Task
Action
Click
Click
Click
Action
Note: If you select a bubble to track, the selected bubble is highlighted in the
current animation frame.
169
Manager
Salary
EMP1
MGR1
40000
EMP2
MGR1
55000
EMP3
MGR1
50000
MGR1
75000
Predecessors
selects the number of levels of predecessors (parents) of the source node to
select. 0 specifies the source node. Note that you can specify a range by
making multiple selections. For example, select both 0 and 1 to specify that
the source node and the first level of predecessors are selected.
Successors
selects the number of levels of successors (children) of the source node to
select. 0 specifies the source node. Note that you can specify a range by
making multiple selections. For example, select both 0 and 1 to specify that
the source node and the first level of successors are selected.
171
Pan (scroll)
Rotate
1 Nodes contain the events in each path. The node displays the width of each
link that enters and exits the node. The same event can appear at multiple
nodes in the diagram.
2 Links between nodes make up the paths in the diagram. The width of each
link can represent either the frequency of the path or the value of a weight
measure.
173
3 Drop-off links are links that end at the current node. Drop-off links are
displayed only if some links continue onward from the current node.
Figure 25.4
175
For example, if the Minimum path length is 3 and the Maximum path
length is 5, then the diagram displays only paths that have lengths of 3, 4, or
5 nodes.
Maximum path length
specifies the maximum length for a path that is displayed. The path length
that you specify indicates the number of nodes in the path.
For example, if the Minimum path length is 3 and the Maximum path
length is 5, then the diagram displays only paths that have lengths of 3, 4, or
5 nodes.
Note: A hyphen character ( - ) specifies that there is no maximum path
length.
Minimum frequency
specifies the minimum path frequency for a path that is displayed. For
example, if you specify a minimum path frequency of 5, then the diagram
displays only paths that have a frequency of 5 or greater.
Maximum frequency
specifies the maximum path frequency for a path that is displayed. For
example, if you specify a maximum path frequency of 10, then the diagram
displays only paths that have a frequency of 10 or fewer.
Note: A hyphen character ( - ) specifies that there is no maximum frequency.
Path ranking
specifies a ranking method for the paths in the diagram. If you specified a
measure for the Weight role, then ranking is based on the aggregated value
of the weight measure for each path. If there is no measure for the Weight
role, then ranking is based on the frequency of each path.
From the drop-down list, select Top to select the paths with the highest
values. Select Bottom to select the paths with the lowest values. In the text
field, enter the number of paths to select.
By default, path ranking selects the top 200 paths.
Note: If your ranking method reduces the number of paths that are
displayed, then a message appears at the bottom of the diagram.
Compress
combines repeated, consecutive events in each path into a single event. If
you specified a measure for the Weight role, then the weight value for a
compressed event is the average of the weight values for the repeated,
consecutive events that were combined.
Note: For all of the options under Path Analytics, click
changes.
to apply your
From the Events drop-down list, select the events for the condition.
TIP You can create a condition for the path selection when only the Event
role is assigned to the visualization. For large data sources, you might want to
create your path selection before assigning all of the data roles to avoid long
loading times.
177
drop-down list
from the visualization toolbar, and then selecting Show Details.
Include Only
includes only the paths that satisfy the condition.
Exclude
excludes the paths that satisfy the condition.
3 To remove specific conditions, select the conditions that you want to remove,
then select Create Visualization from All Conditions. All of the conditions
in your path selection are used to filter the data in your new visualization.
n In the Sankey diagram, select one or more nodes, click the
drop-down
list, select Create New Visualization, and select a condition for your path
selection. For more information, see Create a New Condition from Selected
Nodes on page 176.
The new condition and any existing conditions are all used to filter the data in
your new visualization.
The new visualization appears as a bar chart of the data item assigned to the
Transaction Identifier role. A visualization filter selects all of the transaction
identifier values that correspond to your path selection. If your Sankey diagram
reposition your zoomed view by holding down the Shift and Alt keys and
dragging the diagram.
179
Note: If you use the default number of bins, then the minimum and maximum
values on the histogram axis might not match the actual extent of your data
values. If you specify the number of histogram bins, then the histogram axis
matches your data values exactly.
The name of each reference line appears below the Reference Lines option.
You can edit or delete your reference lines by using the icons next to each
name.
Figure 25.5 on page 180 shows a diagram of a box plot. The bottom and top
edges of the box indicate the interquartile range (IQR). That is, the range of
values that are between the first and third quartiles (the 25th and 75th
percentiles). The marker inside the box indicates the mean value. The line inside
the box indicates the median value.
You can enable outliers, which are data points whose distances from the
interquartile range are greater than 1.5 times the size of the interquartile range.
The whiskers (lines protruding from the box) indicate the range of values that are
outside of the interquartile range. If you do not enable outliers, then the whiskers
extend to the maximum and minimum values in the plot. If you enable outliers,
then the whiskers indicate the range of values that are outside of the
interquartile range, but are close enough not to be considered outliers.
If there are a large number of outliers, then the range of outlier values is
represented by a bar. The data tip for the bar displays additional information
about the outliers. To explore the outliers, double-click on the outlier bar to view
the values as a new histogram visualization.
Lattice columns
creates a lattice of charts with a column for each value of the category data
item that you assign.
Lattice rows
creates a lattice of charts with a row for each value of the category data item
that you assign.
The name of each reference line appears below the Reference Lines option.
You can edit or delete your reference lines by using the icons next to each
name.
183
Bin count
specifies the number of value ranges that are represented as cells. Bin
count affects only measures.
Show borders
specifies that the borders between cells are visible.
Rotate axis labels
displays the category labels at an angle.
Note: The Rotate axis labels option affects only the values on the X axis.
Note: The Rotate axis labels option has no effect if the heat map contains
no categories.
Color gradient
selects the gradient colors for the visualization.
You can click
to select the values that are used to assign the colors. See
Specify a Custom Data Range on page 152.
Fit line
adds a fit line to the heat map. For information about the fit types that are
available, see Fit Lines on page 224.
Note: Fit lines are not available if a category is assigned to the heat map.
icon.
Bubble size
for the Bubbles map style, specifies the measure that determines the bubble
size.
Color
for the Regions map style, specifies the measure that determines the
regions colors.
for the Bubbles map style, specifies a measure that determines the bubble
color.
Name
specifies the name of the visualization.
Title
specifies the title that appears above the graph.
Note: The Title option is disabled if you select Generate graph title.
Generate graph title
specifies that the graph title is generated automatically based on the data
items in the visualization.
Map service
specifies the source for the background map.
Size scale
specifies the type of scaling that is used to draw the bubbles. Select one of
the following values:
Linear
specifies that the bubble sizes are scaled relative to the minimum and
maximum values (or frequencies) in your data. A negative value is
displayed as a smaller bubble than a positive value.
For the Linear scaling type, the difference in bubble sizes might not be
proportional to the difference in values.
Magnitude
specifies that the bubble sizes are scaled relative to zero and the greatest
absolute value in your data. A negative value is displayed as a circle with
a waving edge.
For the Magnitude scaling type, the difference in bubble sizes is
proportional to the difference in absolute values.
Note: This option is available only for the Bubbles map style.
Frequency
specifies whether the frequency values are displayed as the number of
values (Count) or as the percentage of values (Percent).
Show map navigation control
specifies whether the map zoom and pan controls are visible.
Color gradient
selects the gradient colors for the visualization.
You can click
to select the values that are used to assign the colors. See
Specify a Custom Data Range on page 152.
Transparency
specifies the amount of transparency for the data overlay.
187
189
axis, and you can select whether to sort the correlation values in ascending or
descending order.
Each branch of the tree displays the name of the predictor for the branch at the
top of the split. The thickness of the branch indicates the number of values that
are associated with each node. The predictor values for each node are
displayed above the node.
Each node in the tree displays the data for the node either as a histogram (if the
response contains continuous data) or as a bar chart (if the response contains
discrete data). The histogram or bar chart in each node displays the values of
the response data item that are selected by the splits in the tree. The number at
the top right of the node indicates the greatest value or frequency for the bar
chart or histogram. At the bottom of each node, the total number of data values
(count) for the node is displayed.
Below the decision tree, an icicle plot of the nodes is displayed. The color of the
node in the icicle plot indicates the predicted level for that node. When you
select a node in either the decision tree or the icicle plot, the corresponding node
is selected in the other location.
191
Decision trees in SAS Visual Analytics use a modified version of the C4.5
algorithm.
The details table for a decision tree contains two additional data columns, Node
ID and Parent ID. Node ID specifies a unique value for each node in the tree.
Parent ID specifies the ID of the parent node.
Property
Basic Value
Advanced Value
Maximum branches
Maximum levels
Leaf size
Response bins
10
10
Predictor bins
10
Reuse predictors
No
Yes
193
2 In the New Calculated Item window, enter a Name for the new calculated
item.
3 Click OK to create the new data item.
of the cursor
Note: If you zoom out on the decision tree, then each leaf node displays a
single bar for the greatest value in that node. To display a bar for each node in
195
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.
Note: If you view the word cloud as an automatic chart, then any changes to the
Roles tab might cause the visualization to reset. It is recommended that you
view it as a word cloud.
197
drop-down list from the visualization toolbar, and then select Show
The details table for a text analytics word cloud contains the following tabs:
Results
displays all of the terms in the current topic. For each term, the Topic Term
Weight value indicates the importance of the term in the current topic.
If the Identify term roles property or the Include parts of speech property
is enabled, then the Role value identifies the grammatical role of each term.
Note: You can sort any column by clicking the column heading.
Topics
displays all of the topics in the document collection. If sentiment analysis is
enabled, then the number of positive, neutral, and negative documents for
each topic is displayed.
Note: You can sort any column by clicking the column heading.
Documents
displays each of the documents that contains the selected term. For each
document, the Relevance value indicates how relevant the document is to
the current topic.
To view the full text for a document, right-click the document, and then select
View Full Document.
If sentiment analysis is enabled, then the Sentiment value identifies how
positive or negative the document is. You can filter the documents to exclude
documents with positive, negative, or neutral sentiment.
Note: You can sort any numeric column by clicking the column heading.
Analysis
provides definitions of the key concepts for text analytics.
Select the topic and the term that you want to explore.
On the Documents tab in the details table, select the documents that you
want to explore in a new visualization. To select all of the documents, rightclick any document, and then select Select All.
Selected Documents.
A new table visualization appears with your selected document values.
199
26
Working with Filters
About Filters in SAS Visual Analytics Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Managing Your Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Set the Scope of a Filter (Global or Local) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Collapse or Expand a Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Arrange Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Delete a Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Resize the Global Filters and Local Filters Areas . . . . . . . . . . . . . . . . . . . . . . . . . .
Copy a Local Filter to Another Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Copy All Local Filters from the Current Visualization to Another Visualization
Copy a Local Filter to New Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Link a Global Filter to Another Data Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
200
200
201
201
201
201
201
201
202
202
207
207
207
207
201
Arrange Filters
To arrange the filters in an area of the Filters tab, click the
drop-down list in
the global filters area or in the local filters area and then select Arrange Filters.
In the Arrange Filters window, you can change the order of your filters.
Delete a Filter
To delete a filter, click
beside the filter on the Filters tab, or click the
down list for the specific filter, and then select Delete Filter.
drop-
drop-down list for the filter on the Filters tab, and then select
Link Filter to data-source. The Link Filters window appears.
Note: If the target data source has a different locale from your current data
source, then a message appears. A linked filter between data sources that
use different encodings might cause query errors.
3
Specify the New filter name, and select the Target data item.
The values for the original data item and the target data item are displayed.
For discrete data items, an asterisk marks any values that are identical
between the two data items.
4 Click OK to create the linked filter. The linked filter appears in the global
filters area of each visualization that uses any of the linked data sources.
Note: You can link a linked filter to additional data sources to filter all of the
linked data sources at once.
From the Data pane, select the data item that you want to use as the base of
the filter. You can select any data item, regardless of whether it is assigned to
the current visualization.
2 For a local filter, either right-click on the data item, and select Add as Filter
on Visualization, or drag and drop the data item onto the local filters area of
the Filters tab.
For a global filter, either right-click on the data item, and select Add as Filter
on data-source, or drag and drop the data item onto the global filters area of
the Filters tab.
Note: If a local filter exists for a data item in any of your visualizations, then
you cannot create a new global filter for that data item. Remove the local
filter, or change its scope to global. Similarly, if a global filter exists for a data
item, then you cannot create a local filter for that data item.
3 Set the parameters for your filter. You can use either visual filter controls or
Note: If your data contains a large number of discrete values, then the top
1,000 most frequent values are displayed.
For data items that use the discrete data model, the filter displays all of the
distinct values for the data item. To the right of each value, a bar indicates the
frequency.
Use the check boxes next to each value to select the values for the filter. You
can search for a value in the displayed list by clicking . Enter a text string in
the field. The search locates values from the displayed list that begin with your
text string.
Select All to select or deselect all of the values. If the filter displays the top 1,000
most frequent values, then select Include unlisted values to select the unlisted
values.
To invert your selection, click the
Selection.
You can sort the values by frequency or alphabetically by value. Click the
drop-down list, and then select Sort by Frequency or Sort by Values.
To display the selected values at the top of the list, click the
and then select Show Selected at Top.
drop-down list,
If your data item contains more than 1,000 discrete values, then you can exclude
the unlisted values by deselecting Include unlisted values.
If your data item contains missing values, then you can exclude missing values
by deselecting Include missing values.
For measures that use the continuous data model, the filter shows the range of
data values as a histogram. Sliders at each side of the histogram enable you to
select the data that is selected by the filter.
The visual filter can select data by using different filter conditions. By default, the
Between (Inclusive) condition is used. To change the condition for your filter,
drop-down list, select Condition Type, and then select the
click the
condition. Select one of the following conditions:
Between (Exclusive)
specifies that a matching value must be in the range between the lower
bound and the upper bound. Matching values do not include the bounding
values.
Between (Inclusive)
specifies that a matching value must be in the range between the lower
bound and the upper bound. Matching values can include the bounding
values.
Equal To
specifies that a matching value must be equal to the value specified by the
filter.
Greater Than
specifies that a matching value must be greater than the value specified by
the filter.
Greater Than or Equal To
specifies that a matching value must be greater than or equal to the value
specified by the filter.
Less Than
specifies that a matching value must be less than the value specified by the
filter.
Less Than or Equal To
specifies that a matching value must be less than or equal to the value
specified by the filter.
Not Between (Exclusive)
specifies that a matching value must be outside the range between the lower
bound and the upper bound. Matching values do not include the bounding
values.
If your data item contains missing values, then you can exclude the missing
values by deselecting Include missing values.
To invert your selection, click the
Selection.
2 Click the
drop-down list for the filter that you want to edit, and then select
Edit Filter. The Edit Filter window appears.
3 Edit the expression for the filter. For more information, see Editing a Filter
You can reset all of your filters by clicking the drop-down list in the global
filters area or the local filters area of the Filters tab, and then selecting Reset
All Filters.
207
Click the
drop-down list in the global filters area or in the local filters area
of the Filters tab, and then select New Advanced Filter. The Edit Filter
window appears.
2 Specify a Filter name. The filter name identifies the advanced filter on the
Filters tab.
3
Build the expression for your filter by dragging and dropping data items,
global parameters, conditions, and operators onto the expression.
For information about the conditions and operators that are available, see
Appendix 6, Conditions for Filters, on page 589 and Appendix 5,
Operators for Data Expressions, on page 567 .
You can also build your expression as text by using the Text tab. See
Editing a Data Expression in Text Mode on page 561.
Click the
drop-down list for the filter that you want to edit, and then select
Edit Filter. The Edit Filter window appears.
3 Edit the expression for the filter. For more information, see Editing a Filter
pane.
n A data source filter updates the total number of rows that is used in the
On the Filters tab, select the global filter that you want to convert.
Click the
drop-down list, and select Convert to Data Source Filter. The
global filter disappears from the Filters tab.
Note: If your exploration already contains a data source filter for the selected
data source, then the global filter is appended to the filter expression using the
AND operator.
You can convert all of your global filters together into a single data source filter
drop-down list in the global filters area of the Filters tab, and
by clicking the
then selecting Convert All to Data Source Filter. The expressions from the
global filters are joined with AND operators.
To view the data source filter settings, select Data Data Source Details from
the main menu. The data source filter settings are displayed in the Data source
filter field.
In the Data pane, select the data source that you want to filter.
2 Click
Note: If the current exploration contains an existing data source filter, then
select Edit Data Source Filter to add conditions to the existing data source
filter.
The Edit Filter window appears.
209
Build the expression for your filter by dragging and dropping data items,
global parameters, conditions, and operators onto the expression.
For information about the conditions and operators that are available, see
Appendix 6, Conditions for Filters, on page 589 and Appendix 5,
Operators for Data Expressions, on page 567 .
You can also build your expression as text by using the Text tab. See
Editing a Data Expression in Text Mode on page 561.
Click
Edit the expression for the filter. For more information, see Editing a Filter
Expression on page 209.
In the Data pane, select the data source for which you want to remove the
filter.
Click
Add a Condition
To add a new condition:
1 From the Data items list, select the data item on which the condition is
based.
2 From the Conditions list, select a condition. For a list of the conditions that
right-click the parameter field, and select Replace with to select a data item.
Add an Operator
To add an operator to the expression:
1
From the Operators list, select the operator that you want to add. For a list of
the operators that are available, see Appendix 5, Operators for Data
Expressions, on page 567.
right-click the parameter field, and select Replace with to select a data item.
Replace an Operator
To replace an operator, drag and drop a new operator onto the existing operator
in the expression. You can also right-click an operator in your expression, select
Replace Operator with, and then select a new operator.
Subset an Expression
To subset an expression and delete the remainder:
211
2 Right-click, and select Keep Operand. The parts of the expression that were
213
27
Exporting Content
Export an Exploration as a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Export an Exploration as a PDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Save a Visualization as an Image File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Export Data from a Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
E-mail an Exploration as a Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Note: If you have only one visualization in your exploration, the Save As
window is displayed at this point. Select the location where you want to save
the report, and then click Save to export it as a report.
2 In the Export as Report window, select the visualizations that you want to
Action
(Restore visualizations.)
Click
, and then select your filter
parameters. You can filter either on the
visualization type or on the data items
that are used in each visualization.
Only the matching visualizations appear
in the Available list.
Select the location where you want to save the report, and then click Save.
Click OK to return to the explorer, or select Open the report now, and click
OK to view the report in the designer.
In the Export as PDF wizard, enter a Title and a Description for the PDF
document. Then, select the following options:
Page numbers
specifies that the PDF document contains page numbers.
215
Summary data
specifies whether the PDF document contains summary data tables for
each visualization.
Filter descriptions
specifies whether each visualization includes a description of its active
filters.
Click Next.
3
Select the visualizations that you want to include in the PDF document.
Note: The following types of visualizations are not available to include in the
PDF document:
n visualizations that do not contain any data
n crosstabs
n tables that contain more than 1,000 rows
The Export as PDF window enables you to perform the following tasks:
Task
Action
(Restore visualizations.)
Click
, and then select your filter
parameters. You can filter either on the
visualization type or on the data items
that are used in each visualization.
Only the matching visualizations appear
in the Available list.
Click Next.
4
Select the location where you want to save the PDF document.
Select the
drop-down list from the visualization toolbar, and then select
Export Image.
4 If necessary, scroll and zoom the visualization to show the data items that
3 Select the
4 Specify a filename and select the location where you want to save the file.
Note: To export data from a table visualization, your browser must allow
pop-ups.
217
219
28
Managing Hierarchies
What Is a Hierarchy? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Create a New Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Derive a Hierarchy from a Date, Time, or Datetime Data Item . . . . . . . . . . . . . . . 220
Create a Hierarchy from a Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Edit a Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Delete a Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
What Is a Hierarchy?
A hierarchy is an arrangement of category columns that is 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.
For example, you might create a hierarchy of date-time columns with Year as the
top level, Month as the next level, and Day as the bottom level.
Creating hierarchies enables you to add drill-down functionality to your
visualizations. For example, if you use a date-time hierarchy, you can drill down
to the data for a specific year. Then, you can drill down to the data for a specific
month.
When you drill down a hierarchy, a set of breadcrumb links at the top of your
visualization enables you to drill back up the hierarchy.
Select the categories that you want to include in the hierarchy, and then click
to add them to the hierarchy.
Note: You can also drag and drop categories.
Note: You can create a hierarchy from within a crosstab visualization. See
Create a Hierarchy from a Crosstab on page 158.
Delete a Hierarchy
221
Edit a Hierarchy
To edit an existing hierarchy:
1
From the Data pane, right-click on the hierarchy that you want to edit, and
then select Edit. The Edit Hierarchy window appears.
3 To add a category to the hierarchy, select the category, and then click
Delete a Hierarchy
To delete a hierarchy:
From the Data pane, right-click on the hierarchy that you want to delete, and
then select Delete. Click Yes to confirm that you want to delete the hierarchy.
223
29
Performing Data Analysis
Overview of Data Analysis in SAS Visual Analytics Explorer . . . . . . . . . . . . . . . 223
Types of Data Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Correlation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Fit Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Forecasting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Add a Fit Line to an Existing Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Add Forecasting to an Existing Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Working with Scenario Analysis and Goal Seeking . . . . . . . . . . . . . . . . . . . . . . . . . 226
About Scenario Analysis and Goal Seeking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Apply Scenario Analysis and Goal Seeking to a Forecast . . . . . . . . . . . . . . . . . . . 226
Remove Scenario Analysis and Goal Seeking from Your Forecast . . . . . . . . . . 227
Correlation
Correlation identifies the degree of statistical relationship between measures.
The strength of a correlation is described as a number between -1 and 1. A
value that is close to -1 implies a strong negative correlation, a value that is
close to 0 implies little or no correlation, and a value that is close to 1 implies a
strong positive correlation.
Fit Lines
A fit line plots a model of the relationship between measures. You can apply fit
lines to scatter plots and heat maps.
You can apply the following types of fit line to your visualization:
Best Fit
selects the most appropriate model (linear, quadratic, or cubic) for your data.
The Best Fit method uses backward variable selection to select the highestorder model that is significant. To see the final model that was used, select
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 more information about the linear fit line, select
visualization legend.
from the
Cubic
creates a cubic fit line. A cubic fit line produces a line with two curves. A
cubic fit line often produces a line with an S shape. For more information
about the cubic fit line, select
PSpline
creates a penalized B-spline. 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. For more information about the penalized Bspline, select
225
Forecasting
Forecasting estimates future values for your data based on statistical trends.
Forecasting is available only for line charts that contain date or datetime data
items.
A forecast adds a line with predicted values to your visualization and a colored
band that represents the confidence interval. For example, a 95% confidence
interval is the data range where the forecasting model is 95% confident what the
future values will be.
The explorer automatically tests multiple forecasting models against your data,
and then selects the best model. To see which forecasting model was used,
select
appears.
Note: The Scenario Analysis option is available only if one or more
underlying factors contribute to the forecast.
2 For the forecast measure and for each of the measures that are assigned to
the forecast as underlying factors, a line displays the values of the measure,
and a series of points enables you to set the future values for the measure.
Note: You can also display the forecast values as a table. Click
the table mode.
to display
To perform scenario analysis, set the future values for the underlying factors.
To perform goal seeking, set the target future values for the forecast
measure.
227
You can set the values by using any of the following methods:
n drag each data point upward or downward on the line chart. To select the
accuracy of the points, click the measure heading on the plot axis, and
select Snap Interval.
n enter the value for each data point. Right-click on a data point, and select
plot axis, and select Set Series Values. The Change Future Values
window enables you to set all of the values to a specific value or to adjust
the future values relative to the forecasted values of the measure.
Note: The Progressively by option increments future values by the
amount that you specify. For example, if you specify 100, then the first
future value is increased by 100, the second future value is increased by
200, the third future value is increased by 300, and so on.
Note: If you change future values for either scenario analysis or goal
seeking, you must apply your changes before you can change future values
for a different analysis type.
To reset any data point to its original value, right-click on the data point, and
then select Reset Point.
To reset all of the data points for a measure, click the measure heading on
the plot axis, and then select Reset Entire Series.
3
If you perform goal seeking and there are multiple underlying factors, then
choose which of the underlying factors are optimized to achieve the target
value.
(Optional) If you perform goal seeking, you can set bounds for each
underlying factor to limit the minimum and maximum values that are possible.
To set the minimum value for an underlying factor, click the measure
heading, and then select Bounds Add Lower Bound.
To set the maximum value for an underlying factor, click the measure
heading and then select Bounds Add Upper Bound.
5 When you are finished setting the future values for the scenario, click Apply
On the Roles tab, select Scenario Analysis. The Scenario Analysis window
appears.
For each measure, click the measure heading, and then select Reset Entire
Series.
229
30
Sharing Comments in the Explorer
Sharing Comments in the Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
About Comments in the Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
View Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Create a Comment under an Existing Topic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Create a Comment under a New Topic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Edit a Comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Delete a Comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
View Comments
To display the comments for the current exploration, select File Exploration
Comments from the main menu.
To display comments for a visualization, select the visualization and then select
the Comments tab from the right pane.
Comments are grouped by topic. If there are many comments in a topic, then
only the most recent comments are displayed. Click Show All Comments to
view all of the comments for a topic.
To search the comments, enter a search term in the Search within comments
field.
When you are finished with the comment, click Post. Your comment is saved
and shared immediately.
(Optional) Click
When you are finished with the comment, click Post. Your comment is saved
and shared immediately.
Edit a Comment
To edit a comment, select the comment that you want to edit, and then click
Edit.
Note: To edit other users comments, you must belong to the
Comments:Administrator role.
Delete a Comment
To delete a comment, select the comment that you want to delete, and then click
Delete.
Note: To delete comments, you must belong to the Comments:Administrator
role.
231
Part 5
Building Models
Chapter 31
Specifying the Preferences for SAS Visual Statistics . . . . . . . . . . . . . . . . . 233
Chapter 32
Getting Started with SAS Visual Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Chapter 33
Modeling Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Chapter 34
Linear Regression Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Chapter 35
Logistic Regression Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Chapter 36
Generalized Linear Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
271
Chapter 37
Decision Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Chapter 38
Clustering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Chapter 39
Model Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
232
233
31
Specifying the Preferences for SAS
Visual Statistics
Specify Global Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Specify Your Preferences for SAS Visual Statistics . . . . . . . . . . . . . . . . . . . . . . . . 233
235
32
Getting Started with SAS Visual
Statistics
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Create the Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Create a Decision Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Create a Linear Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Create a Generalized Linear Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Perform a Model Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Overview
This is a brief overview of using SAS Visual Statistics to derive a new variable,
create two different models, and compare those models. This example uses the
Framingham Heart Study data set, located in SASHELP.HEART, to compare the
performance of a Linear Regression model and a Generalized Linear Model.
The goal is to predict a persons age of death based on a collection of health
factors. These factors include gender, weight, height, whether the person is a
smoker, blood pressure, and more. The focus of this example is how to use SAS
Visual Statistics, not how to build the best model.
This example assumes that you have access to the SASHELP.HEART data set.
It is beyond the scope of this example to provide instructions about how to
access individual data sets at your location. Your system administrator should be
able to provide you access to this data set.
237
Click the
icon in the upper right of the model pane. In the details table, select
the Node Rules tab. Notice that the only predictors used were Age CHD
Diagnosed and Cause of Death. You can adjust the decision tree properties to
include more predictors in the model.
Click the Properties tab in the right pane. The most obvious property to change
is Reuse predictors. When you deselect this property, each predictor variable is
used in at most one split. However, assume that reusing predictors creates the
best split in each node for this example. This might not always be the case for
your data.
Instead, set the value of Maximum levels to 10. The decision tree now has a
maximum depth of 10 levels, instead of the default 6. On the Node Rules tab of
the details table, every predictor is used at least once.
Set the value of Maximum branches to 4. This allows each non-leaf node to
split into at most four new nodes.
icon to fit
Although each node is difficult to see, your decision tree should resemble the
following:
In the Tree Overview window, right-click, and select Derive a Leaf ID Variable.
The default name for this variable is Leaf ID (1). In the New Calculated Item
window, click OK. The Leaf ID (1) variable appears in the Data pane.
Save the project.
239
from the Data pane onto the model pane. Notice that Age at Death now
appears in the Response field on the Roles tab.
The next step is to choose the effect variables or interaction terms that you want
to include in the analysis. One option is to make every available variable an
effect variable and let SAS Visual Statistics perform variable selection. However,
this is not always feasible from a computational resources perspective. This
example creates an interaction term to use as an effect variable and includes a
few other variables as effect variables.
Because you suspect that systolic blood pressure and diastolic blood pressure
interact with each other, create an interaction term for these variables. In the
Data pane, click the
icon, and select New Interaction Effect. In the New
Interaction Effect window, move Diastolic and Systolic from the Available
columns area into the Effect elements area. Click Create. The interaction term
Diastolic*Systolic appears in the Interaction Effects group of the Data pane.
Click, drag, and drop Diastolic*Systolic onto the model pane. A model is
created based on that single effect because the Auto-update model option is
selected in the right pane. Each time a change is made to the model, the Linear
Regression automatically updates. If you anticipate making many changes or if
you are experiencing server performance issues, deselect the Auto-update
model option. When auto-updates are disabled, you must click Update in the
right pane to update the model.
Next, add more effects to the model. Hold down the Ctrl key, and select Blood
Pressure Status, Cause of Death, Leaf ID 1, Sex, Smoking Status,
Cholesterol, Height, Smoking, and Weight. Drag and drop these variables
onto the model pane. The Linear Regression updates to include these effects.
In the right pane, select the Properties tab. In this model, Informative
missingness and Use variable selection are not selected. Disabling
Informative missingness means that observations with missing values are not
included in the analysis. Disabling Use variable selection means that all
variables are used in the model, regardless of how significant they are to the
model. For this model, keep the default properties settings.
The Fit Summary window indicates that Cause of Death, Leaf ID (1), and
Height are the three most important effects in this model.
The Assessment window indicates that the observed average and predicted
average are approximately equal for most bins.
Save the project.
241
Click the Properties tab in the right pane. The Distribution property enables
you to specify the distribution of the response variable and to build a model
based on that distribution. The default distribution is Normal.
To determine whether the normal distribution applies to the response variable,
icon in the Data pane, and select Measure Details. In the Measure
click the
Details window, select Age at Death.
Notice that Age at Death is not normally distributed and is slightly skewed left.
Click Close.
Although the distribution is not exactly Poisson, use the Poisson distribution for
this example. For the Distribution property, select Poisson. Next, select
Identity for Link function.
Note: You are encouraged to repeat this example with different distributions and
link functions and compare their performance and to familiarize yourself with
SAS Visual Statistics.
243
The Response variable is already set to Age at Death, and Level and Group
By are unavailable. With these settings, the available models are Visualization
2 (the Linear Regression) and Visualization 3 (the Generalized Linear Model).
Click the
245
By default, the fit statistic average squared error ASE is used to compare the
models. The other available fit statistics are SSE and Observed Average.
Because smaller values are preferred, the Linear Regression is chosen as the
champion when ASE or SSE is the criterion. The models are very similar.
When the fit statistic is Observed Average, the Percentile slider is available.
This slider specifies the percentile where the observed average and predicted
average are compared. In some percentiles, the Generalized Linear Model might
be chosen over the Linear Regression.
If you view the Assessment plot, both the Observed Average and Predicted
Average plots show that the models are relatively similar.
Now that you have a champion model, you can export the model score code for
that model to score new data.
To export the model score code, complete the following steps:
1 Open Visualization 2, the Linear Regression.
2 Click the
click Save.
247
33
Modeling Information
Available Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Variables and Interaction Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Interaction Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Variable Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Missing Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Group By Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Filter Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Score Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Derive Predicted Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Available Models
The following models are available in SAS Visual Statistics:
n Linear Regression on page 255 attempts to predict the value of an interval
features.
Measure Variables
Measure variables are continuous numeric variables that can assume an infinite
number of possible values between two numbers. Even though some numeric
variables are not continuous, such as count variables, these variables can be
treated as continuous values for the purpose of modeling. Examples of measure
variables include the temperature of a drink, engine displacement amount, or a
customers total purchase amount.
Summary statistics and a histogram for each measure variable are obtained by
right-clicking the variable in the Data pane, and selecting Properties. Use the
Name drop-down menu to specify the variable that you want to view.
Measure variables can be used as response variables for continuous models,
continuous effect variables, decision tree predictors, offset variables, frequency
variables, weight variables, and filter variables.
Interaction Terms
Two variables, A and B, interact if the effect of one variable on the model
changes as the other variable changes. That is, the effects of variables A and B
are not additive in the model.
SAS Visual Statistics enables you to create interactions between two or more
input variables, including squared interactions. A squared interaction is the
interaction of a variable with itself. You cannot create squared interactions for
category variables.
For an example where interaction terms might be useful, consider a situation
where you are modeling the fuel mileage (MPG) for several cars. Two of your
Group By Variables
249
input variables are engine displacement in liters and engine size (number of
cylinders). You expect that as either value increases, fuel mileage will suffer.
However, if you suspect that the effects on fuel mileage that are attributable to
engine displacement are not constant across engine size, then you should
consider creating the interaction term between those variables.
SAS Visual Statistics is not limited to creating just two-way interactions. You can
create n-way interactions that include an arbitrary number of variables, but not
more than the number of available input variables.
The number of distinct levels for an interaction term is the product of the number
of levels for each variable in the term. Measure variables are treated as if they
contain one level. The number of levels in an interaction term counts against the
maximum number of distinct levels allowed in regression models.
Variable Selection
Variable selection is the process of reducing the number of input variables to
include just the most significant variables. The Linear Regression and Logistic
Regression models provide a property to automatically perform variable
selection. When you use this property, SAS Visual Statistics performs backward
selection on the input variables to determine the most significant variables.
Modeling with just the most significant variables is intended to avoid creating a
model that overfits the data. Automated variable selection can actually take
longer to run than not performing variable selection.
Missing Values
By default, SAS Visual Statistics handles missing values by dropping all
observations that contain a missing value in any assigned role variable.
However, the Linear Regression, Logistic Regression, and Generalized Linear
Model models provide the Informative missingness property. In some cases,
the fact that an observation contains a missing value provides relevant modeling
information. Selecting this property explicitly models missing values of variables
as a separate variable. For measure variables, missing values are imputed with
the observed mean, and an indicator variable is created to denote missingness.
For category variables, missing values are considered a distinct level.
Group By Variables
A group by variable enables you to fit a model for each data segment defined by
one or more category variables. Each unique combination of levels across all of
the group by variables is a specific data segment. For example, if you have one
group by variable with three levels, then there are three data segments. But, if
you have two group by variables, one with three levels and the other with four
levels, then there are at most 12 data segments. A data segment is not created
when there are no observations in a combination of classification levels.
The Group By field enables you to select the variable that is used for grouping.
Select the Use advanced features option to display aggregation statistics for a
specified measure variable. Specify the measure variable in the Measure field.
The Aggregation field specifies whether the Average or Sum is computed. Use
the Count field to specify whether you want the Top or Bottom n values. The
field below Count enables you to specify the value of n.
Filter Variables
Filter variables are used to subset the modeling data. You can filter on any
variable included in the data, not just on variables used in the model. Filter
variables are applied only to the current model.
When you filter on a category variable, you are presented with a list of the levels
for that variable. Select only values that you want to include in the model. In the
following image, all levels are available.
When you filter on a measure variable, a slider lets you specify a range of
values. Use the triangles to specify the lower and upper limits of the filter
variable.
Score Code
Model scoring refers to the process of generating predicted values for a data set
that might contain the response variable of interest. Score code is exported as a
SAS DATA step that can be executed on new data sets in any SAS environment.
All variables used by the model in any capacity are included in the score code.
This includes interaction terms, group by variables, frequency variables, and
weight variables. Score code is not available for interactive decision trees.
To generate model score code, click the
icon, and select Export Score
Code. In the Export Model Score Code window, click Export. In the Save As
window, navigate to where you want to save the code, and click Save.
Score code is saved as a .sas file and can be viewed in any word processing
program.
2 Click the
In the New Prediction Variables window, enter a name for the Predicted
Values and either the Residual Values or the Probability Values. Residual
Values are available for linear regressions and generalized linear models.
Probability Values are available for logistic regressions.
Click OK. The predicted values for the logistic regression appear in the
Category variables section. All other variables, including the predicted
values for the other models, appear in the Prediction variables section.
253
255
34
Linear Regression Model
Overview of the Linear Regression Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Linear Regression Model Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Working with the Fit Summary Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
About the Fit Summary Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
With a Group By Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Working with the Residual Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
About Residual Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Using the Residual Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Working with the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
About the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Using the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Working with the Influence Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Fit Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Details Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
257
The Variable Importance plot enables you to select a single variable to inspect
within each level of the group by variable. Use the drop-down menu to select
which variable you want to inspect. Each dot in the Variable Importance plot
represents a model effect. The bars are drawn for the effect selected in the dropdown menu.
The Goodness of Fit plot, which is not available when there is no group by
variable, displays how well the model predicts the response variable within each
level of the group by variable. Use this plot to determine whether your model has
a significantly different fit within different levels.
Notice that when you select a group by variable, the Residual Plot,
Assessment, and Influence Plot are updated. These plots enable you to
further inspect the variable within each level of the group by variable.
Use the
icon on the
Fit Statistics
The linear regression model computes several assessment measures to help
you evaluate how well the model fits the data. These assessment measures are
available at the top of the model pane. Click the currently displayed assessment
measure to see all of the available assessment measures.
Adjusted R-square
The Adjusted R-squared value attempts to account for the addition of more
effect variables. Values can range from 0 to 1. Values closer to 1 are
preferred.
AIC
Akaikes Information Criterion. Smaller values indicate better models, and
AIC values can become negative. AIC is based on the Kullback-Leibler
information measure of discrepancy between the true distribution of the
response variable and the distribution specified by the model.
AICC
Corrected Akaikes Information Criterion. This version of AIC adjusts the
value to account for sample size. The result is that extra effects penalize
AICC more than AIC. As the sample size increases, AICC and AIC converge.
Details Table
When you click the
icon at the upper right of the model pane, the details table
is displayed at the bottom of the model pane. The details table contains the
following information:
Overall ANOVA
The analysis of variance results for the model, error, and corrected total.
Dimensions
An overview of the effect variables used in the model. This tab identifies how
many measures and classification effects were chosen for the model, the
rank of the cross-product matrix, how many observations were read, and how
many observations were used in the model.
Fit Statistics
Lists all of the fit statistics described in the previous section.
Model ANOVA
The analysis of variance results for the model.
Details Table
261
263
35
Logistic Regression Model
Overview of the Logistic Regression Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Logistic Regression Model Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Working with the Fit Summary Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
About the Fit Summary Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
With a Group By Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Working with the Residual Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
About Residual Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Using the Residual Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Working with the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
About the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Using the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Working with the Influence Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
About the Influence Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Using the Influence Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Fit Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Details Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
function.
g M = log
M
1M
function.
gM =
1
M
Convergence
n Override function convergence enables you to manually specify the
function convergence value.
n Value specifies the function convergence value when Override function
convergence is selected. When you specify a larger value, the model will
converge sooner. This reduces the amount of time spent training the
model, but it can create a suboptimal model.
n Override gradient convergence enables you to manually specify the
convergence is selected. When you specify a larger value, the model will
converge sooner. This reduces the amount of time spent training the
model, but it can create a suboptimal model.
n Maximum iterations specifies the maximum number of iterations
265
considered an event.
n Tolerance specifies the tolerance value that is used to determine the
267
For comparison, the lift chart plots a best model based on complete knowledge
of the input data.
ROC
The specificity of a model is the true negative rate. To derive the false positive
rate, subtract the specificity from 1. The false positive rate, labeled 1
Specificity, is the X axis of the ROC chart. The sensitivity of a model is the true
positive rate. This is the Y axis of the ROC chart. Therefore, the ROC chart plots
how the true positive rate changes as the false positive rate changes.
A good ROC chart has a very steep initial slope and levels off quickly. That is,
for each misclassification of an observation, significantly more observations are
correctly classified. For a perfect model, one with no false positives and no false
negatives, the ROC chart would start at (0,0), continue vertically to (0,1), and
Fit Statistics
The logistic regression model computes several assessment measures to help
you evaluate how well the model fits the data. These assessment measures are
available at the top of the model pane. Click the currently displayed assessment
measure to see all of the available assessment measures.
-2 Log Likelihood
The likelihood function estimates the probability of an observed sample given
all possible parameter values. The log likelihood is simply the logarithm of
the likelihood function. The likelihood function value is -2 times the log
likelihood. Smaller values are preferred.
AIC
Akaikes Information Criterion. Smaller values indicate better models, and
AIC values can become negative. AIC is based on the Kullback-Leibler
information measure of discrepancy between the true distribution of the
response variable and the distribution specified by the model.
Details Table
269
AICC
Corrected Akaikes Information Criterion. This version of AIC adjusts the
value to account for sample size. The result is that extra effects penalize
AICC more than AIC. As the sample size increases, AICC and AIC converge.
BIC
The Bayesian Information Criterion (BIC), also known as Schwarzs Bayesian
Criterion (SBC), is an increasing function of the model's residual sum of
squares and the number of effects. Unexplained variations in the response
variable and the number of effects increase the value of the BIC. As a result,
a lower BIC implies either fewer explanatory variables, better fit, or both. BIC
penalizes free parameters more strongly than AIC.
R-Square
The R-squared value is an indicator of how well the model fits the data. Rsquared values can range from 0 to 1. Values closer to 1 are preferred.
Max-rescaled R-Square
The observed R-squared value divided by the maximum attainable Rsquared value. This value is useful when there are multiple independent
category variables. Values can range from 0 to 1. Values closer to 1 are
preferred.
Details Table
When you click the
icon at the top of the model pane, the details panel is
displayed at the bottom of the model pane. The details table contains the
following information:
Dimensions
An overview of the effect variables used in the model. This tab identifies how
many measures and classification effects were chosen for the model, the
rank of the cross-product matrix, how many observations were read, and how
many observations were used in the model.
Iteration History
The function and gradient convergence results. This tab shows at which
iteration the function and gradient converged.
Convergence
Provides the reason for convergence.
Fit Statistics
Lists all of the fit statistics described in the previous section.
Type III Test
Provides details for the Type III test. A Type III test examines the significance
of each partial effect with all other effects in the model. For more information,
see the chapter The Four Types of Estimable Functions, in the SAS/STAT
Users Guide.
Parameter Estimates
Gives the estimated values for the model parameters.
Response Profile
Displays the event and nonevent counts.
271
36
Generalized Linear Model
Overview of the Generalized Linear Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
Generalized Linear Model Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Working with the Fit Summary Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
About the Fit Summary Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
With a Group By Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
Working with the Residual Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
About Residual Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
Using the Residual Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Working with the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
About the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Using the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Fit Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Details Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
Range Requirements
Beta
Binary
Exponential
Range Requirements
Gamma
Geometric
Positive integers
Inverse Gaussian
Negative Binomial
Nonnegative integers
Normal
Real values
Poisson
Nonnegative integers
Beta
Binary
Exponential
Log, Identity
Gamma
Geometric
Log, Identity
Inverse Gaussian
Negative Binomial
Log, Identity
Normal
Log, Identity
Poisson
Log, Identity
273
Convergence
n Override function convergence enables you to manually specify the
function convergence value.
n Value specifies the function convergence value when Override function
convergence is selected. When you specify a larger value, the model will
converge sooner. This reduces the amount of time spent training the
model, but it can create a suboptimal model.
n Override gradient convergence enables you to manually specify the
convergence is selected. When you specify a larger value, the model will
converge sooner. This reduces the amount of time spent training the
model, but it can create a suboptimal model.
n Maximum iterations specifies the maximum number of iterations
Fit Statistics
The Generalized Linear Model computes several assessment measures to help
you evaluate how well your model fits the data. These assessment measures
are available at the top of the model pane. Click the currently displayed
Details Table
When you click the
icon at the top of the model pane, the details panel is
displayed at the bottom of the model pane. The details table contains the
following information:
Dimensions
An overview of the effect variables used in the model. This tab identifies how
many measures and classification effects were chosen for the model, the
rank of the cross-product matrix, how many observations were read, and how
many observations were used in the model.
Iteration History
The function and gradient iteration results. This tab shows the value of the
objective (likelihood) function, its change in value, and its maximum gradient.
Convergence
Provides the reason for convergence.
Fit Statistics
Lists all of the fit statistics described in the previous section.
Type III Test
Provides details for the Type III test. A Type III test examines the significance
of each partial effect with all other effects in the model. For more information,
Details Table
277
see the chapter The Four Types of Estimable Functions, in the SAS/STAT
Users Guide.
Parameter Estimates
Gives the estimated values for the model parameters.
279
37
Decision Trees
Overview of the Decision Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Decision Tree Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Information Gain and Gain Ratio Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Pruning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
Working with the Tree Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Working with the Leaf Statistics Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
Working with the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
About the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
Using the Assessment Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
Details Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
281
n Number specifies the number of bins to use when the Use default
considered an event.
n Tolerance specifies the tolerance value that is used to determine the
corner of the tree overview to view the entire decision tree. Click the
icon
in the upper left corner of the tree overview to minimize the tree overview.
f req r, T
T
i=1
f req ri, T
f req ri, T
log2
T
T
j=1
Tj
I Tj
T
In this equation, Tj represents the observations that contain the jth attribute.
The information gain of split S is calculated by the following equation:
G S = I T IS T
Information gain ratio attempts to correct the information gain calculation by
introducing a split information value. The split information is calculated by the
following equation:
m
SI S =
j=1
Tj
Tj
log2
T
T
As its name suggests, the information gain ratio is the ratio of the information
gain to the split information:
GR S =
GS
SI S
Pruning
The Pruning property of the decision tree visualization determines how
aggressively your decision tree is pruned. The growth algorithm creates a
decision tree based on the properties that you specify. The pruning algorithm
considers each node to be a root node of its own subtree, starting from the
bottom. If the misclassification rate of the subtree is significantly better than the
misclassification rate of the root node, then the subtree is kept. If the
misclassification rate of the subtree is similar to the misclassification rate of the
root node, then the subtree is pruned. In general, smaller decision trees are
preferred.
If the Pruning property slider is closer to Lenient, then the difference in the
misclassification rates must be relatively small. If the Pruning property is closer
to Aggressive, then the difference in the misclassification rates must be
relatively large. That is, a lenient pruning algorithm allows the decision tree to
grow much deeper than an aggressive pruning algorithm.
Variables that are not used in any split can still affect the decision tree, typically
due to one of two reasons. It is possible for a variable to be used in a split, but
the subtree that contained that split might have been pruned. Alternatively, the
variable might include missing values, but the Include missing property is
disabled.
Note: If a predictor does not contribute to the predictive accuracy of the
decision tree or the contribution is too small, then it is not included in the final,
displayed decision tree.
283
The color of the node in the icicle plot indicates the predicted level for that node.
When you select a node in either the decision tree or the icicle plot, the
corresponding node is selected in the other location. When you select a leaf
node, that node is selected in the Leaf Statistics window. A legend is available at
the bottom of the model pane.
When the response variable is a measure variable, a gradient is used to denote
the predicted bin. Darker colors represent larger values.
Right-click outside of a node in the Tree window to open a pop-up menu. The
first item in this menu is Derive a Leaf ID Variable. When you click this item,
SAS Visual Statistics creates a category variable that contains the leaf ID for
each observation. You can use this variable as an effect in other models.
Right-click inside a node to open a different pop-up menu. The available menu
options depend on whether you clicked a leaf node.
For leaf nodes, you can select from the following menu options:
Split
opens the Split Decision Tree window. Use this window to select the variable
that is used to split the node. Click OK to split the node based on the
selected variable. Click Cancel to not split the node. Variables are sorted in
descending order by their log worth.
Some variables are not available for a split if the value of the split is too small
or the split would violate the Leaf size property.
Split Best
splits the node based on the variable with the best information gain ratio
when Rapid growth is enabled. In addition, splits the node based on the
variable with the best information gain when Rapid growth is disabled.
Train
opens the Train Decision Tree window. Use this window to train more than
one level beyond the leaf node. First, select every variable that you want to
be available for training. Only those variables selected in the Train Decision
Tree window are available for training. Specify the maximum depth of training
in the Maximum depth of subtree property. Click OK to train the decision
tree.
For other nodes, select Prune to remove all nodes that follow the selected node.
This turns the selected node into a leaf node. After pruning a node, you can
select Restore to undo the prune.
For comparison, the lift chart plots a best model based on complete knowledge
of the input data.
ROC
The specificity of a model is the true negative rate. To derive the false positive
rate, subtract the specificity from 1. The false positive rate, labeled 1
Specificity, is the X axis of the ROC chart. The sensitivity of a model is the true
Details Table
285
positive rate. This is the Y axis of the ROC chart. Therefore, the ROC chart plots
how the true positive rate changes as the false positive rate changes.
A good ROC chart has a very steep initial slope and levels off quickly. That is,
for each misclassification of an observation, significantly more observations are
correctly classified. For a perfect model, one with no false positives and no false
negatives, the ROC chart would start at (0,0), continue vertically to (0,1), and
then horizontally to (1,1). In this instance, the model would correctly classify
every observation before a single misclassification could occur.
The ROC chart includes two lines to help you interpret the ROC chart. The first
line is a baseline model that has a slope of 1. This line mimics a model that
correctly classifies observations at the same rate it incorrectly classifies them.
An ideal ROC chart maximizes the distance between the baseline model and the
ROC chart. A model that classifies more observations incorrectly than correctly
would fall below the baseline model. The second line is a vertical line at the false
positive rate where the difference between the Kolmogorov-Smirnov values for
the ROC chart and baseline models is maximized.
Misclassification
The misclassification plot displays how many observations were correctly and
incorrectly classified. A significant number of misclassifications might indicate
that the model does not fit the data.
When the ratio of events to non-events in your data is relatively large, the
misclassification plot might show a large number of true positives and false
positives. In this case, your model predicts most observations as events and is
correct more often than not.
Assessment
When the number of Response bins is set to more than 10, the Assessment
window plots the predicted average and observed average values. Use this plot
to determine how well the model fits the data.
The Assessment window bins the data based on the values specified in the
Assessment properties. At each bin, you can hold the mouse over one or both
of the lines to display a tooltip.
Details Table
When you click the
icon at the top of the model pane, the details panel is
displayed at the bottom of the model pane. The details table contains the
following information:
Node Statistics
provides summary statistics for each node in the decision tree. Available
statistics include Depth, Parent ID, N Children, Type, Observations, %
Observations, N Missing, Gain, Predicted Value, Split, and the number
and percentage of observations in each bin.
Node Rules
provides the sorting rule used for each node in the decision tree. Every
available variable is listed as a column in the table. If a rule was applied for a
287
38
Clustering
Overview of the Cluster Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Cluster Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Working with the Cluster Matrix Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
About the Cluster Matrix Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Using the Cluster Matrix Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Working with the Parallel Coordinates Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
About the Parallel Coordinates Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Using the Parallel Coordinates Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Details Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
Cluster Properties
The following properties are available for the cluster tool:
Name
enables you to specify the name for this model.
Cluster Matrix
n Number of clusters specifies the number of clusters that are generated.
n Seed specifies the seed value of the random number generator that is
n Visible roles determines how many effects are shown in the Cluster
Coordinates plot. Valid values are integers between 2 and 10, inclusive.
Show ellipses
enables you to display the cluster projection ellipses in the Cluster Matrix.
Show centroids
enables you to display the centroids in the Cluster Matrix.
289
Details Table
When you click the
icon at the top of the model pane, the details table is
displayed at the bottom of the model pane. The details table contains the
following information:
n Cluster Summary provides summary statistics for each cluster. Available
291
39
Model Comparison
Overview of Model Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
Model Comparison Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Model Comparison Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Model Comparison Results Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Assessment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Fit Statistic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Details Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
The Model Comparison window enables you to specify the response variable of
interest, the level of interest, a group by variable, and the models for
comparison. You must specify a response variable and at least two models.
Note: You are able to compare two or more models only when the response
variable, level of interest, and group by variable are identical.
293
For the error sum of squares (SSE) fit statistic, the linear regression model
and logistic regression model use the weighted SSE. The generalized linear
model uses the unweighted SSE.
Prediction Cutoff
specifies the cutoff probability that determines whether an observation is a
modeled event.
Percentile
when available, specifies the percentile at which the specified fit statistic is
plotted.
Fit Statistic
The Fit Statistic plot displays the criterion specified in the Fit statistic property.
In the following image, the observed average value is plotted for a linear
Details Table
When you click the
icon at the top of the model pane, the details panel is
displayed at the bottom of the model pane. The details table contains the
following information:
Statistics
Provides summary statistics for each model in the comparison. The value in
the Selected column, either Yes or No, indicates which model the model
comparison tool prefers based on the criterion specified in the Fit statistic
property. However, the statistics listed in the details table can differ from
those listed in the Fit statistic property.
Variable Importance
Indicates which variables had the greatest impact on each of the models in
the comparison.
295
Part 6
Designing Reports
Chapter 40
Overview of SAS Visual Analytics Designer . . . . . . . . . . . . . . . . . . . . . . . . . 297
Chapter 41
Creating and Working with Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Chapter 42
Using Report Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Chapter 43
Working with Data in SAS Visual Analytics Designer . . . . . . . . . . . . . . . . . 349
Chapter 44
Working with Display Rules for Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Chapter 45
Working with Report Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
Chapter 46
Working with Interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
Chapter 47
Working with Report Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
441
Chapter 48
Ranking Values in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
449
296
Chapter 49
Working with Parameters in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
Chapter 50
Maintaining Multi-Section Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
Chapter 51
Sharing Reports with Other Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
297
40
Overview of SAS Visual Analytics
Designer
About the SAS Visual Analytics Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Your First Look at the Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Understanding the Tabs in the Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Working with Tabs in the Left Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Working with Tabs in the Right Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
About the Canvas in the Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
About Report Themes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
Specifying Your Preferences for the Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify Global Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify General Preferences for the Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify Preferences for the Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
303
303
303
304
1 The application bar enables you to return to the home page and to access
other parts of SAS Visual Analytics and other SAS applications that integrate
with the home page. You can access your recently created or viewed reports,
explorations, stored processes, data queries, or other objects in your recent
history. Buttons are displayed for each open application.
2 The menu bar provides menu items that apply to the entire report or to the
299
launching the viewer without returning to the home page. You can also sign
out of SAS Visual Analytics.
3 The toolbar contains icons that enable you to manage and print your reports.
to
4 The tabs in the left pane enable you to work with new report objects, data,
Description
Objects
Description
Data
This tab enables you to select a data source (or data sources)
and the data items for your report. You can add, refresh, import,
or remove a data source using the icons above the list of data
items. Using the menu, you can change the data source, define
a hierarchy, define a calculated item, define an aggregated
measure, show or hide data items, and filter on a data item. You
can check the details for the measures in the data set. You can
use this tab to add parameters to a filter, a calculated item, a
display rule, or a rank.
The data item table on the Data tab provides information about a
selected item, including the name, classification, format,
aggregation, sort options, and parameters. These data item
properties can be modified, which impacts all of the report
objects that use the data item.
When a report has multiple data sources, the Data tab provides
information about the data source and data items for the
selected report object. When you select a report object that has
a different data source, the Data tab updates automatically to
provide information about the selected data source.
Imports
This tab provides a list of reports and report objects that have
been created in the designer or exported from the explorer. This
enables you to create reports from multiple data sources and
create full-featured reports. You can choose objects or sections
in these reports to include in either a new report or an existing
report.
Shared Rules
This tab enables you to create a new display rule for a gauge,
which is used by other gauges to designate intervals and colors
for ranges. You can edit or delete an existing shared display
rule. These display rules are shared across multiple gauges and
can be created at any time.
301
Description
Properties
This tab lists the properties for the currently selected report,
section, info window, or report object.
n When a report is selected, the reports title and description
are listed.
Styles
This tab enables you to specify the data styling, frame styling,
text styling, and data colors for a selected report object. You can
specify the report theme for the report.
Display Rules
Roles
Alerts
This tab enables you to add, update, or delete alerts for report
objects.
Comments
This tab enables you to add comments to the report after you
save it.
Filters
This tab enables you to add a filter (or filters) to the selected
report object.
Interactions
Ranks
303
Specify your Alert Notifications preference. The options are Send e-mail
messages, Send SMS text messages, or Use the system default for alert
notifications.
Note: If your preference for alert notifications is set to e-mail when you add
an alert, you will always receive notifications for that alert via e-mail. If you
decide later that your preference for alert notifications is a text message, then
after you change your preference to Send SMS text messages, you will
have to delete your existing alerts and create new ones.
The Use the system default for alert notifications option specifies that you
want to use the system default that is set by your system administrator in the
SAS Preferences Manager. For more information, see the SAS Preferences
Manager topic in SAS Intelligence Platform: Middle-Tier Administration
Guide. When you select either Send e-mail messages or Send SMS text
messages, you override the system default.
TIP If you select the Send SMS text messages preference, and do not
receive alerts via text message, contact your system administrator. Your
mobile number must be set up correctly as an SMS type in SAS
Management Console.
To specify general preferences for SAS Visual Analytics, see Specify the SAS
Visual Analytics General Preferences on page 619.
report themes: Application theme, SAS Snow, SAS Light, SAS Dark,
or SAS High Contrast. Your site might also have custom report themes.
TIP Application theme specifies that reports match the selected
service in the Esri Map Service Selector window. Your choices in the Esri
Map Service Selector window depend on your sites local Esri server.
Note: The Esri option is available only if your site has its own Esri server
and if your system administrator has set the va.SASGeomapEsriURL
configuration property in SAS Management Console.
5
Specify your Data Tab preference. If you are trying to optimize performance,
then select the Bypass cardinality checks check box.
Note: If you select the Bypass cardinality checks check box, then the
distinct counts of data items are not displayed on the Data tab.
305
41
Creating and Working with Reports
About Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Create a New Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
Choose a Report View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
Choose a Report Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
View Report Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Change a Reports Name or Title . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Import a Report or Report Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Repurpose an Existing Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Open a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Refresh a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Delete a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
About Reports
You can drag and drop tables, graphs, gauges, and controls to create a welldesigned report in SAS Visual Analytics Designer (the designer). You can add
text, images, and other controls to reports. A report can be divided into one or
more sections. (Sections are like pages.) Each section can have a different
layout and contain different report objects.
When you design a report, keep in mind that it might look slightly different on a
mobile device or in the viewer. For example, the layout of the tiles in the treemap
is dependent on the size of the display area. This means that the same treemap
might appear slightly different in the designer than it does in the viewer or on a
mobile device.
Reports that are imported from SAS Visual Analytics Explorer (the explorer)
might look slightly different in the designer.
The designer provides a report view that enables you to change the size of the
canvas that you use for laying out reports. For more information, see Choose a
Report View on page 307.
Two report layouts are available in the designer: Precision and Tiled. For more
information, see Choose a Report Layout on page 307.
(Optional) Select the layout (Precision or Tiled) for the first section of the
report using the Properties tab for Section 1.
3 Add report objects by dragging and dropping them onto the canvas or by
double-clicking the report object on the Objects tab. You can tab over a
report object and press Enter to add the report object to the canvas.
4
Add data items to report objects by dragging and dropping one or more data
items onto the report object or by right-clicking on the report object and using
the pop-up menu.
Note: If you add a graph to your report, and there is not enough space for
both the graph and the legend to display, then the legend will be dropped.
6
(Optional) View the report in SAS Visual Analytics Viewer (the viewer) by
selecting File View Report. Once you have viewed the report, you can
return to the designer by selecting File Edit Report.
7 Save the report. The default location for the first save is My Folder. After
(Optional) View or change the report properties using the File menu.
307
You can create a new report based on an existing report or on existing report
objects. For more information, see Repurpose an Existing Report on page
312.
, or
beside the
The report layout is not automatically adjusted for optimal viewing on a device.
However, the report does not necessarily display poorly. Before making the
report available to users, see how the report is displayed in each view.
Note: Reports can appear to be distorted when they are viewed using different
screen resolutions. It is recommended that you design a report using the
smallest resolution that you think a user would use to view the report.
3 For Layout, select either Precision or Tiled. The Tiled layout is the default.
(Optional) If you select Precision, then you can specify Fit to screen. The
Fit to screen option prevents objects from being sized too wide or too tall,
which can cause the report viewing area for the section to scroll.
Note: The Fit to screen option is only for designing reports. Your Fit to
screen selection is not saved with the report, so it does not affect the web
viewer or mobile devices.
Properties window is now selectable, which makes it easier for you to share
the location of your report with other users.
To view a reports properties:
1
309
field.
Here is an example of the Report Properties window:
By comparison, the Properties tab in the right pane of the designer can be used
to update the properties for individual report objects or report sections. The
available properties depend on the selected report object. To move to the
after the report
properties of different report objects or report sections, click
name, and then select another report object or report section from the list.
For information about updating report object properties, see About Report
Objects on page 316.
2 Enter a new Name, and click Save. The new report name is displayed as the
title on the Properties tab and as the name in the Report Properties window.
Imports.
2
Note: Report objects that cannot be imported from the explorer are not
displayed on the Imports tab.
3 In the tree view on the Imports tab, a list of the report name, the sections,
and the report objects is displayed. Drag the report, a single report object,
multiple report objects, or an entire section and drop it onto the canvas.
Select File Save As, or click , which displays the Save As window.
Enter a Name. Report names cannot use these characters: / \
5 Modify the report objects, properties, styles, roles, filters, display rules, ranks,
Click
beside the recent content drop-down list at the top of the
window, and then select a report name.
Click
Select File Open to display the Open window and select a report.
Open a Report
Reports in the designer are saved when you use either the Save window or the
Save As window. A saved report contains at least one section. Typically, a
section uses data items from a data source to perform queries. The section
displays the results with one or more report objects (for example, a table, a
graph, a gauge, a control, and so on). For more information about sections, see
Overview of Report Sections and Info Windows on page 457.
A section is not required to contain any report objects. For example, you might
have a report that you use only as a template to create other reports if you want
all reports to have a similar appearance. A template-like report might contain
data sources, calculated items, global data filters, and shared display rules, but it
might not contain report objects.
Delete a Report
313
To open a report:
1
TIP If you search for a single word, then the search assumes a wildcard
character before and after the word. For example, if you perform a search
with low in the Name field, then the search results include report names
such as Low Activity, Regions with Lowered Sales, and Monthly Travel
Allowance.
TIP The search is not case sensitive. For example, if you search for profit,
then the search results include report names such as Sports Equipment
Profits and Company profits last year.
3 Select a report name, and then click Open. The report is displayed in the
canvas.
Alternatively, you can open a report using the object inspector on the SAS Visual
Analytics home page. For more information, see Discover Details Using the
Object Inspector on the Classic Home Page on page 615.
Refresh a Report
You can reopen the current report and save any unsaved changes by selecting
File Refresh Report. When you are prompted to save changes, choose Save
or Dont Save. Unsaved changes can include changes to the underlying data
sources or changes that another user might have saved to the report.
This is especially useful if you have closed the current report without saving your
changes.
Note: You are not prompted to save the report if there are no unsaved changes.
Delete a Report
To delete a report:
1
2 Select the report that you want to delete, and then click
315
42
Using Report Objects
About Report Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
Insert a Report Object into a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Show or Hide Report Objects in the Objects Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Using Tables to Display Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About List Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About Crosstabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify Table Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify Table Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Add Sparklines to a List Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
320
320
320
321
322
323
Use the Combine Excluded Rows (or Cells) into All Other Properties . . . . 324
Using Graphs to Display Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify Graph Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify Graph Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
326
326
326
328
332
332
333
333
334
334
335
337
339
341
342
346
346
347
348
348
Table Type
List Table
Crosstab
Graph Type
Bar Chart
Targeted Bar Chart
Waterfall Chart
Line Chart
Pie Chart
Graph Type
Scatter Plot
Time Series Plot
Bubble Plot
Treemap
Dual Axis Bar Chart
Dual Axis Line Chart
Dual Axis Bar-Line Chart
Dual Axis Time Series Plot
Note: You can display the additional graph objects using the Show or Hide
Objects window. For more information, see Show or Hide Report Objects in the
Objects Tab on page 319. The additional graph objects are displayed in the
gallery in the graph builder.
The following table lists the available controls:
Icon
Control Type
Drop-down List
List
Button Bar
Text Input
Slider
Container Type
Vertical Container
Horizontal Container
Stack Container
Container Type
Prompt Container
Other Type
Text
Image
Stored Process
Geo Bubble Map
Geo Coordinate Map
Geo Region Map
Gauge
Word Cloud
Report objects of the Custom type are created using the graph builder. They are
identified by the
icon. For more information, see Using Custom Graphs to
Display Results on page 343.
In the designer, you have access to report objects from SAS Visual Analytics
Explorer (the explorer). You can open a histogram, heat map, box plot, or
correlation matrix in a report that has been exported from the explorer. However,
you cannot create new histograms, heat maps, box plots, or correlation matrices
in the designer.
the canvas.
n Double-click the report object on the Objects tab in the left pane. The report
object is automatically placed in the canvas. If you want the report object to
appear in a different location, then drag and drop it in a new location.
n Select the report object on the Objects tab in the left pane, and press Enter.
The report object is automatically placed in the canvas. If you want the report
319
are displayed on the Objects tab. For more information, see Show or
Hide Report Objects in the Objects Tab on page 319.
n Use the Insert menu to select the report object that you want to insert. The
report object is automatically placed in the canvas. If you want the report
object to appear in a different location, then drag and drop it in a new
location.
Additional steps are required for some report objects.
n If you insert a container, then you can drag and drop other report objects
2 Select the report objects that you want to show on the Objects tab. If there
are report objects that you do not want to see on the Objects tab, then clear
one or more check boxes for one or more report objects.
(Optional) To find a custom graph object that is not listed, click Select
Custom. The Choose an Item window is displayed. Select the custom graph
object, and click OK to return to the Show or Hide Objects window.
headings.
You can add sparklines to a column (if the data source contains a date data
item) when aggregated data is displayed in the list table. For more information,
see Add Sparklines to a List Table on page 323.
Starting in the 6.4 release, list tables are sorted in ascending order by the first
data item that you add. Only new list tables have a default sort selection. The
sorting of data items in list tables in existing reports does not change. To sort the
list table by a column, click on the column heading. An arrow appears in the
column heading to indicate the sorting.
Here are some key points about list tables:
n If you sort a list table, then the list table displays only the first 5,000 sorted
rows.
n You cannot select the totals in a list table.
About Crosstabs
You can show subtotals and totals by selecting the appropriate check box (or
check boxes) on the Properties tab for the crosstab. You can show a
percentage of total or percentage of subtotal in a crosstab. For more information
about percentage of total or percentage of subtotal, see Create Derived Items
for Measures on page 363.
You cannot add a sparkline to a crosstab.
You should consider placing lower cardinality (fewer distinct values) categories
on the columns and higher cardinality (more distinct values) categories on the
rows. Crosstabs can help you improve readability especially when there are
several category data items to include in your table.
By default, frequency is displayed only when there are no measures in the
crosstab. If you add a category data item first, then the Frequency column is
automatically added. When you add a measure data item, the Frequency
column is automatically replaced by the measure that you added. If you add a
321
measure data item first, then the Frequency column is added only if you
manually add it.
Here are some key points about crosstabs:
n You can create a brush interaction for totals and subtotals in a crosstab.
n A crosstab does not show data if the query is too large.
update.
2
Update the general properties for the table. You can update the Name, Title,
Format (for the title's font style), and Description.
4 Update the object-specific properties for the table. The available properties
list tables. This means that users who use the web viewer or a mobile
device can select the list table, and click
to see the list table name and
any incoming filter information.
n You can use the Data Options properties to enable sorting, show detail
data, combine excluded rows into all other, and to show totals. These
properties are available when you use summarized data. They apply to
both ranks and post-aggregate filters.
Note: By default, a list table contains aggregated data with one row for
each distinct combination of category values. However, if the Show detail
data check box has been selected, then all of the data is not aggregated.
For list tables, you can select the Combine excluded rows into All
Other property, under the Data Options heading, to summarize all
excluded rows. For more information, see Use the Combine Excluded
Rows (or Cells) into All Other Properties on page 324.
TIP Select the Show labels for totals property to turn off or turn on
crosstabs. This means that users who use the web viewer or a mobile
device can select the crosstab, and click
to see the crosstab name
and any incoming filter information.
n You can specify that you want to display missing labels as blanks instead
update.
2
3 Update the styles for the table. The available styles depend on the selected
table type. For example, you can specify Border and Fill, Cells, Column
Headings, and Totals for list tables and crosstabs.
Here are some details about the styles for list tables:
n Select Wrap text to wrap text in the cells of a list table.
n Select Enable alternating background color to specify that the color of
every other row appears darker in the list table. Use the Alternating
background color to specify the color of every other row in the list table.
Use the Selection color style to specify the color of the selected row in
the list table.
323
Your custom colors are saved between SAS Visual Analytics sessions. Your
custom colors are displayed in the color palette. Here is an example:
Figure 42.1
update.
2
Right-click the list table, and then select Add Sparkline. The Add Sparkline
window is displayed.
source.
5 Select a Measure (line).
6
(Optional) Select the Set baseline check box. Enter a Value, and select a
Fill type. Your choices are Gradient or Solid.
The Set baseline option draws a horizontal line through the graph at the
point on the Y axis where the baseline value resides. Everything above or
below the baseline is filled in with either a solid or gradient color.
7 Click OK. The sparkline is added to the last column in the list table. You can
Use the Combine Excluded Rows (or Cells) into All Other Properties
325
The following list table shows how the content of combining visible categories is
factored into All Other. The list table has two categories and a measure. The
Combine excluded rows into All Other property is selected on the
Properties tab. The list table is filtered by aggregate quantity values using the
adjacent slider control.
Here are some key points about the Combine excluded rows into All Other
property and the Combine excluded cells into All Other property:
n The property cannot be set when the report object is displaying detail data.
n The property cannot be set when the report object includes a rank with the
If it is not already selected, select the graph in the canvas that you want to
update.
Update the specific properties for the graph. The available properties depend
on the selected graph type.
Here are details about the properties for graphs:
n By default, the Enable selection in the viewers property is selected for
graphs. This means that users who use the web viewer or a mobile
device can select the graph, and click
to see the graph name and any
incoming filter information.
n For select graphs only, you can use the Combine excluded cells into
All Other property under Data Options. This property applies to both
ranks and post-aggregate filters. For more information, see Use the
Combine Excluded Rows (or Cells) into All Other Properties on page
324.
n To add a new horizontal or vertical reference line to all graph types except
the pie chart and the treemap, select Create new reference line. You
can specify a Label, an Axis, a Value, and the Style of the new line.
Note: Properties for the axes or reference lines are not displayed for a
custom graph that has merged or common axes.
n To rotate a graphs X axis category labels by 45 degrees, select the
Rotate value label property. This property is available for the bar chart,
targeted bar chart, waterfall chart, line chart, dual axis bar chart, dual axis
327
line chart, the dual axis bar-line chart, and custom graphs with a single X
axis that has discrete values.
Note: You cannot use the Rotate value label property if you assign a
data item to a lattice row or lattice column data role.
n For bar charts that are assigned multiple measure data items (in the
Measures role) or if you group a data item, you can create a 100%
stacked bar chart using the Grouping style and Grouping scale
properties. Select Cluster or Stack for the Grouping style. Select
Normalize groups to 100% for the Grouping scale.
Note: The Grouping scale property is not available for the dual axis bar
chart, the dual axis bar-line chart, or any custom graph with at least one
bar chart and a second Y axis.
Note: Negative values are ignored in the 100% stacked bar chart.
Note: If you select Normalize groups to 100% for a bar chart, then the
Set baseline property is not available.
Note: The Callout and Outside options for the Data label location are
not supported for grouped pie charts. Selecting either of these options
has no effect on the pie chart.
n To fill a line chart or a time series plot with color, select a Grouping style.
The style choices are Overlay Unfilled, Overlay Filled, and Stack
Filled. The default grouping style is Overlay Unfilled.
n To change the percentage for the other slice in a pie chart, change the
amount listed in the Minimum percentage for Other field. The default
is 4%.
n To display the measure label at the top of a pie chart, select the Show
step plot, or dot plot; or for the bubbles in a bubble plot or a bubble
change plot; or for the bars in a schedule chart, move the slider for
Transparency to any value between 0% and 100%. The default value for
transparency is 0%.
n For the treemap, the Layout property determines how the tiles are
arranged. The Show level indicator check box determines whether the
label of the data item that is in the Tile role is displayed above the
treemap.
n Use the Binning interval for a time series plot or a dual axis time series
plot when you have an uneven grouping of time data. The options are:
Automatic
Determines the best bin size for your data. This option is the default.
Fixed count
Enables you to specify an interval between 10 and 500 in the Fixed
bin count field.
Use format
Uses the format of the date data item as the interval.
n To set a baseline for a needle plot or butterfly chart, specify a number for
If it is not already selected, select the graph in the canvas that you want to
update.
graph type. For example, you can specify Border and Fill, Data Styling,
Frame Styling, Text Styling, and Data Colors for all graphs.
By default, the background of a graph is set to white. Use the Wall
background option (under Frame Styling) to specify a different color.
TIP Move the slider beside the color palette to set the transparency for
About Controls
A control is a report object that filters or narrows the scope of the data that you
are currently viewing. A control enables you to group your data by a selected
category, and then select which group you want to view. When you drag and
drop a data item onto a control, the control creates a group based on that data
item. For example, you might have a data item called Cars that contains all of
the models that a manufacturer produces. When you drag and drop the Cars
data item onto a drop-down list, the control groups the car models, and then you
can select a car model to use as a filter. Controls can be used in a report with
interactions.
Report prompts are controls that are placed in the special area at the top of the
canvas. A report prompt automatically filters all of the other report objects as
long as the report object uses the same data source as the report prompt
329
control. For more information, see Use a Control to Create a Report Prompt on
page 330.
Section prompts are the controls that are placed in the special row area below
the section tabs at the top of the canvas. A section prompt automatically filters
all of the other report objects in the same section, as long as the report object
uses the same data source as the section prompt control. For more information,
see Use a Control to Create a Section Prompt on page 331.
You can place any control in the main area of the canvas below the section
prompt row. You must define explicit interactions (using either the Interactions
tab or the Interactions view) between these controls (as the source report
objects) and one or more target report objects. For more information about
interactions, see Overview of Interactions on page 427.
The text input control, button bar control, drop-down list control, and slider
control (single-point only) support parameters. For more information, see
Overview of Parameters on page 453.
The following controls are available in the designer:
n drop-down lists
n lists
n button bars
n text input fields
n sliders
Controls support parameters. For more information, see Chapter 49, Working
with Parameters in Reports, on page 453.
update.
2
Update the general properties for the control. You can update the Name,
Title, Format (for the title's font style), and Description.
4 Update the specific properties for the control. The available properties
for controls. This means that users who use the web viewer or a mobile
device cannot select the control, and click
to see the control name and
any incoming filter information. However, users can still modify values for
the control.
n For drop-down lists, lists, and button bars, select the Required property if
you want to require users to make a selection in the control. If you select
the Required property for a list, at least one check box must always be
selected.
you clear the Allow multiple selection check box, radio button are
displayed instead of check boxes and the Required property is applied
automatically.
n For button bars and sliders, the Horizontal property is selected by
default.
n For sliders, select the Interact on the data in view property if you want
the Minimum and Maximum properties for the slider end points.
Note: You cannot have a filter or rank when the Set fixed range property
is selected for a slider.
If it is not already selected, select the control in the canvas that you want to
update.
control type. For example, for a drop-down list, you can specify Border and
Fill, Drop-down Styling, and Text Styling.
Your custom colors are saved between SAS Visual Analytics sessions. Your
custom colors are displayed in the color palette. For an example of the color
palette, see Figure 42.1 on page 323.
the area above the tabs on the canvas. (Look for the hint text that says,
Drop controls here to create a report prompt.) The control appears above
the tabs on the canvas.
Note: You can also use a prompt container to create a report prompt.
2 Drag and drop a category, measure, or parameter onto the control. For
example, if you drag and drop a drop-down list control, then you can assign a
category like Facility City or Facility State. Then, the drop-down list is
populated with the cities or states that are used in that category.
You can also use the Roles tab in the right pane to specify the Category and
Frequency roles for the report prompt.
331
(Optional) Update the general properties for the report prompt. You can
update the Name and Description.
(Optional) Update the specific properties for the report prompt. The available
properties depend on the selected control.
Here are some details about the properties for controls:
n By default, the Enable selection in the viewers property is not selected
for controls. This means that users who use the web viewer or a mobile
device cannot select the control, and click
to see the control name and
any incoming filter information. However, users can still modify values for
the control.
n For drop-down lists and button bars, select the Required property if you
want to require a user to make a selection in the control. If you select the
Required property for a drop-down list, at least one check box must
always be selected.
n For sliders, for Value, the Range property is selected by default. Select
the Interact on the data in view property to have the control filter only
the aggregated data that is currently displayed in the report. If you clear
this property, then the detail data is filtered.
Note: If the Interact on the data in view property is not selected, then a
slider does not filter crosstabs or time series plots.
n For button bars and sliders, the Horizontal property is selected by
default.
If the report prompt uses one data source and the report objects on the canvas
use another data source, you can change the data source mappings by rightclicking the control, and then selecting Edit Data Source Mapping. For more
information, see Map Data Sources on page 438.
or
to
the area above the report objects and below the tabs on the canvas. (Look
for the hint text that says, Drop controls here to create a section prompt.)
The control appears below the tabs on the canvas.
Note: You can also use a prompt container to create a section prompt.
2
Drag and drop a category, a measure, or a parameter onto the control. For
example, if you drag and drop a drop-down list control, then you can assign a
category like Facility City or Facility State. Then the drop-down list is
populated with the cities or states that are used in that category.
You can also use the Roles tab in the right pane, and then specify the
Category and Frequency roles.
TIP If you move a section prompt from one section to another section in a
report, you must edit the data source mapping for an interaction to work.
Right-click the control, and select Edit Data Source Mapping. For more
information, see Map Data Sources on page 438.
If the section prompt uses one data source and the report objects on the canvas
use another data source, you can change the data source mappings by rightclicking the control, and then selecting Edit Data Source Mapping.
or
to
deck. Only one report object is displayed at a time. The stack container has a
control bar instead of a scroll bar that lets you move between report objects.
You cannot nest stack containers. However, you can place them side by side.
When you use precision layout, you can resize the stack container.
333
containers are affected by report prompts, but not by other section prompts.
They are not affected by interactions. Report objects inside prompt
containers are filtered by the same rules as other objects.
Prompt containers can be added to the report prompt area and section
prompt area on the canvas. This enables you to add control types (for
example, list controls) that are not otherwise allowed in those prompt areas.
TIP If a prompt container is open and there are unsaved changes, then
the button bar changes. An Apply button is displayed so that you can
apply changes.
Note: Stored processes cannot be added to any type of container.
If it is not already selected, select the container in the canvas that you want
to update.
Update the general properties for the container. You can update the Name,
Title, Format (for the title's font style), and Description.
Update the object-specific properties for the container. Here are some details
about the properties for containers:
n By default, the Enable selection in the viewers property is selected for
containers. This means that users who use the web viewer or a mobile
device can select the container, and click
to see the container name
and any incoming filter information.
n Update the order in which the report objects appear inside the container.
n For stack containers, the Navigation control location property changes
the location of the control bar, and the Navigation button type property
changes the appearance of the control bar. You can reorder the display of
the report objects in the stack container using the Objects list.
n For prompt containers, you can select the Layout and Button text. The
to update.
2 In the right pane, click the Styles tab.
Update the styles for the container. The available styles depend on the
selected container type. Border and Fill is available for all containers.
Prompt containers also have Drop-down Styling and Text Styling options.
The Button bar color style option for the prompt container enables you to
change the background around the Close button.
Here is an example of a prompt container that has the Background color
and Button bar color styles set.
Your custom colors are saved between SAS Visual Analytics sessions. Your
custom colors are displayed in the color palette. For an example of the color
palette, see Figure 42.1 on page 323.
to update.
2
Update the general properties for the text. You can update the Name, Title,
Format (for the title's font style), and Description.
335
(Optional) Update the object-specific properties for the text object. By default,
the Enable selection in the viewers property is not selected for text objects.
This means that users who view the report in the web viewer or a mobile
device cannot select the text in a report.
Use an Image
About Images
You can use images to include your corporate logo or other graphics in your
reports. You can insert images from a repository or from your local machine. If
you select an image from your local machine, it is saved to the repository. You
can also add tooltip text to an image.
from the Objects tab in the left pane and drop it onto the
canvas. The Image Selection window is displayed.
If it is not already selected, select the image in the canvas that you want to
update.
Update the properties specific for the image. Your choices are Location,
Scale type, and Tooltip text.
By default, the Enable selection in the viewers property is not selected for
images. This means that users who use the web viewer or a mobile device
cannot select the image, and click
to see the image name.
337
Note: Users who view stored processes using SAS Mobile BI cannot be
prompted. Instead, the stored process runs using the prompt values that were
added when the report was created.
Note: The stored process output in a report is rendered as HTML regardless of
the requested output type.
For information about creating a stored process and registering it in metadata,
see SAS Stored Processes: Developer's Guide.
want to update.
2 In the right pane, click the Properties tab.
3
Update the general properties for the stored process. You can update the
Name, Title, Format (for the title's font style), and Description.
Update the properties specific to the stored process. Your choices are Show
metadata view and Show SAS log in the output. If the stored process
contains prompts, the Edit Prompts button is displayed.
Selecting the Show SAS log in the output option means that both the log
output and the stored process output are displayed in the report. This can
assist you in debugging problems.
339
maps that use custom roles or data sets that have centroids) cannot be fully
modified in the designer.
or geo region map, the Color data role takes precedence over the display
rule. The geo coordinate map does not have a Color data role. For more
information about data roles, see Working with Data Role Assignments on
page 379.
If it is not already selected, select the geo bubble map, geo coordinate map,
or geo region map in the canvas that you want to update.
Update the general properties for the geo bubble map, geo coordinate map,
or geo region map. You can update the Name, Title, Format (for the title's
font style), and Description.
Update the properties that are specific to the geo bubble map, geo
coordinate map, or geo region map. You can update Show map navigation
control, Transparency, and Show legend.
Here are some details about the properties for geo maps:
n Use the Map Service property to change the map provider for a geo
bubble map, geo coordinate map, or geo region map after you have
placed it on the canvas. This property changes the map type from
OpenStreetMap to any available Esri service if an Esri service is
available.
n For a geo bubble map, you select the Transparency for the bubble plot.
For a geo coordinate map, you select the Transparency for the scatter
plot. For a geo region map, you select the Transparency for the regions.
If it is not already selected, select the geo bubble map, geo coordinate map,
or geo region map in the canvas that you want to update.
3 Update the styles for the geo bubble map, geo coordinate map, or geo region
map. You can specify Border and Fill, Data Styling, Frame Styling, Text
Styling, and Data Colors for the geo bubble map, geo coordinate map, or
geo region map.
Your custom colors are saved between SAS Visual Analytics sessions. Your
custom colors are displayed in the color palette. For an example of the color
palette, see Figure 42.1 on page 323.
341
Use a Gauge
About Gauges
A gauge is a dashboard indicator (also known as a KPI) that displays the status
or measure of a variable or variables in relation to a target, goal, or interval.
Gauges are designed to achieve this goal in a way that is familiar to users. Many
real-life objects use gauges, such as cars and machines. Gauges can be used
to display a quantity, range, variable, or status. They often appear in business
intelligence dashboards.
Qualitative ranges are required for all gauges in the designer. You can populate
the range intervals manually, or you can have them generated for you based on
the range of the actual data.
Gauges in the designer support high cardinality.
For a definition and a picture of each gauge type, see Gauges on page 557.
Update the general properties for the gauge. You can update the Name,
Title, Format (for the title's font style), and Description.
4 Update the specific properties for the gauge. The available properties
gauges. This means that users who use the web viewer or a mobile
device can select the gauge and click
to see the gauge name and any
incoming filter information.
n (Optional) Clear Show value label, Show range labels, or both
properties.
n Select a Type for the gauge. You can choose Bullet, Dial, Slider,
Speedometer, or Thermometer.
n For the bullet, slider, and thermometer gauges, you can specify the
Direction for displaying the gauge. The default for the bullet and slider
gauges is Horizontal. The default for the thermometer gauge is Vertical.
update.
2
3 Update the styles for the gauge. The available styles depend on the selected
gauge type. For example, you can specify Border and Fill, Data Styling,
Frame Styling, Text Styling, and Data Colors for gauges.
Note: The Header value enables you to set only the text color.
Your custom colors are saved between SAS Visual Analytics sessions. Your
custom colors are displayed in the color palette. For an example of the color
palette, see Figure 42.1 on page 323.
data, add a rank for the word cloud, and use a number less than 100. For
more information, see Add a New Rank on page 449.
Word clouds support display rules and interactions.
to update.
2
3 Update the general properties for the word cloud. You can change the Name,
word clouds. This means that users who use the web viewer or a mobile
device can select the word cloud, and click
to see the word cloud
name and any incoming filter information.
n Use the Arrangement property to specify how the words are displayed in
the word cloud. Cloud is the default. Use Rows to display the words in
rows as if you were reading text in a book.
343
n Use the Font scale to control the difference in the size of the smallest
query come back, only the top 100 terms, based on a descending sort of
the size measure, will be displayed. Use the Word display limit property
to display fewer terms. The slider can be set to a number between five
and 100.
to update.
2 In the right pane, click the Styles tab.
3
Update the styles for the word cloud. For example, you can specify Border
and Fill, Frame Styling, Text Styling, and Data Colors.
TIP A three-color Gradient data color style is available for word clouds
want to update.
3 Update the general properties for the graph. You can update the Name, Title,
want to update.
2
3 Update the styles for the graph. The available styles depend on the selected
custom graph type. For example, you can specify Border and Fill, Data
Styling, Frame Styling, Text Styling, and Data Colors for custom graphs.
By default, the background of a graph is set to white. Use the Wall
background option (under Frame Styling) to specify a different color.
Note: A three-color Gradient data color style is available for custom graphs
that have a Color role.
Your custom colors are saved between SAS Visual Analytics sessions. Your
custom colors are displayed in the color palette. For an example of the color
palette, see Figure 42.1 on page 323.
345
Setting the Overlaid plot colors property affects the Fill colors on the Styles
tab when you open the custom graph in the designer.
Figure 42.2
If a custom graph contains more than eight groupings, the Fill colors are
repeated. Here is the pattern for colors:
Colors
Pattern
1-8
9-16
17-24
25-32
33-40
41-48
More than 48
colors
the report object in the report. (For example, List Table 1, Bar Chart 1,
and so on.) The duplicated report object is placed on the canvas with a name
based on the original name. For example, if the original report object name is
List Table 1, then the duplicate report object is displayed as List Table
1 (1). If you choose to duplicate the same report object again, then it is
displayed as List Table 1 (2).
3 (Optional) Move the duplicate report object to another section. Right-click the
report object that you want to move. Select Move <ReportObject> to
(Optional) If you want the report object to appear in a different location, then
drag and drop it in a new location.
If you move an object to a section with precision layout, then you must
manually move the object to its proper location. All objects are put in the top
left corner by default.
347
Add an Alert
To add an alert to a report object:
1
If it is not already selected, select the report object in the canvas to which
you want to add an alert.
is displayed.
n In the right pane, click the Alerts tab. Click
displayed.
3
On the Expression tab, specify the criteria for the alert. You can create a
new expression or use an existing expression.
(Optional) Specify how often you want the system to check for the criteria.
You can use the system default, which is set by your administrator, or you
can limit the check to a minute or hourly increment.
6 Click OK. The details for the alert are displayed at the bottom of the Alerts
tab.
Edit an Alert
To edit an alert:
1 In the right pane, click the Alerts tab.
2 Select the alert that you want to edit, and click
displayed.
3
Update the alert criteria, and then click OK to save your changes.
Delete an Alert
Alerts are not automatically deleted when a report is deleted. You can delete an
alert on the Alerts tab. Select the alert that you want to delete, and click
Then, click Delete in the confirmation message that is displayed.
349
43
Working with Data in SAS Visual
Analytics Designer
Overview of Data Sources and Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Working with Data Sources in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
About Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Import a Data Source for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Add a Data Source to a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Refresh a Data Source for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
Remove a Data Source from a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
Change a Data Source in a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
View Measure Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
Show or Hide Data Items on the Data Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
Sort Data Items on the Data Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Group Data Items on the Data Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Working with Hierarchies in a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
About Hierarchies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Create a New Hierarchy for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
Edit a Hierarchy for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
Delete a Hierarchy for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Working with Data Items in a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
About Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Assign Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
Automatic Data Item Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Duplicate Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Rename Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
Search for Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
Create a Distinct Count for a Category Data Item . . . . . . . . . . . . . . . . . . . . . . . . . . 363
Create Derived Items for Measures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
Create a Percentage of Total Using the Data Tab . . . . . . . . . . . . . . . . . . . . . . . . . . 365
Create a Custom Category . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
Modify Data Item Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
Delete Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
Working with Geography Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
About Geographic Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
Use a Predefined Geography Data Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Create a Custom Geography Data Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Working with Calculated Items in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
About Calculated Data Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
375
376
377
377
379
351
In the Import Data pane, select a data source that you want to import.
TIP If you select a delimited text file, then you can specify additional
options. For example, you can specify the delimiter, whether the first row
contains column heading names, and where the data rows begin.
TIP If you select a spreadsheet, then you can specify additional options.
For example, you can specify which worksheets to import, whether the first
row contains column heading names, and where the data rows begin.
3
Click Add.
In the Add Data Source window, select one or more data sources.
TIP Use the Search field to narrow the list of data sources that are
displayed in the Add Data Source window. The search searches the Name
and Description fields. It is a begins with search rather than a contains
search. If you receive a message that a data source is not available,
contact your data administrator.
3 Click Add. The list of available data items is displayed on the Data tab.
4 (Optional) To add additional data sources, click
353
To refresh the list of data sources when you are using the Add Data Source
window, click
beside the search field. This updates the list of all possible data
sources. Individual data sources are not refreshed.
When you refresh a data source for a report, columns that have been deleted
from the table metadata in the SAS LASR Analytic Server are automatically
removed if they do not impact any objects in the report. If deleted columns do
impact objects in the report, then the Repair Report window is displayed so that
you can repair the objects that are impacted by the deleted columns. For more
information, see Appendix 8, Troubleshooting in SAS Visual Analytics
Designer, on page 597.
On the Data tab, select the data source, and then click
On the Data tab, click , and then select Change Data Source. The
Change Data Source window is displayed.
3 Click Change.
On the Data tab, click , and then select Measure Details. The Measure
Details window is displayed.
Click Close.
2 Select the data items that you want to appear on the Data tab. If there are
data items that you do not want to see on the Data tab, then clear the check
box (or check boxes) for that data item (or data items).
3 Click OK. The Data tab is updated.
Alternatively, you can select a data item that you want to hide on the Data tab.
Right-click the data item, and select Hide Data Item.
TIP Starting in the 7.2 release, you can hide all of the data items that are not
You can also use a data source filter to restrict the data that is displayed in a
report. For more information, see Use a Data Source Filter in a Report on page
421.
355
The data items are sorted on the Data tab within each grouping. The default sort
is Ascending By Name.
For information about sorting data values in report objects, see Sorting Data in
Reports on page 388.
The data items are grouped on the Data tab. The default is grouping By Role.
On the Data tab, click , and then select New Hierarchy. The New
Hierarchy window is displayed.
2 Enter a Name.
3 Select at least two categories, and drag them to the Hierarchy list.
4 (Optional) Use the up and down arrows to arrange the data items in the
Hierarchy list.
5
TIP You can create a date hierarchy by right-clicking a date or datetime data
item on the Data tab, and selecting Create Date Hierarchy. If you use a date
data item, it must have a format that specifies the year or the Create Date
Hierarchy option is not available.
Crosstab report objects enable you to create hierarchies from the categories on
a crosstab axis. To create a hierarchy, right-click a category heading, and then
select Create Hierarchy. The categories are replaced with a new hierarchy. The
name of the new hierarchy is generated from the name of the outermost
category with the suffix Hierarchy.
Right-click the hierarchy name on the Data tab, and select Edit Hierarchy.
The Edit Hierarchy window is displayed.
If the hierarchy that you edit is already used in a report object and is drilled or
expanded, it returns to the top level after it is edited.
removed from the list of data items, as well as from any report objects, filters,
or ranks that were using it.
Description
A data item that represents special predefined
operations, like distinct count, percentage of totals,
percentage of subtotals, or frequency percent. Or,
users can define their own aggregated measure
calculations.
Aggregate measures can be used in only some report
objects. They cannot be used in filters, controls, spark
lines, or time series graphs. Percentage of subtotal
items (including row total, row subtotal, column total,
and column subtotal) can be used only in crosstabs.
Some aggregated measure calculations cannot be
used in a detail rank.
Icon
Calculated
,
or
Description
,
Category
Icon
Description
A category data item whose values are mapped to
geographical locations or regions. Geography data
items can be used in reports to show your data on a
geographic map. For example, a geography data item
can identify geographic information that is specific to
your organization (for example, sales regions,
warehouse locations, oil platforms, and so on). For
more information, see Working with Geography Data
Items on page 372.
The geography icon can also indicate that all data
items in a hierarchy are based on geography.
Hierarchy
Measure
Note: Report objects that are imported from SAS Visual Analytics Explorer (the
explorer) use either live or on-demand data. For on-demand data, you can
update the properties and styles for these report objects in the designer, but you
cannot change the data assigned to them.
On the Data tab in the left pane, click the down arrow to display a list of
available data sources. Select a data source, and the Data tab is populated
with a list of all of the data items that are in the data source.
If the data source that you want is not in the list, click , which displays the
Add Data Source window. Select the data source that you want, and then
click Add. The Data tab is populated with a list of all of the data items that
are in the data source.
If you do not want to use the data source that you originally selected, click
. Click Delete in the confirmation message that is displayed.
Select an existing report object that uses the same data source name or add
a new report object to the section.
Drag and drop a data item onto the canvas. The data item is automatically
assigned a data role. For more information, see Automatic Data Item
Assignments on page 361.
If the selected data item can replace a current data item in the report object
or if the selected data item is valid for multiple data roles, then select the data
assignment from the Assign <DataItemName> as window. A data
assignment that is marked with a red asterisk (*) is required before the query
can be run.
(Optional) To see more information about a data item, select it in the list. The
Name, Classification, Format, and Aggregation are displayed in the data
item table below the list of data items. For a category data item with a userdefined format that has an underlying numeric value, you can specify Sort
Options.
On the Data tab in the left pane, right-click the data item that you want to
duplicate. Select Duplicate Data Item.
All of the properties of the original data item are copied to the duplicate data
item. The duplicate data item appears in the list of data items on the Data
tab. For example, if the original data item name is Engine Size, then the
duplicate data item is displayed as Engine Size (1). If you choose to
duplicate the same data item again, then it is displayed as Engine Size
(2).
3 (Optional) Change the format or aggregation for the duplicate data item.
4 (Optional) Edit the calculation for a calculated data item or aggregated
measure.
5
(Optional) Change the sort options for a category data item with a userdefined format that is based on an underlying numeric value.
(Optional) Change the classification for the data item. For example, a
numeric data item that has been duplicated and is not yet assigned to a
report object can be a category or a measure.
Enter a new name. The name cannot be used by another data item in the
same data source.
Click OK.
Alternatively, you can use the data item table at the bottom of the Data tab to
rename a data item. For the Name property, enter a new name for Value.
Enter the name of a data item in the search field on the Data tab. The field is
located above the list of data items.
Click
to clear the search term and display all of the data items in the data
source.
to
The distinct count data item appears in the list of data items with a name that
is derived from the original name. For example, if the original data item name
is Date, then the distinct count data item is displayed as Date (Distinct
Count). The
icon identifies the new distinct count data item on the Data
tab.
aggregations.
To create a derived item from a report object:
1
In the report object, right-click on the measure data item that you want to use
for the derived item.
2 Select Create and Add, and then select one of the following:
Period to Date
Displays the aggregated value for the current time period and all of the
previous time periods within a larger time interval. For example, you might
derive the year-to-date total for each month.
Note: This derived item is not available if your data source does not
contain a date data item that includes the year.
Year to Date
Displays the aggregated value for the current time period and all of the
previous time periods within the year. For example, you might derive the
year-to-date total for each month.
The year-to-date calculation subsets the data for each year using todays
date (where today is evaluated each time you view the report). To use all
data for every period, edit the expression for the derived item.
Note: This derived item is not available if your data source does not
contain a date data item that includes 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. For example, you might derive the difference in yearto-date sales between the current month and the same month 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 report). To use all
data for every period, use a Period to Date item or edit the expression for
the derived item.
For the month that contains todays date, the data for an earlier year is
subset to the same corresponding date.
Note: This derived item is not available if your data source does not
contain a date data item that includes the year.
Year over Year Growth
Displays the percentage difference between the current time period and
an equivalent time period from the previous year. For example, you might
derive the difference in sales between the current month and the same
month of the previous year.
The year-over-year growth calculation subsets the data for each year
using todays date (where today is evaluated each time you view the
report). To display a percentage of growth using full periods, use Percent
Difference from Previous Parallel Period or edit the generated formula.
For the month that contains todays date, the data for an earlier year is
subset to the same corresponding date.
Note: This derived item is not available if your data source does not
contain a date data item that includes the year.
Alternatively, you can use the Data tab to create derived data items.
compatible with the locale of the data source. If the data source uses Unicode,
then your labels can contain characters from any locale.
To create a custom category:
1
On the Data tab, right-click on the category or measure data item that you
want to use to create the new custom category. Select New Custom
Category. The New Custom Category window is displayed.
Note: In the New Custom Category window, Based on identifies the type
and the name of the data item that the custom category is based on.
2 Select the Values that you want to include. Drag and drop the values onto
New label.
TIP To rename a custom group label, right-click the label name, and
select Edit.
3
(Optional) Specify the Options for remaining values. You can specify a
name when you select Group remaining values as. The default label for
Group remaining values as is Other. Alternatively, you can specify Show
as missing or Show as is.
Note: The Show as is option is available only for data items that are based
on string categories. It is not available for numeric or date values.
4 Specify a Name for the new custom category. The default name is
CustomCategory1.
5 Click OK. The new custom category is displayed on the Data tab.
enter a new name. The name cannot be used by another data item in the
same data source. Your change is saved automatically.
Alternatively, you can right-click the data item, and select Rename Data Item.
TIP For geography data items, use the pop-up menu instead of the dropdown menu to change the classification. The pop-up menu enables you to
specify additional classification information for the geography data item.
2 In the data item table, select the existing format. A list is displayed with the
Format type, Width, and Decimals (for numeric data items). Make your
selections. A sample of your selection is displayed under the list.
Note: There are different format variations available for some format types
for date, datetime, and time data items. Select the format variation based on
the sample value displayed in the Format drop-down list.
Note: The Reset to Default option is displayed only if the format has been
changed from the default.
Note: The Reset to Default option is available for user-defined format data
items after they have been modified to a standard numeric format as long as
the data item is still a category data item.
3
.A
drop-down list is displayed with aggregations. For a list of the available
aggregation types, see Appendix 4, Aggregations for Measures, on page
565.
When you select an aggregation, your change is saved automatically.
Note: All of the report objects in the report that use this data item are
affected by this change unless you have selected a local aggregation
override.
Note: Depending on the aggregation, formats might be overridden when
they are used in report objects. For example, skewness becomes a floating
point number with four decimals.
To change the aggregation method when you are working with a report object in
the canvas:
1
On the Data tab in the left pane, right-click the data item that you want to
delete.
Click Delete in the confirmation message that is displayed. The data item is
removed from the list of data items, as well as from any report objects, filters,
or ranks that were using it.
373
Note: For predefined geographic roles, the values of your geography data items
must match the lookup values that are used by SAS Visual Analytics. To view
the lookup values, see http://support.sas.com/va72geo.
TIP To get geographic maps to work with any data set, add a column with
the predefined lookup values to your data set.
For example, suppose you have data that includes airport location identifiers,
latitude, and longitude. You can convert the airport location identifiers to custom
geography data items.
To create a custom geography data item:
1 On the Data tab in the left pane, right-click the data item that you want to use
for the custom geography data item. Select Geography, and then select
Custom. The Geography window is displayed.
TIP Make sure that the data item that you select is a category data item
Select a measure for the Latitude. You can also enter the first letter of the
name of the latitude column to quickly search for it in the drop-down menu.
Select a measure for the Longitude. You can also enter the first letter of the
name of the longitude column to quickly search for it in the drop-down menu.
tab.
expression is evaluated for each row in the data source before aggregations
are performed. To perform calculations on aggregated data, see Add a New
Aggregated Measure to a Report on page 377.
n Calculated data items can accept parameters. For more information, see
375
Enter a Name.
3 Select a Result type from the drop-down list. Numeric is the default data
type.
The following table lists the available result types:
Icon
Result Type
Character
Date
Datetime
Numeric
Time
Calculated data items in the designer always default to the following formats,
which are based on the data type:
n Date: DATE9
n Datetime: DATETIME10
n Time: TIME8
After you create the new calculated data item, you can change its format
using the data item table on the Data tab unless it is a character calculated
data item. You cannot specify a format for a character calculated data item.
Sum is the default aggregation for new numeric calculated data items in the
designer. You can change the aggregation for numeric calculated data items
using the data item table on the Data tab.
4 (Optional) Click
Use the Visual tab to build the expression for your calculated data item by
dragging Data Items and Operators onto the expression in the right pane.
For each rectangular field in the expression, you can insert a data item, an
operator, or a specific value.
When you drag and drop data items or operators onto your expression, the
precise location of the cursor determines where and how the new element is
added to the expression. As you drag the new element over the expression,
a preview appears that displays how the expression changes if you drop the
element at that location.
For example, if your current expression is ( Profit / Revenue ), and you
drag and drop the x - y (subtract) operator inside the open parenthesis
symbol, then the expression changes to ( [number] ( Profit /
Revenue )). If you drag and drop the operator over the division symbol,
then the expression changes to ( Profit Revenue ), and so on.
Alternatively, you can use the Text tab to enter the expression.
You can use the Scratch tab to build temporary expressions.
There are a large number of operator types available to perform
mathematical functions, process datetime values, handle text, and evaluate
logical processing such as IF clauses. For more information, see Appendix 5,
Operators for Data Expressions, on page 567.
, or
icon identifies the new calculated data item on the Data tab.
Note: The
icon is displayed if you change a calculated numeric measure
to a category data item. It is also displayed for a character calculated data
item (which is always a category).
377
Modify the Data Items and Operators for the calculated data item as
needed. For information about the operators that are available, see Appendix
5, Operators for Data Expressions, on page 567.
Note: If the calculated data item has not been used in a report, then you can
modify the Result type.
3 Click OK.
You can duplicate, rename, hide, and delete calculated data items using the
same steps as any other data item. If a calculated data item is used inside
another calculated data item, then it cannot be removed.
TIP You can cut and paste from the Text area between different reports as
well as between the explorer and the designer to transfer calculations or to email them to others. For more information, see Editing a Data Expression in
Text Mode on page 561.
On the Data tab, click , and then select New Aggregated Measure. The
New Aggregated Measure window is displayed.
Enter a Name.
3 (Optional) Click
Use the Visual tab to build the expression for your aggregated measure by
dragging and dropping Data Items and Operators onto the expression in the
right pane. For each field in the expression, you can insert a data item, an
operator, or a specific value.
When you drag and drop data items and operators onto the expression, the
precise location of the cursor determines where and how the data item or
operator is added to the expression. As you drag the new element over the
expression, a preview appears, which displays how the expression would
change if you drop the element at the current location.
Alternatively, you can use the Text tab to enter the expression.
There are a large number of operator types available to perform
mathematical functions and evaluate logical processing such as IF clauses.
For more information, see Appendix 5, Operators for Data Expressions, on
page 567.
default, Sum is used for measures and Distinct is used for categories. To
select a new aggregation type, drag and drop an aggregated operator from
the Operators list onto the aggregation type in the expression. See Appendix
5, Operators for Data Expressions, on page 567 for a list of the aggregated
operators that are available.
6 For each aggregation in your expression, select the aggregation context. A
drop-down list beside each aggregation enables you to select one of the
following context values:
379
ByGroup
calculates the aggregation for each subset of the data item that is used in
a visualization. For example, in a bar chart, an aggregated measure with
the ByGroup context calculates a separate aggregated value for each
bar in the chart.
ForAll
calculates the aggregation for the entire data item (after filtering). For
example, in a bar chart, an aggregated measure with the ForAll context
uses the same aggregated value (calculated for the entire data item) for
each bar in the chart.
By using the ForAll and ByGroup contexts together, you can create
measures that compare the local value to the global value. For example, you
might calculate the difference from mean by using an expression such as the
following:
Avg ByGroup(X) - Avg ForAll(X)
needed. For information about the operators that are available, see Appendix
5, Operators for Data Expressions, on page 567.
3
Click OK.
You can duplicate, rename, hide, and delete aggregated measures using the
same steps as any other data item.
TIP You can cut and paste from the Text area between different reports, as
well as between the explorer and the designer, to transfer calculations or to email them to others. For more information, see Editing a Data Expression in
Text Mode on page 561.
Select a report object in the canvas that has one or more data items
assigned.
beside the role that you want to edit. For data roles that allow
multiple data items, the menu items that are available can vary.
If you select a data item in Roles, then the Aggregation (if appropriate),
Add, Remove, and Replace menu items are displayed. You can also rightclick on a data item and the actions specific to that data item are displayed.
List table
Columns
None
Crosstab
n Columns
Measures
Tables
n Rows
Graphs
Bar chart
n Category
n Group
n Measures
n Lattice columns
n Lattice rows
n Data tip values
n Animation
n Category
n Lattice columns
n Measure
n Lattice rows
n Target
Waterfall chart
n Category
n Lattice columns
n Measure
n Lattice rows
n Data tip values
Line chart
n Category
n Group
n Measures
n Lattice columns
n Lattice rows
n Data tip values
n Animation
Pie chart
n Category
n Group
n Measures
n Lattice columns
n Lattice rows
n Data tip values
n Animation
Scatter plot
n X axis
n Color
n Y axis
n Lattice columns
n Lattice rows
n Data tip values
Bubble plot
n Time axis
n Group
n Measure (line)
n X axis
n Group
n Y axis
n Color
n Size
n Lattice columns
n Lattice rows
n Data tip values
n Animation
Treemap
n Tile
n Color
n Size
n Category
n Lattice columns
n Measure (bar)
n Lattice rows
n Measure (bar 2)
n Category
n Lattice columns
n Measure (line)
n Lattice rows
n Measure (line 2)
n Category
n Lattice columns
n Measure (bar)
n Lattice rows
n Measure (line)
n Time axis
n Measure (line)
n Measure (line 2)
381
Schedule chart*
n Task
n Group
n Start
n Label
n Finish
Vector plot*
n X axis
n Color
n Y axis
n Group
n X Origin
n Y Origin
n Lattice columns
n Lattice rows
n X axis
n Group
n Y axis
n Label
n Data tip values
n Lattice columns
n Lattice rows
Needle plot*
n X axis
n Group
n Y axis
Step plot*
n X axis
n Group
n Y axis
n Label
n Data tip values
n Lattice columns
n Lattice rows
Dot plot*
n X axis
n Y axis
n Lattice columns
n Lattice rows
Butterfly chart*
n Category
n Measure (bar)
n Measure (bar 2)
n Time axis
n Close
n High
n Low
None
n Time axis
None
n Bollinger Upper
n Bollinger Lower
n Moving Average
n High
n Low
n Close
n Volume
n Group
None
n Y end
n X end
n Y start
n X start
n Size start
n Size end
Comparative time
series plot*
n Time axis
n Measure (time
series)
n Measure (time
series 2)
Controls
Drop-down list
n Category
None
n Frequency
n Parameter
List
n Category
None
n Frequency
Button bar
n Category
None
n Frequency
n Parameter
Text input
n Category
None
n Frequency
n Parameter
Slider
n Measure/Date
n Parameter
Containers
None
383
Vertical container
None
None
None
None
Geography
n Size
Horizontal container
Stack container
Prompt container
Other
Text
Image
Stored process
Geo bubble map
n Color
n Data tip values
n Animation
Geography
Geography
n Color
n Data tip values
Gauge
Measure
n Target
n Group
n Data tip values
Word cloud
n Word
None
n Size
n Color
385
Lattice columns
creates a lattice of charts with a column for each value of the category
data item that you assign.
Lattice rows
creates a lattice of charts with a row for each value of the category data
item that you assign.
TIP When you add animation to a pie chart, it is recommended that you sort
Select an existing chart, bubble plot, or geo bubble map, or create a new
one.
role.
Note: If you remove the Group data role after assigning animation, the
animation control is disabled.
n For a bar chart or geo bubble map, on the Role tab, assign the other
required roles.
3
Assign a data item with a datetime format to the Animation data role.
Animation Controls
Task
Action
Click
Click
Click
Note: If you select a bubble to track, the selected bubble is highlighted in the
current animation frame.
Select a report object in the canvas that has one or more data items
assigned and that allows a lattice data role.
Click
edit.
beside the Lattice columns or Lattice rows role that you want to
387
The following example shows a bar chart with a lattice column specified for
the data role:
TIP Scroll bars are generated by the graph if you have a lot of data. These
scroll bars work differently than other scroll bars in the designer. They initially
fill the maximum area so that you can see all of the bars in the lattice row or
lattice column. To zoom in and see specific bars, you have to drag the top or
the bottom of the scroll bar to adjust the height of the scrolling bar. Labels are
added as space becomes available.
The following example shows a horizontal bar chart with lattice columns. It has a
scroll bar activated so that you are zoomed in on the bars for the West region.
Select Remove All Data Items. All data items are removed from the
assigned data roles as well as the data-dependent features like filters, ranks,
conditions, and so on. The report object turns gray, and the
status icon
appears in the lower right corner to let you know that the required data roles
are not assigned.
Here is an example of what a bar chart looks like after all the data items have
been removed from their assigned data roles:
389
Note: You can also press the spacebar to sort a single column in a table.
TIP Use the Ctrl key to select and sort multiple columns.
You can also sort categories, rather than measures, by clicking the category
name.
391
the legend data roles (either Color or Group). The same restriction applies
when sorting on the raw values of a data item that has a user-defined format.
n Because user-defined formats have their own sort order, a custom sort works
Select the category data items that you want to sort. Click
to move the
data items to the Sorted Items list. You can also drag and drop data items in
the New Custom Sort window. Use the Ctrl key to select multiple data items.
(Optional) Use the up and down arrows to arrange the data items in the
Sorted Items list.
4 Click OK.
Click OK.
393
After you cancel the query, the progress indicator is replaced by the refresh icon.
To resume a query that you canceled, click
395
44
Working with Display Rules for
Reports
Overview of Display Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Add Report-Level Display Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
Adding Table-Level Display Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
Add Display Rules to a List Table Using an Expression . . . . . . . . . . . . . . . . . . . . . 397
Add Display Rules to a List Table Using a Gauge . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Add Display Rules to a List Table Using Color-Mapped Values . . . . . . . . . . . . . . 402
Adding Display Rules to a Crosstab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
Adding Graph-Level Display Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
Add Display Rules to a Graph Using an Expression . . . . . . . . . . . . . . . . . . . . . . . . 405
Add Display Rules to a Graph Using Color-Mapped Values . . . . . . . . . . . . . . . . . 407
Adding Gauge-Level Display Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409
Add Display Rules to a Gauge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410
Add a Shared Display Rule for Gauges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410
add intervals, or add color-mapped values for the report object that is
currently selected in the canvas. You can use this pane to specify both
report-level or object-level display rules, depending on what you have
selected in the canvas.
n The Shared Rules tab in the left pane enables you to create a new display
rule for a gauge, which is used by other gauges to designate intervals and
colors for ranges. You can edit or delete an existing shared display rule.
These rules are shared across multiple gauges and can be created at any
time.
click
Display rules can accept parameters. For more information, see Chapter 49,
Working with Parameters in Reports, on page 453.
For list tables and graphs, you can create display rules that reference a measure
that is not included in the currently displayed report object. This feature is not
available for crosstabs.
Here are some key points about color-mapped display rules:
n Color-mapped display rules are not allowed if there are multiple overlays.
n Color-mapped values for a report object can be applied only to category data
items.
The following report objects that are imported from SAS Visual Analytics
Explorer (the explorer) or created in SAS Visual Analytics Graph Builder (the
graph builder) do not support display rules:
n heat maps (which are imported from the explorer)
n band plots (which are created in the graph builder)
n step plots (which are created in the graph builder)
Without any report objects or the section selected in the canvas, click the
Display Rules tab in the right pane. Click New. The Add New Display Rule
window is displayed.
other categories that do not have a color will have the one that you just
selected.
In the following example, values and colors have been specified for each
region in a list table. And, a color has been selected for the Other check box.
397
Click OK. The report objects in the report update with the new display rule.
And, the display rule appears on the Display Rules tab in the right pane.
The following table illustrates the report-level display rules that were defined in
the Add New Display Rule window above.
update.
2
In the right pane, click the Display Rules tab. Click New. The Add New
Display Rule window is displayed.
Click Expression. The Add New Display Rule window expands to show the
details for the expression.
On the Expression Details tab, select the Column or any measure value.
5 Select the Operator. You can select =, < >, BetweenInclusive, <, <=, >, >=,
Modify the style, size, and color of the font. There is no default style for list
table display rules. You must specify a style to enable the OK button in the
Add New Display Rule window.
(Optional) On the Alert Options tab, select the Create an alert based on
this rule check box. For more information about alerts, see Working with
Alerts for Report Objects on page 346.
399
Click
beside the Manage subscribers list to add users who you want
notified when the alert condition is met. The Add Recipients window is
displayed.
Select one or more users. Click OK to return to the Add New Display Rule
window.
Note: A users e-mail address must be stored in metadata to be
displayed on the View All tab in the Add Recipients window.
10 Click OK. The table updates with the new display rule. The display rule
11 (Optional) Click
update.
2
In the right pane, click the Display Rules tab. Click New. The Add New
Display Rule window is displayed.
3 Click Gauge. The Add New Display Rule window expands to show the
Select a Gauge type from the drop-down list. Your choices are a bullet, an
icon, a slider, or a thermometer. Icon is the default.
Using the Based on column drop-down list, specify which column the rule
should be based on in the report.
6 Specify where the gauge should appear in the column for the Cell
placement. Your choices are Left of text, Right of text, or Replace text.
7 Define the intervals and colors for the rule:
n Enter the individual values for the intervals and then select a color. You
401
Note: If a value falls outside the bounds of the display rule intervals, no icon
is displayed in the list table
10 (Optional) Click
update.
2
In the right pane, click the Display Rules tab. Click New. The Add New
Display Rule window is displayed.
3 Click Color-mapped Values. The Add New Display Rule window expands to
Select the Column or value to which you want to apply the display rule.
Note: Color-mapped values for a report object can be applied only to
category data items.
7 (Optional) Repeat the steps for entering a value and selecting a color.
8
Using the list, specify where you want to apply the colors.
403
In the following example, values and colors have been specified for products
in a list table.
The display rule appears on the Display Rules tab in the right pane.
11 (Optional) Click
update.
2 In the right pane, click the Display Rules tab. Click New. The Add New
On the Expression Details tab, select the Column or any measure value.
4 Select the Operator. You can select =, < >, BetweenInclusive, <, <=, >, >=,
If your crosstab contains a hierarchy, then you can specify the hierarchy
levels in which the display rule is applied.
a Click Specify Intersections. The Specify Intersections window is
displayed.
Select one or more hierarchy levels, the grand total, or all of the levels.
Click OK to return to the Add New Display Rule window. The intersections
that you selected are displayed above the Edit Intersections button.
Select the row or column in the Applies to drop-down list. For crosstabs, the
Applies to drop-down list displays only the measures that have been added
to the crosstab. There are no row or column options.
405
(Optional) On the Alert Options tab, select the Create an alert based on
this rule check box. For more information about alerts, see Working with
Alerts for Report Objects on page 346.
a
Click
beside the Manage subscribers list to add users who you want
notified when the alert condition is met. The Add Recipients window is
displayed.
Select one or more users. Click OK to return to the Add New Display Rule
window.
Note: A users e-mail address must be stored in metadata to be
displayed on the View All tab in the Add Recipients window.
10 Click OK. The crosstab updates with the new display rule. The display rule
response sign check box on the Properties tab in the right pane.
n You can create an expression-based display rule for a 100% stacked bar
chart, which uses the Grouping style and Grouping scale properties.
However, the display rule cannot be based on a percentage.
To specify a new expression-based display rule for a graph:
1
If it is not already selected, select the graph in the canvas that you want to
update.
In the right pane, click the Display Rules tab. Click New. The Add New
Display Rule window is displayed.
Click Expression. The Add New Display Rule window expands to show the
details for the expression.
On the Expression Details tab, select the Column or any measure value.
5 Select the Operator. You can select =, < >, BetweenInclusive, <, <=, >, >=,
If your graph contains a hierarchy, then you can specify the hierarchy levels
in which the display rule is applied.
a
Select one or more hierarchy levels. Click OK to return to the Add New
Display Rule window. The intersections that you selected are displayed
above the Edit Intersections button.
Note: Background is available only for bar charts, waterfall charts, line
charts, scatter plots, time series plots, and bubble plots. It is also available
for needle plots, which are created in the SAS Visual Analytics Graph Builder
(the graph builder).
9
(Optional) On the Alert Options tab, select the Create an alert based on
this rule check box. For more information about alerts, see Working with
Alerts for Report Objects on page 346.
407
Use the Manage subscribers list to add users who you want notified when
the alert condition is met.
10 Click OK. The graph updates with the new display rule. The display rule
11 (Optional) Click
If it is not already selected, select the graph in the canvas that you want to
update.
2 In the right pane, click the Display Rules tab. Click New. The Add New
Click Color-mapped Values. The Add New Display Rule window expands to
show the details for the color-mapped values.
Select the Column or value to which you want to apply the display rule.
Note: Color-mapped values for a report object can be applied only to
category data items.
7 (Optional) Repeat the steps for entering a value and selecting a color.
8
Using the list, specify where you want to apply the colors.
409
In the following example, values and colors have been specified for products
in a graph.
The display rule appears on the Display Rules tab in the right pane.
11 (Optional) Click
If it is not already selected, select the gauge in the canvas that you want to
update.
Specify (or modify) the display rules for the gauge. You can populate
intervals, edit the display rule, and specify the Type.
To automatically populate the intervals:
a Click
window.
b
Click OK. The gauge updates and the new display rule is displayed on
the Display Rules tab.
To edit the display rule for a gauge, use the fields on the Display Rules tab. You
can update the conditions for the values, the intervals, and the color for the
range. Select a color to open the color palette. To add new intervals to the
display rule, enter a number, and click
411
Enter a Name.
Click
beside the Add an interval field to display the Populate Intervals
window.
4 Click OK. The new shared display rule is added to the Shared Rules tab.
To create a shared display rule for a gauge using the Display Rules tab:
1
Click
on the Display Rules tab. The Shared Rule Name window is
displayed.
Enter a Name.
3 Click OK. The new shared display rule is displayed below the Type field on
the Display Rules tab. The new shared display rule is also added to the
Shared Rules tab.
To edit a shared display rule for a gauge:
1
Select the shared display rule on the Shared Rules tab, and then click
The Edit Display Rule window is displayed.
Update the conditions for the values, the intervals, and the color for the
range. Select a color to open the color palette. To add new intervals to the
413
45
Working with Report Filters
About Report Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
Using Detail Report Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
Use a Basic Report Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
Use an Advanced Report Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
Use a Data Source Filter in a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
Using Post-Aggregate Report Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
About Post-Aggregate Report Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
Create a Post-Aggregate Report Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
Edit a Post-Aggregate Report Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
Delete a Post-Aggregate Report Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
Basic filters
subset the data for individual report objects in your reports by using a
single data item. A basic filter is constrained to use only the data item that
was selected when the basic filter was created. Basic filters can be
created and modified by using the pop-up menu for a report object or by
using the Edit Filter window. For more information, see Use a Basic
Report Filter on page 414.
Advanced filters
subset the data for individual report objects in your reports by using any
number of data items and operators (for example, OR and AND) in the
same expression. Advanced filters can be created and modified by using
the Advanced Filter window. For more information, see Use an Advanced
Report Filter on page 418.
Data source filters
subset the data for the entire report. The data source filters that you
create are applied to every report object in the report that uses that data
source. For more information, see Use a Data Source Filter in a Report
on page 421.
n Post-aggregate Report Filters
all of the selections for the filter will be lost. The same is true if you change a
post-aggregate filter to a detail filter. There is a warning message for both
cases.
n One data item cannot have both a detail data item filter and a post-aggregate
If it is not already selected, select the report object in the canvas that you
want to filter. The report object must have at least one data item assigned.
TIP Clear the Auto-update check box above the report canvas until you
are ready to apply your filter changes.
415
Click
beside the Add Filter button, and select a data item from the list.
Then, click Add Filter. The filter appears on the tab.
TIP Use the arrow to the left of the filter name on the Filters tab to
expand or collapse the filter details when you are working with multiple
filters.
n For a basic filter that uses discrete values, a check box is displayed for
each distinct value that uses the current format applied to the data item.
To the right of each value, a bar indicates the frequency. Select the data
values that you want to filter or clear the selections for the data values
that you do not want to filter. Select All to select all of the values.
Here is an example of a basic filter for discrete values:
n For a filter that uses continuous values, a slider shows you the maximum
values and the minimum values that exist for the data item using the
current data item format. Use the slider to select a range of target values.
Here is an example of a basic filter for continuous values:
(Optional) If your data contains missing values, and you want to exclude
those missing values from your report, then clear the Include missing
values check box.
Click
(to the left of the delete icon) for options. The available options
depend on whether you are filtering characters, dates, or numerics. You can
sort the values or frequencies in the filter.
Option
Availability
Edit Filter
Delete Filter
Filter Detail
Values
Filter Aggregated
Values
Filter using
continuous
values
Filter using
discrete values
Include Missing
Values
Exclude Missing
Values
Select All
Clear All
Invert Selection
Sort by Values
Sort by
Frequency
Show Selected at
Top
(Optional) If you cleared the Auto-update check box above the report
canvas while you worked on your filter, then select it when you are ready to
apply your filter changes.
417
If it is not already selected, select the report object in the canvas that you
want to filter. The report object must have at least one data item assigned.
Click
beside the filter name. Then, select Edit Filter. The Edit Filter
window is displayed.
right pane.
For information, see Appendix 6, Conditions for Filters, on page 589.
Note: The AND and OR operators can accept more than two conditions. To
add a condition to the operator, drag and drop a condition onto the operator
name in the right pane. For example, to add a third condition to an AND
operator, drag and drop the new condition onto AND in the expression.
designer, but you cannot create advanced global filters in the designer.
want to filter. The report object must have at least one data item assigned.
TIP Clear the Auto-update check box above the report canvas until you
are ready to apply your filter changes.
2 In the right pane, click the Filters tab.
3 Click
419
Specify a Filter name. The filter name identifies the advanced filter on the
Filters tab.
6 Create a condition for the filter. You can use the Visual tab, Text tab, or a
From the Data Items list, select the data item on which the condition is
based.
From the Column Templates list, select a condition. For information, see
Appendix 6, Conditions for Filters, on page 589.
d For any required parameters, select the parameter, and enter a value, or
(Optional) Add operators to the expression. You can use the Visual tab, Text
tab, or a combination of both tabs.
To add operators using the Visual tab:
a
From the Operators list, select an operator to join the conditions in your
expression. For more information, see Appendix 6, Conditions for
Filters, on page 589.
From the Column Templates list, select another condition. Then, drag
and drop the additional condition onto the expression. Complete any
required parameters.
TIP Right-click the AND or OR operator in the expression, and then
select Add New Condition.
(Optional) If you cleared the Auto-update check box above the report
canvas while you worked on your filter, then select it when you are ready to
apply your filter changes.
If it is not already selected, select the report object in the canvas that you
want to filter. The report object must have at least one data item assigned.
3 Click
beside the advanced filter name. Then, select Edit Filter. The Edit
Advanced Filter window is displayed.
4 Edit or add a condition for the filter. You can use the Visual tab, Text tab, or
From the Data Items list, select the data item on which the condition is
based.
For any required parameters, select the parameter, and enter a value, or
right-click the parameter field, and select Replace with to select a data
item.
6 (Optional) Add an operator to the expression. You can use the Visual tab,
421
On the Data tab, click , and then select New Data Source Filter. The New
Data Source Filter window is displayed.
Add a condition for the filter. You can use the Visual tab, Text tab, or a
combination of both tabs.
To add conditions using the Visual tab:
a
From the Data Items list, select the data item on which the condition is
based.
d For any required parameters, select the parameter, and enter a value, or
right-click the parameter field, and select Replace with to select a data
item.
3
(Optional) Add an operator to the expression. You can use the Visual tab,
Text tab, or a combination of both tabs.
To add an operator using the Visual tab:
a From the Operators list, select an operator to join the conditions in your
On the Data tab, click , and then select Edit Data Source Filter. The Edit
Data Source Filter window is displayed.
Add or modify the condition for the filter. You can use the Visual tab, Text
tab, or a combination of both tabs.
To edit conditions using the Visual tab:
a
From the Data Items list, select the data item on which the condition is
based.
For any required parameters, select the parameter, and enter a value, or
right-click the parameter field, and select Replace with to select a data
item.
Edit the operator in the expression. You can use the Visual tab, Text tab, or
a combination of both tabs.
423
post-aggregate filters.
want to filter. The report object must have at least one data item assigned.
TIP Clear the Auto-update check box above the report canvas until you
are ready to apply your filter changes.
2
3 Click
beside the Add Filter button, and select a measure data item from
the list. Then, click Add Filter. The filter appears on the Filters tab.
Select the data values for the post-aggregate filter. If the data item allows
aggregate values, the Filter aggregated values check box is displayed. A
slider shows you the maximum and minimum data values that exist for the
data item using the current data item format. Use the slider to select a range
of target values.
Note: The post-aggregate filter tracks the aggregation associated with the
data item. If you change the Aggregation using the data item table on the
Data tab, then the filter name on the Filter tab reflects that change. For
example, if you create a post-aggregate filter for a data item called Sales, it is
initially displayed on the Filters tab as Sales(Sum). In the data item table,
you change the aggregation to Average. On the Filters tab, the filter name is
displayed as Sales(Average). The post-aggregate filter attempts to keep
the same range of data values that you originally selected for the
aggregation.
TIP Use the arrow to the left of the filter name on the Filters tab to
expand or collapse the filter details when you are working with multiple
filters.
5
(Optional) Click
beside the filter name to change the operator. Select
Condition Type, and then select an operator.
(Optional) Change the lower and upper values for the post-aggregate filter by
clicking the value, and then entering a new value.
7 (Optional) If your data contains missing values, and you want to exclude
those missing values from your report, then clear the Include missing
values check box.
8 (Optional) If you cleared the Auto-update check box above the report
canvas while you worked on your filter, then select it when you are ready to
apply your filter changes.
If it is not already selected, select the report object in the canvas that you
want to filter. The report object must have at least one data item assigned.
Click
beside the filter name. Then, select Edit Filter. The Edit Filter
window is displayed.
425
right pane.
For information, see Appendix 6, Conditions for Filters, on page 589.
Note: The AND and OR Boolean operators can accept more than two
conditions. To add a condition to the operator, drag and drop a condition onto
the operator name in the right pane. For example, to add a third condition to
an AND operator, drag and drop the condition onto AND in the expression.
TIP Right-click the AND or OR operator in the expression, and then select
Add New Condition.
5 Click OK to apply the post-aggregate filter.
427
46
Working with Interactions
Overview of Interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
Creating an Interaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create a Filter Interaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Create a Data Brushing Interaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Map Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
428
428
433
438
Overview of Interactions
Interactions are used to direct a report viewers attention to specific results in a
report. Interactions allow data to be subset to reduce the amount of data, and
enables users to understand it within a particular context.
The interactions view in SAS Visual Analytics Designer (the designer) enables
report designers to specify which interactions they would like to add to tables,
graphs, gauges, and controls in a report.
There are these types of interactions:
filter
is used to restrict the data that is returned from a query to a data source.
Filters are simply a set of rules or conditions that you specify to subset the
data that is displayed in a table or graph. The goal is to display only the data
that you need to see to perform your analysis.
brush
is short for data brushing, which enables you to show the same data selected
simultaneously in two or more tables, graphs, or controls. Brushing highlights
a percentage that reflects the number of shared observations in the data set.
Brushing does not highlight a percentage that corresponds to the aggregated
value. The brushed data has the same appearance in each object, which
makes the data easily apparent to report viewers.
Tables, graphs, and gauges can be the source of an interaction, with the
exception of time series plots. Report objects that use detail data cannot be the
source of an interaction. Controls that are used on the canvas can also be the
source of an interaction. Controls that are used as section prompts are treated
as automatic filters and are not displayed in the interactions view.
The Interactions tab in the right pane enables you to create interactions and
links.
Creating an Interaction
Create a Filter Interaction
You can create interactions using the interactions view or the Interactions tab in
the right pane.
The following objects that are imported from the explorer can be the source of a
filter interaction:
n Box plots
n Heat maps with a relational category measure
n Forecast plots
n Geo maps
Imported correlation matrices, histograms, scatter plots with fit lines, heat maps
without a selectable relational category measure, and box plots without a
selectable relational category measure cannot be the source of an interaction.
Hierarchy data items are not supported for interactions.
Here are some key points about creating filter interactions:
n You cannot create interactions from list tables, bubble plots, and scatter plots
that use detail data. However, a list table that uses detail data can be the
target of an interaction.
n Scatter plots cannot be the source of an interaction.
n Bubble plots can be the source of an interaction only if they have a
fixed range property set will not do anything when it is filtered because its
data is fixed.
n Prompt containers enable you to delay the execution of interactions to report
Add the report objects that you want to use to the canvas. For example, you
might have a bar chart, a line chart, and a list table.
3 In the interactions view, draw a connection between the source and target
is displayed
Creating an Interaction
429
Right-click
Select data in the source report object to filter data in the target report object (or
objects). In the following example, the promotional product line was selected in
Creating an Interaction
431
the bar chart. Simultaneously, the line chart and the list table show the same
filter.
Figure 46.1
A Filtering Example with a Bar Chart, a Line Chart, and a List Table
Clicking on another selection applies the filter based on your new selection. For
example, in the report above, you can click on the game product line to change
the filter. An icon is added to the report object that is filtered.
Here is the line chart that was used in the previous example. The incoming filter
icon appears above the report object when it is selected in the canvas. Click
to get details about the filter that has been applied. Click Details to find out more
TIP To clear the selection and reset the filter (or filters), press Ctrl+click while
viewing the original report object.
Select a report object in the canvas. For example, you might have a bar
chart.
Click New, and then select Interaction. The Edit Interaction window is
displayed.
Creating an Interaction
4
433
In the Edit Interaction window, select the report object that you want to use
as the source of a filter or brush interaction. For example, if your report has a
list table, and you want it to filter a line chart, the first line should read List
Table 1 filters Line Chart 1.
The Edit Interaction window disables options for filter or brush interactions if
they are not possible.
When you are finished working with interactions, click OK. The new
interaction is displayed in the Interactions tab.
Add the report objects that you want to use to the canvas. For example, you
might have a bar chart, a line chart, and a list table.
is displayed
Note: The source and target of a data brushing interaction should be based
on the same data source. If you have multiple data sources, you are
prompted to map the data sources to create the interaction. For more
information, see Map Data Sources on page 438.
5 Right-click
changes to
A Data Brushing Example with a Bar Chart, a Line Chart, and a List Table
Creating an Interaction
435
Here is an example of a report with three list controls that have brush
interactions:
Figure 46.3 Example: Three List Controls in a Report
The first list contains three countries listed as the Origin. The second list
contains six types of vehicles. The third list contains 38 car manufacturing
companies. There is a brush interaction between the first list and the second list.
There is a second brush interaction between the second list and the third list.
In step 1, the user has selected Europe as the country of Origin in the first list.
Notice the changes in the second list. Hybrid and Truck are grayed out, and
their frequency values have both changed to 0. In the third list, all of the car
Creating an Interaction
437
manufacturers that are not located in Europe are grayed out, and their frequency
values have all changed to 0.
Figure 46.5
In step 2, the user has selected Porsche as the car manufacturing company in
the third list. Notice the changes in the second list. Hybrid, Sedan, Truck, and
Wagon are grayed out, and their frequency values have all changed to 0.
Figure 46.6
uses one data source and another report object that uses a different data
source.
n When you try to create a link between a report object that uses one data
source. If you need to map a column more than once, then the column needs
to be duplicated in the data source.
n Mapped columns must share the same format for filters to work. For
example, if the format of the source column is MMDDYYYY and the format of
the target column is DDMMYYYY, then a filter will not work.
To map data sources using the Map Data Sources window:
1
Use the Source drop-down list to select a column from the first data source.
Use the Target drop-down list to select a corresponding column from the
second data source.
Here is an example of the Map Data Sources window for an interaction
between two list tables that have different data sources:
Creating an Interaction
439
TIP If there are multiple data sources, and you do not want to link to all of
them, you can select the Enable data source mapping check box. For
more information, see Map Data Sources on page 438.
For section links, you are not required to map the data sources. If you
choose not to map the data sources, then the filters are not carried over. For
more information, see Create a Link to One or More Sections in a Report
on page 443.
Here is an example of the Create Section Link window with the map data
sources information.
The lower half of the window shows you how the mappings are applied to the
objects shown in the Source and Target relationship. Depending on the
interaction or link, you might need to map additional Source and Target
objects.
Click OK.
Delete an Interaction
You can delete an interaction using the interactions view or the Interactions tab
in the right pane.
To delete either a filter or data brushing interaction using the interactions view:
1
2 Click Interactions View to switch to the interactions view. You can also
select View Show Interactions.
3 Right-click
441
47
Working with Report Links
Overview of Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
Creating Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
Create a Link to Another Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
Create a Link to One or More Sections in a Report . . . . . . . . . . . . . . . . . . . . . . . . . 443
Create a Link to One or More Info Windows in a Report . . . . . . . . . . . . . . . . . . . . 443
Create a Link to an External URL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
Create a Link from a Text Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
Edit a Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
Delete a Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
Example: How Linking and Interactions Work Together . . . . . . . . . . . . . . . . . . . . 446
Overview of Linking
Report links enable single-step access to a report or web page that is related to
a report that you are currently viewing. For example, you might be looking at a
bar chart that has sales information for each geographical region of your
company. If you click the bar for the Northeast region, then a report link
associated with the graph could take you to a different report that provides
information about employees in each region. You can click
in the top left
corner of a destination report to return to the previous report.
Using SAS Visual Analytics Designer (the designer), you can add a link from a
report object to another report, to a specific section or an info window in the
current report, or to an external URL. If a destination report contains multiple
sections, then you are able (when defining the link) to choose the initial section
of the destination report that you want to open first.
When a report has an info window, you can provide additional information to a
user who is viewing the report. For example, you might want a list table to
provide additional information for a bar chart, or you might want to provide
additional text about what is displayed in the data for a particular report object. In
the SAS Visual Analytics Viewer (the viewer), a user double-clicks the data (for
example, a bar, a bubble, a pie slice, a table row, and so on) in a report object
that has an info window, and then the additional information is displayed in a
new window in the viewer. For more information, see Overview of Report
Sections and Info Windows on page 457.
Creating Links
Create a Link to Another Report
Note: The following steps do not apply to text objects. For more information,
see Create a Link from a Text Object on page 445.
To add a link from a report object or image to another report:
1
Click New, and then select Report Link. The Choose an Item window is
displayed.
Select a target report, and then click OK. The Create Report Link window is
displayed.
Verify the name of the target report. If you want to select a different target
report, click Browse.
Note: The source and target of report link should be based on the same
data source. If you have multiple data sources, you are prompted to map the
data sources to create the report link. For more information, see Map Data
Sources on page 438.
If the target report contains more than one section, then select the report
section that you want to open first.
Click OK. The new report link is displayed on the Interactions tab in the right
pane.
Double-click on an item in the report object (for example, a bar, a row in a table,
a pie slice, and so on) to activate the report link. You are prompted to save
Creating Links
443
changes to the report object before you can follow the link to the target report. To
return to the source report object, use the button above the canvas.
Here is an example of the button that enables you to return to the source report
object:
Click New, and then select Section Link. The Create Section Link window is
displayed.
Select All to link to all of the sections in the report or select a specific section
(or sections) in the report.
Note: The source and target of section link should be based on the same
data source. If you have multiple data sources, you are prompted to map the
data sources to create the section link. For more information, see Map Data
Sources on page 438.
Click OK. The new section link is displayed on the Interactions tab in the
right pane. If you selected multiple sections, those links are displayed on the
Interactions tab.
Alternatively, you can create a section link using the interactions view.
Note: If you use a section link to navigate to another section, and then you
change the value of a report prompt, the section link filter is removed.
Click New, and then select Info Window Link. The Create Info Window Link
window is displayed.
Select All to link to all of the info windows in the report, or select a specific
info window in the report.
Note: The source and target of the info window link should be based on the
same data source. If you have multiple data sources, you are prompted to
map the data sources to create the info window link. For more information,
see Map Data Sources on page 438.
4 Click OK. The new info window link is displayed on the Interactions tab in
the right pane. If you selected multiple info windows to link to, those links are
displayed on the Interactions tab.
application server. For example, you can link to a stored process, which means
that you would not need to specify http://server-name:port because you are
already logged on to that server.
TIP Click the Link to Stored Process button in the Create External Link
window to link to a stored process without having to enter the required link
information.
Note: UTF-8 is supported for external URL links.
Note: The following steps do not apply to text objects. For more information,
see Create a Link from a Text Object on page 445.
To add a link to an external URL:
1 Click the Interactions tab.
2
Click New, and then select External Link. The Create External Link window
is displayed.
Select a stored process, and then click Open. The Label field shows the
name of the stored process, and the URL field shows the link information for
the stored process.
Note: If the stored process accepts prompts, they are automatically added to
the Parameters.
Creating Links
5
445
(Optional) Click
to specify additional parameters for the link. You can
specify the Format value option, a Source, and a Target. The Format value
option applies only to dates and numbers. You can add multiple parameters.
For example, you might have a report for your companys product lines.
When a user views the report, you want them to be able to double-click a
product line in the line chart, and then link to a Google search for that product
line. In the Create External Link window for this example, you would enter
http://www.google.com/search as the URL, select ProductLine as the
Source, and then enter q as the Target.
Press Enter or Tab to activate the OK button. Click OK. The new external link
is displayed on the Interactions tab in the right pane.
Double-click inside a text object on the canvas and enter the text.
TIP To change the default color of the hyperlinked text, you need to select
a leading blank space and a trailing blank space around the hyperlinked
text.
3 Select the link Type. The options are:
External URL
The link target is an external URL. For example, you might want to link
some text to your companys web page or Twitter feed. The link can be
relative to the current web application server. Enter a URL. The http://
part of the link is provided.
Report Link
The link target is another report. Enter the name of the Target report or
browse to find it. If the target report has multiple sections, you can select
which report section opens first.
Click OK. The text that you selected is a link in the text object.
Edit a Link
To edit a report link or an external link:
1 Click
next to the link on the Interactions tab. For a report link, the Edit
Report Link window is displayed. For an external link, the Edit External Link
window is displayed.
Delete a Link
You can delete a section, report, or external link using the Interactions tab.
next to the link that you want to delete. Click Delete in the confirmation
Click
message that is displayed.
To delete a link from a text object, select the linked text, and then click
Select Delete Link.
447
When you double-click the CANADA bar in the first report, the second report
(which is the target of the report link) is displayed. The filter interaction for
country in the first report is automatically passed to the second report when you
link to it. Here is an example of the second report:
For information about how links appear in the viewer, see View Links in
Reports on page 527.
449
48
Ranking Values in Reports
Overview of Ranking in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
Add a New Rank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
Delete a Rank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
Select a data item. You can select any category or geography data item,
regardless of whether it is assigned to the current report object.
For list tables only, you can select All visible categories. This rank ranks
across the intersection. The top or bottom combination of the visible
categories is displayed. For example, you select the region and product data
items. You rank on the top 10 by profit. The top 10 region and product
combinations are displayed. In this case, the column is no longer considered
a single column, it is considered the crossing of the columns.
Note: If a list table has a rank for All visible categories, then that is the
only rank that it can have.
The Detail rank option is available for list tables, bubble plots, and scatter
plots that show detail data. If the report object has a detail rank, then it is the
only rank that it can have. Otherwise, report objects can have multiple ranks.
Select the type of rank from the drop-down list. These types are available:
n Top Count specifies that the rank selects the greatest values.
n Bottom Count specifies that the rank selects the least values.
n Top Percent specifies that the rank selects the greatest percentages.
n Bottom Percent specifies that the rank selects the least percentages.
If you selected Top Count or Bottom Count for the rank, then specify one of
the following:
n Select Count, and then select a number for the rank. For example, if you
the drop-down list to select the one that you want. For more information,
see Chapter 49, Working with Parameters in Reports, on page 453.
6 If you selected Top Percent or Bottom Percent for the rank, then specify
field.
n Select a Parameter. If there is more than one parameter available, use
the drop-down list to select the one that you want. For more information,
see Chapter 49, Working with Parameters in Reports, on page 453.
451
From the By drop-down list, select the measure that is used to create the
rank. You can select any measure.
9 (Optional) For category-specific ranks, you can select All Other to show the
measurements for the categories that did not qualify as a top or bottom
value. This option is not available if the report object is showing only detail
values.
Here are some key points about the All Other option:
n The option is available when you are ranking visible categories in certain
suppose that you have Region and Product categories assigned to a list
table. Then, you apply a Region rank with the All Other option set, so the
All Other value might appear as a Region value, but not as a Product
value.
If you want to combine category values that are excluded by rank into All
Other, then you need to use the All Other property. For more
information, see Use the Combine Excluded Rows (or Cells) into All
Other Properties on page 324.
n The option is not available if the rank is on a prompt control, geo bubble
percent of total show values with respect to all of the data, rather than
data just relative to data qualifying under the rank. The data that does not
fit into the top or bottom of the rank is aggregated in the All Other
category.
n You can use this option with a ranking to reduce the number of slices in a
pie chart. However, this means the Other slice must be removed from
the pie chart.
n If this option is selected, then any All Other value that appears in a table
or graph cannot be selected. This means that the All Other value cannot
be the source value for an interaction.
n If you do not select All Other, then the rank shows only the data as
filtered by the category values that qualify as the top or bottom value.
By default, your new rank is applied automatically to the report object.
You can add more than one rank to a report object, as long as the first rank is
not a Detail rank, or an All visible categories rank.
Here is the same pie chart after a rank of the top five product lines is added. The
All Other option was selected, so the Other slice is not displayed.
Figure 48.2
Pie Chart with Profits for the Top Five Product Lines Displayed
Delete a Rank
To delete a rank, click
You can also right-click on the report object, and select Delete Rank, as long as
there is only one rank for the report object.
453
49
Working with Parameters in Reports
Overview of Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
Where Parameters Can Be Used in the Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
Create a New Parameter for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
Edit a Parameter for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
Delete a Parameter for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
Example: Using Parameters in a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
Overview of Parameters
A parameter is a variable whose value can be changed and that can be
referenced by other report objects. The SAS Visual Analytics Designer (the
designer) supports parameters for controls in reports. If a control has an
associated parameter, then when the value of the control changes, the
parameter is assigned that changed value. When the value of the parameter
changes, any report objects that reference the parameter detect the change
accordingly.
Whenever a parameter value is updated, then all display rules, ranks,
calculations, and filters that use that parameter are updated. Any report object in
the report that uses the display rule, rank, calculation, or filter is updated
accordingly. For an example of how parameters can be used in a complex
report, see Example: Using Parameters in a Report on page 456.
parameter.
n The button bar control or drop-down list control accepts a character
parameter.
Click , and then select New Parameter. The Create Parameter window is
displayed.
Select the Type for the parameter. You can select Numeric or Character.
455
For numeric parameters, specify a Current value. You must also specify the
following options:
n Minimum value (which is required).
n Maximum value (which is required).
n Format. Click Select to open the Select Format window, where you can
Right-click the parameter on the Data tab, and select Edit Parameter. The
Edit Parameter window is displayed.
Right-click the parameter on the Data tab, and select Delete Parameter.
removed from the list of data items on the Data tab and from any
calculations, filters, display rules, or ranks that were using it.
The report has two sliders, a list table, and a bar chart. One slider lets you adjust
the number of miles that you drive each day. The other slider lets you adjust the
price per gallon of gasoline. The results of the selections in the sliders are
calculated, and the values are used in a calculated data item that is displayed in
the list table. For example, you can see what happens to the list table when you
change the parameter for Miles driven per day from 25 to 100.
The values of the calculated data item are also used in the bar chart. The bar
chart has a display rule, (MPG (City) > Miles per day), so that vehicles that have
a fuel economy value that is better than the number of miles that you drive per
day are highlighted.
457
50
Maintaining Multi-Section Reports
Overview of Report Sections and Info Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
Add a Section to a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
Add an Info Window to a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
Reorder Report Sections or Info Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
Rename a Report Section or an Info Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
Duplicate a Report Section or an Info Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
Move a Report Object to Another Section or Info Window . . . . . . . . . . . . . . . . . . 460
Delete a Report Section or an Info Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
You can use the Properties tab for the report to add a new section. In the
Sections area, click
tabs).
. The new tab appears to the right of the existing tab (or
459
or
Right-click the section tab or the info window tab that you want to duplicate.
2 Select Duplicate. All of the report objects and the data in the original section
or info window are copied to the duplicate section or info window. The
duplicate appears on a new tab. For example, if the original sections name is
Marketing Reports, then the duplicate section is named Marketing
Reports (1).
3
Rename the duplicated section or info window using the pop-up menu or the
Properties tab.
Note: You cannot move a section prompt from a section to an info window.
If you move an object to a section with precision layout, then you must manually
move the object to its proper location. All objects are put in the top left corner by
default.
TIP If you move a section prompt from one section to another section in a
report and there are multiple data sources, you must edit the data source
mapping for an interaction to work. Right-click the control, and select Edit
Data Source Mapping. For more information, see Map Data Sources on
page 438.
461
51
Sharing Reports with Other Users
Overview of Sharing Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
E-mail a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462
Printing Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General Considerations for Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Considerations for Printing a Stored Process or Stored Process Report . . . . .
Print a Report, a Report Section, or a Report Object . . . . . . . . . . . . . . . . . . . . . . .
463
463
464
464
E-mail a Report
You can e-mail a link to a report to someone. If the recipient opens the e-mail
message on a PC or Mac with a Flash-enabled viewer, and then clicks the email link, then the report is displayed in the viewer. If the recipient opens the email message on a mobile device, and then clicks the e-mail link, then the report
is displayed using the SAS Mobile BI app if the user has it installed.
TIP Use the Order the actions associated with a content type preference
for the SAS Visual Analytics home page to specify which application opens
the report when you click on an e-mail link.
automatically adds your e-mail address to the From field. The URL for the
report is automatically generated, and a preview appears in the e-mail
message.
Printing Reports
463
window.
n A users e-mail address must be stored in metadata to be displayed on
4 (Optional) Select Attach report PDF. This option is useful if your report
contains filters or interactions that you typically do not save with the report.
This PDF is different from a PDF that is attached when a report is distributed,
which contains only filters or interactions that have been saved.
5 (Optional) Enter a comment for the report.
6 Click Send.
Printing Reports
You can create a PDF for a report, a report section, or a report object. The PDF
can then be printed.
not included in the PDF. However, any filters that are applied to report objects
in the prompt container are displayed in the appendix.
n Vertical containers print only the currently selected report object. Horizontal
and stack containers might print more than the currently selected report
object if there is enough space.
n If a list table or a crosstab has scroll bars, then some of the scrolled content
might not be printed. However, more columns or rows might be printed than
are visible in the designer. The print feature attempts to fill the space
available on the page in the PDF.
n A list table or crosstab that is printed from the designer might show more
rows than when the same list table or crosstab is printed after the report has
been distributed. This happens because the state of the report in the
designer is taken into consideration when it is printed. The print feature
attempts to match what the user sees in the designer. When you print a
used to create a report do not match the fonts that are available on the
server that generates the PDF.
stored process that is referenced by the stored process report, set the
_ODSDEST variable to PDF. Or, define a stored process parameter for the
_ODSDEST variable and configure it with a value of PDF for the stored
process report. It is recommended that you also set the _ODSOPTIONS
variable to notoc to save processing time and to reduce the size of the PDF
produced by the stored process and the final PDF. For more information
about ODS options, see Using the %STPBEGIN and %STPEND Macros in
SAS Stored Processes: Developer's Guide.
2 Select the Paper size, Orientation, and Margins. Your selections are saved
Printing Reports
465
n If you select Include a cover page check box, then the cover page
provides the name of the report (or the label if the report has not been
saved), the date of the print request, the user name, and the number of
pages. Click Add a description to enter additional text for the cover page
in the Cover Page Description Text window.
n If you clear the selection for the Include a cover page check box, any
additional text that you added for the cover page is discarded.
n The Show empty rows and columns in tables option is for both list
To print a report object, right-click on the report object in the canvas, and then
select Print <report-object-name> to PDF. A stored process does not have the
same pop-up menu selection.
The following table lists the icons that can appear in the appendix:
Icon
Description
Indicates that a report object contains a filter.
Indicates that a report object contains a warning.
Export an Image
You can export an image for any list table, crosstab, graph, or gauge in a report.
This is useful if you want to include the image of a report object in a
presentation, such as in Microsoft PowerPoint. Images are saved as PNG files.
Here are key points about exporting an image:
n An exported image does not show ranks or filters that are associated with the
report object.
n The image defaults to the size of the report object in the report.
n The following characters in an image name are converted to an underscore
Right-click the report object, and select Export Image. The Save Image
window is displayed.
If the list table that you want to export is not already selected, select it.
467
window is displayed.
Selected columns, select the check box (or check boxes) to the left of the
column (or columns) that you want to export. At least one column is required.
If you do not select a column, then a message is displayed, and the Export or
Save As window cannot be closed.
5
If you select Export to, then the only option is Excel 2007 Workbook
(*.xlsx) to create a Microsoft Excel spreadsheet.
8 Click OK.
9 When you are prompted, choose either to open the file or to save it.
If the crosstab that you want to export is not already selected, select it.
Selected columns, select the check box (or check boxes) to the left of the
column (or columns) that you want to export. At least one column is required.
If you do not select a column, then a message is displayed, and the Export or
Save As window cannot be closed.
5
If you select Export to, then the only option is Excel 2007 Workbook
(*.xlsx) to create a Microsoft Excel spreadsheet.
8 Click OK.
9 When you are prompted, choose either to open the file or to save it.
window is displayed.
469
Selected columns, select the check box (or check boxes) to the left of the
column (or columns) that you want to export. At least one column is required.
If you do not select a column, then a message is displayed, and the Export or
Save As window cannot be closed.
5
(Optional) Choose whether detail data is exported for the graph. If you select
Detailed data, then you can select the columns that you want to export.
Note: The Detailed data option is not available for imported report objects,
custom graph objects that have multiple data definitions, or for any graphs in
which detail data is not allowed.
If you select Export to, then the only option is Excel 2007 Workbook
(*.xlsx) to create a Microsoft Excel spreadsheet.
9 Click OK.
10 When you are prompted, choose either to open the file or to save it.
page, the explorer, or the viewer, then those comments cannot be displayed
or edited in the designer.
n If you have the Add or View Comments capability, then you can add or view
comments. You can edit your own comments and respond to other
comments.
Distributing Reports
Overview of Distributing Reports
If you have the Distribute Reports capability, then you can distribute reports
using the designer. Distributing reports automates the process of delivering
updated content to report users. You can distribute reports once or at recurring
intervals, such as daily, multiple times daily, weekly, or monthly. In addition,
distributing reports gives you the ability to create a time event to generate
reports during non-peak hours.
CAUTION! Use only the designer to schedule and distribute SAS Visual
Analytics reports. If you try to use the Schedule Manager plug-in to SAS
Management Console and set an option that is not available in the designer, the
report job might be incompatible with the designer.
When you distribute a report, you are considered the report job owner.
Distributing reports requires two steps. First, you define a report job, which
contains a list of one or more reports, a list of one or more recipients, and an
optional e-mail message. Both the report job owner and the recipient must be
registered and have e-mail addresses stored in metadata because the report
generates using the recipients data access rights. Second, you create a
distribution, which contains a report job and a time event. The time event
specifies when and how often the distribution occurs. When a distribution runs, a
history record is created. After you create a distribution, you can schedule,
unschedule, run, delete, and show the history for your distribution.
Recipients receive an e-mail message with one or more reports attached as
PDF files. The e-mail message contains a link to the report.
If you distribute a multi-section report that uses multiple data sources, and one
of the data sources is not accessible to a recipient, then a warning message
about the non-accessible data source is appended to the PDF.
TIP If you distribute reports to multiple locales or if you receive distributed
reports, then you can specify your User locale in the global SAS preferences.
For more information about setting global SAS preferences, see Specify
Global Preferences on page 618.
Distributing Reports
471
2 Click New Report Job. The New Report Job window is displayed.
Enter a Name. The report job name cannot contain blanks, white space, or
these characters: ! " $ % & ' ( ) * . + , / : ; < = > ? @ [ \ ]
^ ` | ~ -
beside the Reports field. Select one or more reports from the list
that is displayed. When you select a report, it is added to the Reports list.
TIP If the report that you want is not displayed in the pop-up list, click
Select another report, and use the Open window to find the report that
you want to distribute.
n Click
have your name appear in the e-mail message. Because the mail service
cannot display the report job owners name in the From field of the e-mail
message, this is the only way to inform recipients who created the report
job.
6
Use the Notifications tab to specify that you want to receive the report job
owner notifications. You can select Send e-mail notification when the
report job starts, Send e-mail notification when the report job ends, or
both.
Note: If there is a warning (for example, when a recipient or a report cannot
be found), then you automatically receive a notification with the details when
the report job ends.
7 Click OK. The report job is displayed in the table in the Distribute Reports
window.
Select a report job, and click Schedule. The Schedule window is displayed.
Click New to create a time event. The Specify Schedule Details window is
displayed.
Specify whether the distribution should happen One time only or More than
once. By default, a new time event is defined to occur only once at a time
that is approximately five minutes later than the time that you opened the
Specify Schedule Details window.
If you select One time only, then select an Hour and a Minute for the
distribution.
If you select More than once, then specify the details about when the
distribution should occur. The specific fields that are available depend on the
recurrence interval (Hourly, Daily, Weekly, Monthly, or Yearly) that you
select.
n If you select Hourly, then the time is calculated from hour zero on a 24-
hour clock. For example, if you leave Interval hour set to 1, then the data
query runs at hour zero (midnight) and runs each hour.
Select an Interval hour, and then select a Starting hour and Minute.
The Duration in minutes field is used to specify the maximum number of
minutes after the specified time has been reached that the dependency is
kept in an open state. This value is used when a report job has multiple
dependencies. It specifies a window of time in which distribution remains
open so that other time events can be met. If the report job does not have
multiple dependencies, then it is recommended to use the default
duration of 1 minute.
Distributing Reports
473
If needed, specify the range of recurrence (the start date and end date for
distribution). The default is to start at the current date and to not have an
end date.
n If you select Daily, Weekly, Monthly, or Yearly for More than once, then
The following options are specific to the recurrence interval that you select:
Recurrence Interval
Options
Daily
Weekly
Monthly
Yearly
Use the Hours and Minutes check boxes to select the times. The
Minutes area contains groupings of 10-minute intervals. Selecting a
check box for a minute grouping selects all of the minutes in that
grouping. Your selections are displayed in the Selected start times
area.
If needed, specify the range of recurrence (the start date and end date
for distribution). The default is to start at the current date and to not
have an end date.
(Optional) Click Run Now to have the distribution run immediately. Click
Close in the information window.
Click Close.
To see the history record for a selected distribution that has been run, click
Show History. The Show History window is displayed. You can see the Start
Time, Finish Time, State, and Status Message. Click Close to return to the
Distribute Reports window.
Localize Reports
The designer enables you to localize (or translate) the labels, tooltips, and other
descriptive text that is part of your report. You can export localizable text from
your report so that you can apply one or more translations. You can translate
your report into a new language without removing the text from the designer.
There is no limit to the number of translations that you can add to the report.
To localize a report:
1
Select File Save As to save a copy of the report. This enables you to have
a backup copy of your report.
Localize Reports
2
475
The first line in the Localize Report Text window contains the locale identifier,
which is specified by the ISO 693 two-letter language code. If a language is
created for a specific country or region, the language code can be followed
by an underscore ( _ ) and the ISO 693 two-letter country code. In the
preceding screen capture, the en_US country code is displayed.
3 Localize the original text strings. You have the following options:
n Save the text in the Localize Report Text window to a file, modify the file,
and then open the modified file in the Localize Report Text window.
n Modify the text in the Localize Report Text window.
n Copy and paste the text from the Localize Report Text window into an
editor.
CAUTION! All report text is encoded as Unicode characters using the
UTF-8 format. If you export the localizable text to an editor, make sure that the
editor is capable of saving the data as UTF-8.
4 Click Apply to import the translations.
477
Part 7
Creating Custom Graph Objects
Chapter 52
Creating and Using Custom Graph Objects . . . . . . . . . . . . . . . . . . . . . . . . . 479
Chapter 53
Modifying Custom Graph Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
Chapter 54
Graph Builder Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
507
478
479
52
Creating and Using Custom Graph
Objects
About the Graph Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
About the Graph Template Gallery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480
Build a Custom Graph Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481
Working with Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
About Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
Create Optional Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
Types of Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
Adding a Graph Element to an Existing Graph Object . . . . . . . . . . . . . . . . . . . . . . 484
Add an Overlay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484
Add a Graph Element to a New Row or Column . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
Incompatible Graph Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
Creating a Data-Driven Lattice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
About Data-Driven Lattices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
Create a Data-Driven Lattice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
Save a Custom Graph Object So It Appears in the Designer . . . . . . . . . . . . . . . . 491
Add a Graph Object to the Designers Objects Tab . . . . . . . . . . . . . . . . . . . . . . . . . 492
Specify Your Preferences for the Graph Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492
plots and charts that are available from the Graph Elements pane.
For a definition and a picture of each available graph element, see Graphs,
Charts, and Plots on page 539.
n use a gallery of predefined graph objects as templates from which you can
build and customize custom graph objects. For more information, see About
the Graph Template Gallery on page 480.
n combine and arrange the graph elements as needed. For example, you can
layer multiple graph elements in a cell, create a lattice of cells in rows and
columns, or combine these layouts.
There are two types of lattice graphs:
o
n determine and configure which data roles become available for assignment.
properties for the graph, the graph cells, for individual graph elements, for the
axes, and for legends. For more information, see Working with Properties
on page 501.
reports. However, these graph objects are not all displayed in the designer by
default. Use the designers Show or Hide Objects window to display the graph
objects on the designers Objects tab.
disable this feature by selecting the Dont show this window at start-up
check box in the window. You can also change the default setting in your
preferences. For more information, see Specify Your Preferences for the
Graph Builder on page 492.
n If the gallery is not displayed, select File New from Gallery to display it.
n In the gallery, select a category in the left pane to see the available graph
objects. You can then select the appropriate graph object from the right pane.
For more information, see Build a Custom Graph Object on page 481.
n Some of the gallery graphs are created as data-driven lattices. When you
select one of these graphs from the gallery, row and column lattice roles are
automatically created. If you want to create a user-defined lattice from one of
these gallery graphs, you must first delete the row and column lattice roles.
blank canvas.
n Select a graph object from the gallery.
1
Select a category in the left pane to see the available graph objects.
The All category shows all of the graph objects that are in the gallery.
When you find the graph object that you want, select the object, and
click OK.
Note: Some of the gallery graphs are created as data-driven lattices. For
more information, see About the Graph Template Gallery on page 480.
Sample data is used in the graph object. The report designer assigns real
data when he or she includes the graph object in a report.
2 (Optional) On the Role Definitions tab, you can define roles for the graph
object.
You have the following options:
n Provide more descriptive names for the default roles.
n Click Add Role to add more roles.
n Create a data-driven lattice by adding a lattice role. For more information,
(Optional) You can add additional graph elements to the graph object. See
Adding a Graph Element to an Existing Graph Object on page 484.
(Optional) You can change the properties for the graph object, the cell, the
graph element, the legend, or one or more axes. Select the item, and make
your changes on the Properties tab.
Save the graph object. Depending on where you save the graph object, it
might be immediately displayed on the Objects tab in SAS Visual Analytics
Designer (the designer). For more information, see Save a Custom Graph
Object So It Appears in the Designer on page 491.
On the Role Definitions tab, click Add Role. The Add Role window is
displayed. The contents of the Add Role window vary depending on the
current graph element.
2 Select the type of role that you want to create. For more information, see
(Optional) You can change the default role name to provide a more
meaningful name.
Select the data type, or classification, for the role. For information about the
data types, see Working with Data Items in a Report on page 357.
If the Allow multiple data assignments check box is available, then you
can select or clear the check box. When this option is selected, the role can
have more than one measure assigned. For example, in a line chart, if
multiple measures are assigned to the Y axis, then the graph shows a line for
each measure.
Click OK.
483
Types of Roles
In addition to the standard roles, such as Time, X, or Category, you can add the
following roles by clicking Add Role on the Role Definitions tab. The roles that
are available depend on the type of graph element.
n The Color role specifies a data column that is used to color the data.
The Color role can be any data type. In this example, the Color role is
assigned a Category data type.
Note: When you add the Color role to a graph element in a data-driven
lattice, the Measure data type is not always available. The Measure data type
is not available for a bar chart, a waterfall chart, or a scatter plot.
In some graph elements, such as a bar chart, the Group role also colors the
graph based on the values of the group variable. In those graph elements,
the Color role is used to color the data across a color gradient as shown in
the following example. In this case, the Color role must be a Measure data
type.
In this example, the color gradient indicates the age range of the students.
graph elements for each unique group value are automatically distinguished
by different visual attributes, such as color, line style, and so on. The Group
role can be a Category data type or a Datetime data type.
n The Data Label role specifies a data column that is used for data labels.
n The Data Tip role specifies a data column that is used for data tips. The Data
bar chart. A targeted bar chart compares data that is summarized by the
value of a category in reference to target values.
Add an Overlay
In an overlay, one graph element is superimposed on another graph element.
You can add an overlaid graph element to a single-cell graph as well as to a
lattice.
In this example, a step plot is overlaid on a bar chart. The example shows the
graph element with data assigned to it.
Figure 52.1 Step Plot Overlaid on a Bar Chart
To create an overlay:
1 Drag and drop a graph element from the Graph Elements pane onto the
canvas.
485
Drag and drop a second graph element directly onto the existing graph
element.
If the graph elements are compatible, they are automatically assigned a
shared role. This enables both graph elements to have a common X axis
role. You can unshare the shared role if needed.
Some graph elements, such as the pie chart and the treemap, cannot be
layered in an overlay. A message is displayed when you try to drag and drop
these types of graph elements.
For more information, see the following topics:
n Incompatible Graph Elements on page 487
n Sharing Data Roles on page 504
3 (Optional) On the Role Definitions tab, you can change the default role
the canvas. You can change the order by moving a graph element to the front
or the back. For more information, see Change the Order of Graph Elements
in a Cell on page 497.
User-Defined Lattice
Drag and drop a graph element from the Graph Elements pane onto the
canvas. The graph element is created in the center of the graph area of the
canvas.
Drag and drop another graph element onto the canvas as follows:
n Drag and drop the graph element onto the right or left border of the
n Drag and drop the graph element onto the top or bottom border of the
487
To add more cells, continue dragging and dropping graph elements onto the
borders of the existing graph to create new columns or rows. You can drag
and drop a graph element onto the area between two columns to insert a
new column. Or, you can drag and drop a graph element onto the area
between two rows to insert a new row. If the existing graph contains a lattice
with an empty cell, you can drag and drop the graph element into that empty
cell.
You can create up to 10 rows and 10 columns.
(Optional) On the Role Definitions tab, you can change the default role
names to provide more meaningful names.
Graph Element
Not Compatible
Band plot
Not Compatible
Band plot
Bar chart, vertical
Line chart
Needle plot
Schedule chart
Vector plot
Waterfall chart
Bubble plot
Line chart
Needle plot
Scatter plot
Schedule chart
Band plot
Bar chart, horizontal
Bar chart, vertical
Line chart
Needle plot
Step plot
Time series plot
Vector plot
Waterfall chart
Series plot
Step plot
Schedule chart
Schedule chart
Vector plot
Not Compatible
Waterfall chart*
489
Schedule chart
Vector plot
Waterfall chart
* The waterfall chart requires the X axis to have a shared role to avoid unpredictable results.
In the report, the graph object includes a three-cell lattice of bar charts showing
engine size and miles per gallon for different types of automobiles. The country
of origin is specified as the class variable. As a result, a cell is created for each
country of origin.
for the columns. When the report designer uses the lattice in a report, the
class variables are assigned to the lattice roles. All class variables must
come from a single data source. The number of rows and columns in the
graph is determined by the unique values of the class variables.
n If you specify that the role is required, then a report designer must assign
(Optional) On the Role Definitions tab, you can change the default role
names to provide more meaningful names.
3 Specify the role for a class variable. In the Data-Driven Lattice section of the
491
For the Role Type, select Row or Column to specify the layout for the cells.
data types, see Working with Data Items in a Report on page 357.
7 (Optional) Select Required to require report designers to assign data to the
role. If this option is not selected, then report designers can choose whether
to assign data to the role. In that case, it is possible for a graph to have no
lattice.
8
If the Allow multiple data assignments check box is available, then you
can select or clear the check box. When this option is selected, the role can
have more than one measure assigned. For example, in a line chart, if
multiple columns are assigned to the Y axis, then the graph shows a line for
each measure.
9 Click OK.
Repeat the previous steps to specify a second role. For example, if you specified
a role for a multi-row layout, you can specify an additional role for columns.
However, by default, not all of these graph objects are displayed on the
designers Objects tab. Use the designers Show or Hide Objects window to
display any of these graph objects on the designers Objects tab.
To add a graph object to the designers Objects tab:
1
On the Objects tab in the designer, click , and select Show or Hide
Objects. The Show or Hide Objects window is displayed.
b Enter the name of the graph object that you want to find.
c Click Search.
TIP As an alternative, you can search for all graph objects. Specify Graph
template for Type.
5
493
4 Click OK.
495
53
Modifying Custom Graph Objects
Change a Custom Graph That Has Been Saved . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
Select Components and Elements of a Graph Object . . . . . . . . . . . . . . . . . . . . . . 496
Change the Order of Graph Elements in a Cell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
Remove a Graph Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498
Working with User-Defined Lattices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498
About User-Defined Lattices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498
Move a Graph Element from One Cell to Another Cell . . . . . . . . . . . . . . . . . . . . . . 499
Resize a Row or a Column . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499
Add a Row or a Column to a Lattice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499
Remove a Cell or a Graph Element in the Cell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500
Move or Delete a Row or a Column . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500
Working with Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
About Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
About Style Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
Create an Overview Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502
Understanding and Changing Attribute Rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . 503
Sharing Data Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504
About Shared Data Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504
Share or Unshare a Data Role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505
Note: Any changes that you make to the graph object do not appear in existing
reports that were created from the original graph object. However, new reports
above the graph element. The cell is highlighted, and a tab appears in the
upper left corner of the cell. From the cells tab, you can delete and reorder
graph elements. You can move graph elements to other cells.
497
B1
C1
A2
B2
C2
A3
B3
C3
User-Defined Lattice
When you select a cell, a tab appears in the upper left corner of the cell. From
the cells tab, you can delete the cell and its contents by clicking
. If you click
499
, the graph elements in the cell are listed. From this list, you can delete and
reorder the graph elements. You can move graph elements to other cells.
For more information about selecting cells and how they are labeled in the
graph, see Select Components and Elements of a Graph Object on page 496.
Drag and drop a graph element from one cell into the target cell.
You can also drag and drop the graph element so that it creates a new row or
new column. For more information, see Add a Graph Element to a New Row
or Column on page 485.
between the row that you want to change and an adjacent row.
To resize a column:
1 Select
column.
2 Drag the handle left or right to change the column width.
Click
Click
You can also right-click the graph element, and select Delete.
3 To remove the cell, click
The cell and its contents are removed. If the cell is the only cell in a row or
column, then the respective row or column is removed as well.
Position the cursor over a heading. A button and arrows are displayed on the
heading.
The following example shows a column heading that contains a button to
delete the column and arrows to move the column. The button to move the
column to the left is unavailable.
or
n Click
or
501
Some arrows might not be available. For example, the leftmost column can
be moved only to the right, as is the case in the previous example. Only
is
available for the column.
See Also
Select Components and Elements of a Graph Object on page 496
Each color is shown in the list beside its style element. Automatic indicates the
default value for the graph element. Automatic enables the graph element to
cycle through a list of colors provided for group colors and multi-response colors.
axis
n select completely different graph elements from the main graph to show in
Drag and drop a graph element from the Graph Elements pane onto the
canvas.
You can drag and drop another graph element to create an overlay. However,
do not create a new cell for this additional graph element. You cannot create
an overview axis when the graph object contains more than one cell.
The graph object displays the overview axis beneath the existing graph
elements. By default, the existing graph elements are displayed in the
overview axis, as shown in the following example:
Drag and drop one or more graph elements from the Graph Elements
pane onto the overview axis area of the canvas.
503
The graph element names that you added are displayed in the Graph
elements section on the Properties tab.
c If you added more than one graph element to the overview axis area, you
can change the order of the graph elements by dragging and dropping a
graph element to a different position.
Rotate all
attributes
For example, the following figure shows an example rotation for an age
grouping. The dotted-line pattern is held constant while red, green, and blue
colors are applied to the dotted lines for the consecutive age group values. If
there are more group values, red, green, and blue colors are applied to the solid
lines.
If you change the rotation pattern, and specify Rotate all attributes for the
attribute rotation priority, the contrasting colors and line patterns are rotated at
the same time.
A red dotted-line pattern is applied to the first group crossing. Then, a green
solid-line pattern is applied to the second crossing, a blue dotted-line pattern is
applied to the third crossing, and so on.
When the graph object is used in the designer, the data might be applied as
shown in the following example.
505
The bar chart shows engine sizes for different regions of the world. (The engine
size has been changed from a Sum to an Average measure.) The scatter plot
shows the miles-per-gallon trend for the different engine sizes.
507
54
Graph Builder Examples
Example: Data-Driven Lattice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
About the Data-Driven Lattice Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
Build the Graph Object for the Data-Driven Lattice Example . . . . . . . . . . . . . . . . 508
Example: User-Defined Lattice (Butterfly Chart) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509
About the User-Defined Lattice Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509
Build the Graph Object for the User-Defined Lattice Example . . . . . . . . . . . . . . . 509
Example: Filled Overlay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512
About the Filled Overlay Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512
Build the Graph Object for the Filled Overlay Example . . . . . . . . . . . . . . . . . . . . . 513
Example: Vector Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513
About the Vector Plot Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513
Build the Graph Object for the Vector Plot Example . . . . . . . . . . . . . . . . . . . . . . . . 514
In the graph builder, drag and drop a line chart from the Graph Elements
pane onto the canvas.
Click OK.
Specifying Datetime forces the report designer to assign date and time data
to the Category role.
4
Select Required. With this option selected, the report designer must
assign data to this role to render the report with data assigned.
Click OK.
509
5 Save the graph object. See Save a Custom Graph Object So It Appears in
In the graph builder, drag and drop a bar chart from the Graph Elements
pane onto the canvas.
Drag and drop a second bar chart from the Graph Elements pane onto the
left edge of the canvas. This action creates a new column for the second bar
chart.
c Repeat the previous two steps for the other bar chart.
5 Specify a uniform column and row axis.
a Select the full graph. (Custom Graph should be displayed on the
Properties tab).
b
Reverse the order of the X (Measure) axis for the left bar chart.
a Click the horizontal axis for the left bar chart.
b
511
Change the color of the right bar chart to distinguish it from the left bar chart.
a Select the right bar chart.
b On the Properties tab, click
Repeat the previous two steps for the right bar chart.
Save the graph object. See Save a Custom Graph Object So It Appears in
the Designer on page 491.
In the graph builder, drag and drop a time series plot from the Graph
Elements pane onto the canvas.
Drag and drop a second time series plot from the Graph Elements pane
onto the first time series plot. This action creates an overlaid plot.
Note: When you overlay the plots, the Time role is automatically shared
between the plots.
Select the first time series plot. (On the Properties tab, the plot might be
identified as Time Series Plot 1.)
c Click
4 Save the graph object. See Save a Custom Graph Object So It Appears in
transparency for the bubbles was increased. In addition, grid lines and a
sheen data skin were applied to the graph. (These changes were made in
the designer.)
n To reduce the number of school systems for comparison, a filter was applied
In the graph builder, drag and drop a vector plot from the Graph Elements
pane onto the canvas.
2 Drag and drop a bubble plot from the Graph Elements pane onto the vector
plot.
3
Drag and drop a second bubble plot from the Graph Elements pane onto the
vector plot.
On the Role Definitions tab, share the roles. This action joins the vector
origin point to the first bubble, and the vector termination point to the second
bubble.
a Click
In the Add Shared Role window, specify Xstart as the name of the shared
role. Click OK.
b Click
In the Add Shared Role window, specify Ystart as the name of the shared
role. Click OK.
c
Click
next to the Bubble Plot 2 X role. Select Create Shared Role
With Another Role Vector Plot 1 X.
In the Add Shared Role window, specify Xend as the name of the shared
role. Click OK.
d
Click
next to the Bubble Plot 2 Y role. Select Create Shared Role
With Another Role Vector Plot 1 Y.
In the Add Shared Role window, specify Yend as the name of the shared
role. Click OK.
5 On the Role Definitions tab, add a group role to all three plots.
a In the Bubble Plot 1 section, click Add Role. The Add Role window is
In the Vector Plot 1 section, click Add Role. The Add Role window is
displayed.
Select Group for the type of role. Click OK.
In the Add Shared Role window, specify Color as the name of the shared
role. Click OK.
b In the Vector Plot 1 section, click
Click
next to Overlaid plot colors, and select All graphs start with
the same color.
b In the Display in legend box, deselect the Vector Plot 1 and the Bubble
Specify the bubble size. This is an optional change made only to improve the
appearance of the bubble sizes with respect to the vector lines.
a
10 Save the graph object. See Save a Custom Graph Object So It Appears in
517
Part 8
Viewing Reports
Chapter 55
Viewing Reports on a Mobile Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Chapter 56
Viewing Reports in Classic SAS Visual Analytics Viewer . . . . . . . . . . . . . 523
Chapter 57
Viewing Reports in Modern SAS Visual Analytics
Viewer (Preproduction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
518
519
55
Viewing Reports on a Mobile Device
Open the App for the First Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Add a Server Connection for iPad and iPhone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Add a Server Connection for Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
Tap
iPhone.
2 Tap Add Connection.
4 In the Port field, enter the port number for the new server.
5 Tap the Secure connection switch if the server requires a secure connection
(SSL).
6
If the server provides guest access, the Log on as guest switch appears.
Tap the Log on as guest switch to access the server without providing
credentials.
9 (Optional) In the Description field, customize the description for the new
connection.
Note: If you delete the default description, you must enter a new description.
The field cannot be blank.
10 Tap Next to verify your access to the server.
Note: If the verification fails, a message is displayed to help you correct the
problem.
The connection is saved, and the Add Connection window closes.
Note: Information about available reports is automatically downloaded and
appears in the portfolio or library.
Tap
Tap Settings.
5 In the Port field, enter the port number for the new server.
521
Note: If the connection fails, a message is displayed to help you correct the
problem.
8 If the server provides guest access, Log on as guest appears. Tap Log on
connection.
Note: If you delete the default description, you must enter a new description.
The field cannot be blank.
11 Tap Next to verify your access to the server.
Note: If the verification fails, a message is displayed to help you correct the
problem.
12 Tap Done.
523
56
Viewing Reports in Classic SAS
Visual Analytics Viewer
Overview of Viewing Reports in SAS Visual Analytics Viewer . . . . . . . . . . . . . . 523
Open a Report in the Classic Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
View Report Object Information in the Classic Viewer . . . . . . . . . . . . . . . . . . . . . . 525
Add Comments to a Report in the Classic Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . 525
Interacting with Reports in the Classic Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 526
Filter, Brush, and Drill in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 526
View Links in Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
Subscribe and Unsubscribe to Alerts in the Classic Viewer . . . . . . . . . . . . . . . . 527
Specify Your Preferences for the Classic Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
About Guest Access in the Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
Open.
n On the classic home page, use the object inspector to view details about the
report, and then click View. For more information about the object inspector,
see Discover Details Using the Object Inspector on the Classic Home Page
on page 615.
n In the classic viewer, select File Open.
If you have the Create Report capability, then you can select File Edit Report
in the current report. The designer is displayed, and then you can edit the report.
You can e-mail and print reports to share with other users, and export data and
images of report objects. For more information about sending reports to other
users, prerequisites and conditions for printing, and exporting, see Chapter 51,
Sharing Reports with Other Users, on page 461.
Note: Info windows are not included in the PDF that is generated when you
print. An info window can be printed separately by clicking Print report to PDF
in the info window.
525
Description
Click to display the title and description of the report object.
Click to maximize the report object. This icon is displayed only if there is
more than one report object being displayed.
Click to restore the report object to its original size. This icon is displayed
only if you previously maximized the report object.
Click to display incoming filter information for a report object. This icon is
displayed only if the data for the report object has been filtered as a result of
selecting data in another report object.
Click to display the prompt dialog box for a stored process. This icon is
displayed only for prompted stored processes. You can use the prompt
dialog box to change prompt values for a stored process and to re-execute
the stored process.
Note: Report authors can disable object selection, so you might not be able to
select some report objects.
Expand the right pane. Click the Comments tab. (If you are adding a
comment to a report object, then select the report object.)
(Optional) Click
Click Post to add your comment. Your comment is added to the Comments
tab in the right pane.
(Optional) Click
3 Click Post. Your reply is added to the Comments tab in the right pane.
Note: To edit another user's comments or to delete comments, you must have
the Comments:Administrator predefined role.
To search for a comment:
1
Expand the right pane. Click the Comments tab. Enter the word or phrase
that you want to search for in the Search within comments field on the
Comments tab.
527
Clicking on different data applies the filter based on the new data. To clear
the selection, right-click, and select Clear Selection.
brush
enables you to show the same data selected simultaneously in two or more
tables, graphs, or both. Click on data in the source report object to brush
data in the target report object (or objects). To clear the selection, right-click,
and select Clear Selection.
drill down
enables you to move from summary information to more detailed data. If the
data contains hierarchies, you can double-click on the data to drill down the
hierarchy into detailed information. When you drill down the hierarchy,
breadcrumbs at the top of the report object enable you to drill back up the
hierarchy.
If a report object that you are linking to shares a data source with the current
report object, then the target report object is filtered based on the data value that
you double-clicked. If you do not want the target report object to be filtered, you
can click
, and deselect Apply report link filters. If the data source is not
shared between the two report objects, then no additional filtering takes place in
the target report object.
To go back to the original report object, click
A report object, text, or image can link to an info window within the same report.
The info window provides additional information. For example, a list table might
provide additional information for a bar chart. Or, there might be additional text
about what is displayed in a report object. When you double-click the data (for
example, a bar, a bubble, a pie slice, a table row, and so on) in a report object
that has an info window link, the info window is displayed as a new window.
Expand the right pane. Click the Alerts tab. This tab contains a list of all alert
conditions for all report objects within the report.
can select the Override report theme when High Contrast Theme is
selected check box to ensure that reports are displayed using the SAS High
Contrast theme. This overrides any theme settings that are made in the
designer.
4 Select Modern (preproduction), Classic, or Administrator default to
529
57
Viewing Reports in Modern SAS
Visual Analytics Viewer
(Preproduction)
Open a Report in the Modern Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
Open.
n On the classic home page, use the object inspector to view details about the
report, and then click View. For more information about the object inspector,
see Discover Details Using the Object Inspector on the Classic Home Page
on page 615.
n In the modern viewer, click Browse or click on a report in the Recent list.
The layout of the tiles in the treemap is dependent on the size of the display
area. This means that the same treemap might appear slightly different in the
viewer than it does in SAS Visual Analytics Designer (the designer) or in a native
mobile app.
530 Chapter 57 / Viewing Reports in Modern SAS Visual Analytics Viewer (Preproduction)
Here is an example of a report in the modern viewer:
Figure 57.1 A Report in the Modern Viewer
Note: You cannot edit stored process prompts in the modern viewer. In the
modern viewer, stored processes are executed using default parameter values.
Note: The web viewer is not supported on mobile devices. Mobile users are
redirected to SAS Mobile BI.
For more information about using the modern viewer, refer to the online Help
that is available for the viewer. For more information about using the classic
viewer, see Chapter 56, Viewing Reports in Classic SAS Visual Analytics
Viewer, on page 523.
531
Part 9
Appendixes
Appendix 1
Keyboard Shortcuts for SAS Visual Analytics . . . . . . . . . . . . . . . . . . . . . . . 533
Appendix 2
Gallery of Report Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537
Appendix 3
Editing a Data Expression in Text Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561
Appendix 4
Aggregations for Measures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565
Appendix 5
Operators for Data Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567
Appendix 6
Conditions for Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
Appendix 7
Data Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591
Appendix 8
Troubleshooting in SAS Visual Analytics Designer . . . . . . . . . . . . . . . . . . 597
Appendix 9
Using URL Parameters to View a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601
532
Appendix 10
Twitter Data Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603
Appendix 11
About the Classic SAS Visual Analytics Home Page . . . . . . . . . . . . . . . . . 607
533
Appendix 1
Keyboard Shortcuts for SAS Visual
Analytics
The following table contains many of the keyboard shortcuts for SAS Visual
Analytics. In SAS Visual Analytics, some shortcuts are displayed within
parentheses in tooltips and menu item labels. Some are also displayed in the
Keyboard Shortcuts window (press F9 to open that window).
Note: When you use a keyboard shortcut to activate a button, move the focus to
the field or section that the button is associated with before you use the
keyboard shortcut. For example, if a table has an associated Help button, you
must first move the focus to the table before you press Ctrl+?.
Table A1.1
Keyboard Shortcuts
Action
Keyboard Shortcut
F9
Note: The Keyboard Shortcuts window
might not contain all of the shortcuts for
your application.
Ctrl+?
Zoom in.
Ctrl+plus sign
Zoom out.
Ctrl+minus sign
Ctrl+0
Ctrl+Alt+Shift+M
or
Exit maximized view (expands the
category pane and the tile pane and
shows the status bar and the application
bar).
Keyboard Shortcut
Ctrl+F6
Ctrl+~
Keyboard Shortcut
535
537
Appendix 2
Gallery of Report Objects
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538
List Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538
Crosstabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538
Graphs, Charts, and Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539
Bar Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539
Targeted Bar Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
Waterfall Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
Line Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
Pie Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541
Scatter Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542
Time Series Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542
Comparative Time Series Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542
Series Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543
Numeric Series Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544
Bubble Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544
Bubble Change Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
Treemaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
Dual Axis Bar Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Dual Axis Line Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Dual Axis Bar-Line Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547
Dual Axis Time Series Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547
Band Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
Needle Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
Step Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549
Schedule Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
Vector Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
Dot Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551
Butterfly Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552
Stock High-Low Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552
Stock Volume and Volatility Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
Other Report Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
Geo Bubble Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
Geo Coordinate Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
Geo Region Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
Gauges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557
Word Clouds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559
Tables
List Tables
A list table is a two-dimensional representation of data in which the data values
are arranged in unlabeled rows and labeled columns. List tables can use any
data items from a data source. A list table cannot use a hierarchy or a
percentage of subtotals.
You can add sparklines to a column (if the data source contains a date data
item) when aggregated data is displayed in the list table.
Figure A2.1
A List Table
Crosstabs
A crosstab (also known as a crosstabulation table) shows an aggregate metric
for the intersections of two or more categories. Crosstabs often have two or
more categories assigned to both the rows and columns, forming a matrix.
Crosstabs can be easier to read than list tables because they often use less
space, and they always collapse repeating values for outer category data items
into one unique value, which is known as grouping. A crosstab can use a
hierarchy.
A Crosstab
A Bar Chart
Waterfall Charts
A waterfall chart (also known as a progressive bar chart) shows how the initial
value of a measure increases or decreases during a series of operations or
transactions. The first bar begins at the initial value, and each subsequent bar
begins where the previous bar ends. The length and direction of a bar indicate
the magnitude and type (positive or negative, for example) of the operation or
transaction. The resulting chart is a stepped bar showing how incremental
changes lead to the final value of the measure.
Figure A2.5
A Waterfall Chart
Line Charts
A line chart shows the relationship of one or more measures over some interval,
such as time or a series of ranges. You can measure a single measure
(univariate analysis), or you can show the relationships among multiple
A Line Chart
Pie Charts
A pie chart displays a part-to-whole relationship in a circle divided into multiple
slices for each value of a category data item based on a single measure data
item. Each slice represents the relative contribution of each part to the whole. In
a pie chart, the legend is sorted by contribution.
In SAS Visual Analytics Designer (the designer), a pie chart does not show a
slice with a missing or zero response.
Effective pie charts limit the number of slices to 5 or 6. In the designer, you can
use a rank to reduce the number of slices in a pie chart. For more information,
see Add a New Rank on page 449.
Note: The Other slice does not display data tip values. In addition, the Other
slice always sums the included values, regardless of the aggregation method
selected for the measure. For example, if the aggregation method selected is
Count, then the Other slice displays the sum of the individual counts.
Figure A2.7
A Pie Chart
Scatter Plots
A scatter plot is a two-dimensional plot that shows the relationship of two
measure data items. Each marker (represented by a symbol such as a dot, a
square, or a plus sign) represents an observation. The markers position
indicates the value for each observation. Use a scatter plot to examine the
relationship between numeric data items. You can apply grouping by assigning a
category to the Color role.
Scatter plots do not use aggregated data.
Figure A2.8
A Scatter Plot
datetime, time, or hierarchy data item that is continuous on the X axis. The X
axis is shared across both plots.
TIP This report object is not displayed in the designer by default. You can
select what you want to display using the designers Show or Hide Objects
window.
Figure A2.10 A Comparative Time Series Plot
Series Plots
A series plot displays a series of line segments that connect observations of
input data. A series plot can use numeric or character data on the X axis.
Note: You must create and save this custom graph object in the SAS Visual
Analytics Graph Builder (the graph builder) before the object is available for use
in reports.
The following example shows MPG averages for different types of vehicles:
Figure A2.11
A Series Plot
Bubble Plots
A bubble plot is a variation of a scatter plot in which the markers are replaced
with bubbles. A bubble plot displays the relationships among at least three
measures. Two measures are represented by the plot axes, and the third
measure is represented by the size of the bubbles. Each bubble represents an
observation. A bubble plot is useful for data sets with dozens to hundreds of
values. You can add categories to the Grouping and Lattice roles.
Note: A bubbles size is scaled relative to the minimum and maximum values of
the size variable. The minimum and maximum sizes are illustrated in the plot
legend. The actual value for each bubble is displayed as a data tip. For example,
the legend that is displayed in Figure A2.13 on page 545, the minimum size is
1.3 and the maximum size is 8.3.
A Bubble Plot
select what you want to display using the designers Show or Hide Objects
window.
Figure A2.14 A Bubble Change Plot
Treemaps
A treemap displays your data as a set of rectangles (called tiles). Each tile
represents a category node or a hierarchy node. The color of each tile
represents the value of the first measure. The size of each tile represents the
value of the second measure. (There are two data roles for measures in a
treemapSize and Color.) For example, a sales data treemap might have tile
sizes that represent the number of orders, and it might have tile colors that are
derived from color gradients that represent sales.
A Treemap
Band Plot
A band plot draws a horizontal band with two Y values for each X value. Or, it
draws a vertical band with two X values for each Y value. A band plot is typically
used to show confidence, error, prediction, or control limits. The points on the
upper and lower band boundaries can be joined to create two outlines. The area
between the boundaries is filled.
Here are some key points about band plots:
n You must create and save this custom graph object in the graph builder
A Band Plot
Needle Plot
A needle plot is a plot in which data points are connected by a vertical line that
connects to a horizontal baseline. The baseline intersects the 0 value or the
minimum value on the vertical axis.
TIP This report object is not displayed in the designer by default. You can
select what you want to display using the designers Show or Hide Objects
window.
The following example shows profits during a particular time period. The
example specifies an optional baseline value on the Y axis.
Figure A2.21
A Needle Plot
Step Plot
A step plot consists of a series of horizontal and vertical line segments (giving
the appearance of steps) that connect observations of input data.
Note: A step plot does not support display rules in the designer.
TIP This report object is not displayed in the designer by default. You can
select what you want to display using the designers Show or Hide Objects
window.
A Step Plot
Schedule Chart
A schedule chart makes it easy to visualize time lines by representing tasks,
start dates, durations, and end dates in cascading horizontal bar charts.
TIP This report object is not displayed in the designer by default. You can
select what you want to display using the designers Show or Hide Objects
window.
Figure A2.23
A Schedule Chart
Vector Plots
A vector plot shows the change in value of a measure using directed line
segments, or vectors, to represent both direction and magnitude at each point.
TIP This report object is not displayed in the designer by default. You can
select what you want to display using the designers Show or Hide Objects
window.
The following example shows the changes in exam scores for different North
Carolina school systems from 2012 to 2013:
Figure A2.24
A Vector Plot
For an example that shows a vector plot enhanced with bubble plots, see
Example: Vector Plot on page 513.
Dot Plots
A dot plot compares data that is aggregated by the value of a category.
TIP This report object is not displayed in the designer by default. You can
select what you want to display using the designers Show or Hide Objects
window.
Figure A2.25
A Dot Plot
Butterfly Charts
A butterfly chart compares a measure across two categories of values.
TIP This report object is not displayed in the designer by default. You can
select what you want to display using the designers Show or Hide Objects
window.
Figure A2.26
A Butterfly Chart
select what you want to display using the designers Show or Hide Objects
window.
Controls
A control is a report object that filters or narrows the scope of the data that user
is viewing. A control enables a report designer to select a category that he or
she wants the report viewer to see.
The following controls are available in the designer:
n drop-down lists
Figure A2.29
n lists
Figure A2.30
A List Control
n button bars
Figure A2.31
n sliders
Figure A2.33
A Slider Control
Gauges
Bullet Gauges
A bullet gauge is a dashboard indicator that compares an actual value to a target
value and compares them in intervals. The actual value of the primary measure
is indicated by an inset horizontal bar.
Note that the scale of a bullet gauge often begins at zero, but it can contain both
positive and negative values if both types of values apply to the primary
measure, such as profit. The inset horizontal bar should always begin at zero so
that comparing multiple bullet graphs is not confusing.
The bullet gauge requires a primary measure and a range display rule, and the
target measure is optional. The default orientation is horizontal with an option to
display the gauge vertically.
Figure A2.37
A Bullet Gauge
Slider Gauges
A slider gauge is a dashboard indicator that compares an actual value to a target
value and compares them in intervals. The actual value of the primary measure
is indicated by a downward-facing arrow. The target value is indicated by a small
upward-facing arrow.
Like a bullet gauge, a slider gauge is oriented horizontally by default, but you
can change the gauges orientation to vertical. You should use a slider gauge
when the numeric scale does not start at zero.
The slider gauge supports dates (which are continuous) and numeric categories.
Figure A2.38
A Slider Gauge
Thermometer Gauges
A thermometer gauge is a dashboard indicator that compares an actual value to
a target value and compares them in intervals. The actual value of the primary
measure is indicated by a vertical bar. The target value is indicated by a small
black line.
A Thermometer Gauge
Dial Gauges
A dial gauge is an arc-shaped dashboard indicator that compares an actual
value to a target value and compares them in intervals. The actual value of the
primary measure is indicated by an arrow that points outward from the inner
circle. The target value is indicated by an arrow that points inward from the outer
arc. The color of the center circle is the color associated with the primary
measure values range interval.
The dial gauge requires a primary measure value and a range-based display
rule. For more information, see Adding Gauge-Level Display Rules on page
409.
A target measure value is optional.
Figure A2.40
A Dial Gauge
Speedometer Gauges
A speedometer gauge is a circular dashboard indicator that compares an actual
value to a target value and compares them in intervals. The actual value of the
primary measure is indicated by the larger pointer. The target value is indicated
by a small triangle along the quantitative scale, either pointing inward or
outward, depending on the KPI skin option for the gauge.
A speedometer gauge requires a primary measure value and a range-based
display rule. A target measure value is optional.
A Speedometer Gauge
Word Clouds
A word cloud displays a set of category values as text, grouped in a cloud-like
shape. Depending on the word cloud data roles, the size of the text indicates the
frequency of a category value or the value of a measure that corresponds to a
category value.
Figure A2.42
Word Cloud
561
Appendix 3
Editing a Data Expression in Text
Mode
Overview of Text Mode
In SAS Visual Analytics, you create and edit filters, calculated items, and
aggregated items by using an expression editor. The Text tab of the expression
editor enables you to edit the expression as text.
You can add operators and data items to your expression by dragging and
dropping them onto the expression or by entering the names of the operators or
data items.
As you enter text, a list of suggestions appears. For example, if you enter date,
then a drop-down list appears and enables you to select any of the operators
and data items whose names begin with date.
When you make changes to your expression, it is automatically evaluated to
determine whether it is valid. If the expression is not valid, then an error appears
on the Messages tab, and the OK button is disabled. There might be a brief
delay as your expression is evaluated.
563
'23JUN2013_5:23:55dt
'23JUN2013_5:23'dt
'23JUN2013'dt
Time
'_12:23:55't
'_12:23't
Elapsed Time
'44:23:55't
'00:01:34't
aggregates the sum of the measure COST for each BY-group value.
565
Appendix 4
Aggregations for Measures
The aggregation that is assigned to a measure determines how its values are
summarized in a visualization or report object.
For example, in a bar chart of Sales by Quarter, each bar represents the
aggregated values of the Sales measure for a specific quarter. If the aggregation
for Sales is Sum, then the bars represent the sum (total) of sales for each
quarter. If the aggregation for Sales is Average, then the bars represent the
average sales for each quarter.
Note: Some aggregation types can override the data format that is used to
display values in a visualization or report object. For example, if a measure has
the Currency format with zero decimal places of precision, and you apply the
Variance aggregation, then the values are displayed using the Comma format
with two decimal places of precision instead.
You can specify the following aggregations for your measures:
Sum
calculates the sum (total) of the values of a measure.
Average
calculates the average (mean) value of a measure.
Standard Deviation
calculates the standard deviation of a measure.
Standard Error
calculates the standard error of the mean of a measure.
Variance
calculates the variance of a measure.
Count
calculates the total number of nonmissing values of a measure.
Number Missing
calculates the number of missing values in a measure.
Minimum
calculates the smallest value of a measure.
First Quartile
calculates the first quartile of a measure.
Median
calculates the median value of a measure.
Third Quartile
calculates the third quartile of a measure.
567
Appendix 5
Operators for Data Expressions
Overview of Operators for Data Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567
Numeric (Simple) Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567
Comparison Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568
Boolean Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569
Numeric (Advanced) Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570
Date and Time Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571
Aggregated (Simple) Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573
Aggregated (Advanced) Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574
Periodic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About Periodic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CumulativePeriod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ParallelPeriod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PeriodWithDate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RelativePeriod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
575
575
576
578
580
581
582
Comparison Operators
BetweenExclusive
returns true if the first value is within the range defined by the second and
third values (excluding the bounding values).
For example, X BetweenExclusive(50, 100) returns true if X is greater
than 50 and less than 100.
BetweenInclusive
returns true if the first value is within the range defined by the second and
third values (including the bounding values).
For example, X BetweenInclusive(50, 100) returns true if X is greater
than or equal to 50 and less than or equal to 100.
In
returns true if the first value is in the list specified by the second parameter.
Select your list by choosing the values from the drop-down list or the selector
window.
For example, X In ('A', 'B', 'C') returns true when the value of X is
either A, B, or C.
Note: This operator cannot be used to compare measures.
Missing
returns true if the value is a missing value.
For example, X Missing returns true if the value of X is missing.
NotBetweenExclusive
returns true if the first value is outside the range defined by the second and
third values (excluding the bounding values).
For example, X NotBetweenExclusive(50, 100) returns true if X is less
than 50 or greater than 100.
NotBetweenInclusive
returns true if the first value is outside the range defined by the second and
third values (including the bounding values).
Boolean Operators
569
Boolean Operators
AND
joins two conditions and returns true if both conditions are true.
For example,
(1 = 1) AND (2 = 2)
returns false.
IF... ELSE
returns different values, depending on whether the condition is true. The first
parameter specifies the condition. The second parameter specifies the value
to return if the condition is true. The third parameter specifies the value to
return if the condition is false.
For example,
if (X > Y) return X else Y
returns true.
571
Root
returns the nth root of the first value, where the second value specifies n (the
base of the root).
For example, 27 Root 3 returns the 3rd (cube) root of 27 (3).
Round
rounds the first value to the number of decimal places that is specified by the
second value. Select the second value from the drop-down list.
For example, 7.354 Round 2 returns 7.35.
Note: If you select 0 decimal places, then the values are rounded to the
nearest integer.
TreatAs
allows a numeric, date, or datetime value to be used as a different data type
within other operators. Select one of the following:
_Date_
allows the value to be used as a date.
_Datetime_
allows the value to be used as a datetime value.
_Number_
allows the value to be used as a number.
_Time_
allows the value to be used as a time value.
The value is treated as a raw value instead of being converted. Date values
are the number of days since 01JAN1960. Datetime values are the number
of seconds since 01JAN1960. Time values are the number of seconds since
midnight.
For example, TreatAs(_Date_, 19600) returns 30AUG2013 as a date
value.
Note: The TreatAs operator is useful for calculating elapsed time between
two datetime values. For example, (TreatAs(_Number_, '23OCT2013'd)
TreatAs(_Number_, '15JAN2013'd)) calculates the number of days
between 15JAN and 23OCT, which is 281.
Trunc
truncates the input value to an integer.
For example, Trunc(8.9) returns 8 and Trunc(-8.9) returns -8.
573
Now
creates a datetime value from the current date and time.
For example, Now() returns the current date and time.
Quarter
returns the quarter from a date value as a number from 14.
For example, Quarter('15AUG2013'd) returns 3.
Second
returns the second from a time or datetime value as a number from 059.
For example, Second('17:15:23't) returns 23.
TimeFromHMS
creates a time value from separate hour, minute, and second values. The
first value specifies the hour as a number from 023. The second value
specifies the minute as a number from 059. The third value specifies the
second as a number from 059.
For example, TimeFromHMS(17, 15, 23) returns 05:15:23 PM.
TimePart
converts a datetime value to a time value.
For example, TimePart('15JAN2013_17:15:23'dt) returns 05:15:23
PM.
WeekNumber
returns the week of the year as a number from 053, where week 1 begins
on the first Sunday of the year. Dates before the first Sunday of the year
return 0.
For example, WeekNumber('04AUG2013'd) returns 31.
Year
returns the year from a date value as a four-digit number.
For example, Year('15JAN2013'd) returns 2013.
Periodic Operators
575
Periodic Operators
About Periodic Operators
Periodic operators aggregate values over a period of time.
If you assign a periodic aggregated item to a visualization or report object that
contains dates, the aggregated item displays the aggregated values for each
time period in the visualization or report object.
In a visualization or report object that does not contain dates, the aggregated
item displays values that use todays date as a reference. If the date data item
for the operator does not contain data for the interval that contains todays date,
then the operator returns missing values.
Periodic operators are evaluated using time intervals. Intervals specify whether
the aggregation is applied on a monthly basis, a quarterly basis, and so on. You
can specify a specific interval, or you can specify that the interval is inferred. For
an inferred interval, the aggregation is evaluated based on its context in the
visualization or report object. For example, if your visualization contains a bar
chart of sales by month, then the inferred interval is monthly.
Note: Periodic operators return a missing value in the following scenarios:
item in the visualization or report object. You must use the same date data
item or a duplicate data item that is based on the same data item.
n The interval for the operator is smaller than the interval of the date format in
the visualization or report object (for example, if your interval is by month, but
the date format is Year).
n For operators that use inner and outer intervals, the inner interval is larger
day.
n The inferred interval is by day for any operator that has an offset other than
0.
For the explorer, the ParallelPeriod and RelativePeriod operators always
return a missing value when the inferred interval is by day.
The following periodic operators are available:
Table A5.1
Periodic Operators
CumulativePeriod
ParallelPeriod
Period
PeriodWithDate
RelativePeriod
CumulativePeriod
The CumulativePeriod operator returns aggregated values for a period of time
and all of the previous periods, within a larger period of time (for example, the
year-to-date total of monthly values).
Periodic Operators
577
For example, specify _ByMonth_ as the inner interval and _ByYear_ as the
outer interval to aggregate the year-to-date values for each month.
Select one of the following:
_Inferred_
specifies that the interval is determined automatically from the
visualization or report object that displays the aggregated item.
_ByMonth_
specifies a monthly interval.
_ByQuarter_
specifies a quarterly interval.
_ByYear_
specifies a yearly interval.
5 The outer interval (larger time period) that provides the context for the
that the period from the current outer interval is used. A negative value
indicates a previous interval.
For example, if your inner interval is by month and your outer interval is by
year, then -1 specifies the year-to-date monthly values for the previous year.
7 The scope for the period. The scope specifies how much of each period is
aggregated.
Select one of the following:
_Full_
aggregates the values for the entire period.
_ToDate_
aggregates only the values up to a specific day of the outer interval.
_ToToday_
aggregates only the values up to the equivalent of todays position in the
current interval. For example, if today is the 40th day of the quarter, and
the outer interval is by quarter, then only the values up to the 40th day of
each quarter are used.
The value for today is evaluated dynamically whenever the aggregated
item is viewed in a visualization or report object.
8 If you select _ToDate_ as the scope, then select the date that is used to
aggregates the sum of year-to-date monthly values for the Expenses measure
using date values from the Date data item.
ParallelPeriod
The ParallelPeriod operator returns aggregated values for a period of time that is
parallel to the current period (for example, the value for the same month of the
previous year).
Periodic Operators
579
that the period from the current outer interval is used. A negative value
indicates a previous interval.
For example, if your inner interval is by month and your outer interval is by
year, then -1 specifies the monthly values for the previous year.
7 The scope for the period. The scope specifies how much of each period is
aggregated.
Select one of the following:
_Full_
aggregates the values for the entire period.
_ToDate_
aggregates only the values up to a specific day of the outer interval.
_ToToday_
aggregates only the values up to the equivalent of todays position in the
current interval. For example, if today is the 40th day of the quarter, and
the outer interval is by quarter, then only the values up to the 40th day of
each quarter are used.
The value for today is evaluated dynamically whenever the aggregated
item is viewed in a visualization or report object.
8 If you select _ToDate_ as the scope, then select the date that is used to
aggregates the sum of monthly values for the Expenses measure for the
previous year using date values from the Date data item.
Period
The Period operator returns aggregated values for a period of time (for example,
the value for the current month).
Specify the following parameters:
Figure A5.3
Periodic Operators
581
aggregates the sum of monthly values for the Expenses measure using date
values from the Date data item.
PeriodWithDate
The PeriodWithDate operator returns aggregated values for a specific, constant
period of time (for example, the value for the month that includes 15OCT2013).
Specify the following parameters:
Figure A5.4
For example,
PeriodWithDate(_Sum_, 'Expenses'n, 'Date'n, _ByMonth_, '15OCT2013'd)
aggregates the sum of monthly values for the Expenses measure using date
values from the Date data item.
RelativePeriod
The RelativePeriod operator returns aggregated values for a period of time that
is relative to the current period (for example, the previous month of the same
year).
Specify the following parameters:
Figure A5.5
_Inferred_
specifies that the interval is determined automatically from the
visualization or report object that displays the aggregated item.
_ByMonth_
specifies a monthly interval.
_ByQuarter_
specifies a quarterly interval.
_ByYear_
specifies a yearly interval.
5 The number of intervals to offset from the current period. 0 specifies that the
period from the current interval is used. A negative value indicates a previous
interval.
For example, if your interval is by month, then -1 specifies the monthly values
for the previous month.
6 The scope for the period. The scope specifies how much of each period is
aggregated.
Select one of the following:
_Full_
aggregates the values for the entire period.
_ToDate_
aggregates only the values up to a specific day of the interval.
_ToToday_
aggregates only the values up to the equivalent of todays position in the
current interval. For example, if today is the 40th day of the quarter, and
the outer interval is by quarter, then only the values up to the 40th day of
each quarter are used.
The value for today is evaluated dynamically whenever the aggregated
item is viewed in a visualization or report object.
7 If you select _ToDate_ as the scope, then select the date that is used to
aggregates the sum of monthly values for the Expenses measure for the
previous month using date values from the Date data item.
587
This is a date data item with a format of Month, Day, Year (MMDDYYYY).
The duplicate data item is:
TransactionDateYear
This data item is a duplicate of the TransactionDate data item, but with the
Year format.
The calculated data items are:
BeginningYearNum
This data item should be a numeric type with a Float4.0 format and an
aggregation of Minimum.
BeginningYearNum = Year('31DEC2010'd)
EndingYearNum
This data item should be a numeric type with a Float4.0 format and an
aggregation of Minimum.
EndingYearNum = Year(transactionDaten)
This data item needs to be set to the same currency format as the sales
data item.
BeginningValue = PeriodWithDate(_Sum_, 'sales'n,
'transactionDate'n, _ByYear_, '31DEC2010'd)
EndingValue
This data item needs to be set to the same currency format as the sales
data item.
EndingValue = Period(_Sum_, 'sales'n, 'transactionDate'n,
_ByYear_)
NormalizedRatio
To use the CAGR, you should add TransactionDateYear, CAGR, and any
other categories of interest (for example, RegionName, ProductType, and so
on) to a list table, a crosstab, or a graph.
589
Appendix 6
Conditions for Filters
In SAS Visual Analytics, filters are based on expressions that contain operators.
Conditions enable you to easily add the most common operators to your
expression. Depending on the type of data that is used by the filter, you can
select from the following categories of filter conditions:
Table A6.1
Contains
EndsWith
In
Missing
NotContains
NotIn
NotMissing
StartsWith
Table A6.2
<>
<=
>
>=
Between [exclusive]
Between [inclusive]
In
Missing
NotBetween
[exclusive]
NotBetween
[inclusive]
NotIn
NotMissing
591
Appendix 7
Data Limits
Data Limits for SAS Visual Analytics Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591
High-Cardinality Thresholds for Report Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
Default
Threshold
Minimum
Threshold
Maximum
Threshold
Paging is applied
to the table.
10,000
1,000
100,000
An error message
appears.
21,000,000
cells
1,000,000
cells
26,000,000
cells
Not grouped or
latticed.
3,000
810
3,625
Grouped or
latticed.
An error message
appears.
3,000
810
3,625
Visualization Type
Variation
Table
Crosstab
Bar Chart
Visualization Type
Variation
Line Chart
Single numeric or
datetime category
in the Category
role.
Behavior when
Limit Is
Exceeded
The line chart
shows a subset
that contains the
first or last ranked
value.
Single string
category in the
Category role.
No string
categories in the
Category role,
grouped or
latticed.
An error message
appears.
One or more
string categories
in the Category
role, grouped or
latticed.
Scatter Plot
Bubble Plot
Network Plot
Default
Threshold
Minimum
Threshold
Maximum
Threshold
10,000
5,630
11,250
4,000
1,380
4,750
10,000
5,630
11,250
4,000
1,380
4,750
Two measures,
not grouped.
40,000
9,375
48,750
Two measures,
grouped.
An error message
appears.
40,000
9,375
48,750
Three or more
measures, not
grouped.
80,000 /
number of
measures
18,750 /
number of
measures
97,500 /
number of
measures
Three or more
measures,
grouped.
An error message
appears.
80,000 /
number of
measures
18,750 /
number of
measures
97,500 /
number of
measures
No categories.
25,000
7,500
30,000
Grouped.
500
150
600
Latticed.
An error message
appears.
1,050
4,900
50,000
Grouped and
latticed.
500
150
600
Animated.
50,000
15,000
60,000
8,000
100
10,000
An error message
appears.
An error message
appears
3,000 links
500 links
3,625 links
8,020 rows
1,000 rows
10,000 rows
593
Visualization Type
Variation
Behavior when
Limit Is
Exceeded
Histogram
None
None
None
Box Plot
An error message
appears.
2,900 boxes
800 boxes
3,500 boxes
Heat Map
No categories.
None
None
None
One or more
categories.
An error message
appears.
3,000
1,250
3,500
Bubble overlay
The bubble
overlay is
converted to a
coordinate
overlay.
5,000
1,500
6,000
Region overlay
The bubble
overlay is
converted to a
coordinate
overlay.
5,000
1,500
6,000
Coordinate
overlay
An error message
appears.
82,000
10,000
100,000
No additional
levels.
The treemap
shows a subset
that contains the
first or last ranked
value.
4,900
1,050
6,000
One or more
additional levels.
The number of
additional levels
is reduced to 0. If
the threshold is
still exceeded,
then the treemap
shows a subset
that contains the
first or last ranked
value.
4,900
1,050
6,000
Geo Map
Treemap
Default
Threshold
Minimum
Threshold
Maximum
Threshold
Correlation Matrix
60 measures
Decision Tree
Number of nodes.
An error message
appears.
180
75
200
Number of target
values.
50
30
50
Number of
predictor values.
An error message
appears.
4,300
1,500
5,000
Visualization Type
Variation
Word Cloud
Behavior when
Limit Is
Exceeded
The word cloud
displays the top
words by
frequency, by
measure value,
or by topic
weight.
Default
Threshold
Minimum
Threshold
Maximum
Threshold
100
100
100
In addition to the data thresholds that are set by the Preferences window, there
are server data limits that can be set by the system administrator. For
information about the server data limits, see the topic Manage High-Cardinality
Data in the SAS Visual Analytics: Administration Guide.
Report Object
Gauges (bullets, sliders, thermometers, dials, and speedometers)
Word cloud
Rows
10
100
Bubble plots
1,500
Bar charts (regular, targeted, dual axis, and dual axis bar-line)
3,000
Waterfall charts
3,000
Scatter plots
3,000
4,000
5,000
Step plots
10,000
10,000
Treemaps
25,000
Pie charts
40,000
595
Rows
40,000
Here are some key points about high-cardinality thresholds in report objects:
n In general, requests that exceed a client-side report object threshold cause
selects the Show detail data check box. Bubble plots show details unless a
category is assigned to the Group role.
n If a data source contains more than a million records, queries are blocked for
data items whose cardinality is greater than 10,000 unique items in any
particular category.
597
Appendix 8
Troubleshooting in SAS Visual
Analytics Designer
Repairing Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
Displaying Alert Notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
Exporting Data from Report Objects to Microsoft Excel 2007 . . . . . . . . . . . . . . . 599
Specifying Colors for Data Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599
Repairing Reports
Issue: The Repair Report window is displayed.
Resolution:
When you open a report in the designer, you might be prompted to repair the
report. For example, this can happen when one or more columns have been
removed from the data source. You might be prompted to repair the report when
you refresh a report or change a data source. You might be prompted to repair a
report if your system administrator is still deciding which data items should be in
a table.
To repair a report:
1
Decide whether you want to fix individual data items or all of the data items in
the report.
Fixes can be made at the individual data item level. For example, if two data
items are removed from a report, then the Repair Report window displays
separate entries for each data item. The report objects that are impacted by
each data item appear below each of the data items.
Click Fix or Fix All. For example, if there is a column missing in the data
source and you click Fix, then the missing column is removed from the
report.
Note: If you click Open Report, then all of the data is removed from the
report objects.
A confirmation message is displayed when the report has been fixed.
Resolution:
There are many factors that can affect alert notifications. For example, system
administrators for SAS Visual Analytics can set a property for how frequently the
system checks to see whether the alert condition has been met. And, alert
notifications are not sent if a server is down.
The timing of when alert notifications are sent can vary depending on when the
alert condition is met. For example, suppose that you specify that alert
notifications are sent every five days. The alert condition is met for the first time
at 10:00am on September 2. After that, the system continues to check for the
alert condition based on the hour or minute value that you specified for the
Query the system every field. Because the frequency is set to five days, no
alert notifications will be sent between 10:01am on September 2 and 9:59am on
September 7. This is the case, no matter how many times the alert condition is
met during that timeframe. At 10:00am on September 7, if the alert condition is
met, then another alert notification is sent, and the five-day countdown starts
again. On the other hand, if the alert condition has not been met at 10:00am on
September 7, then no alert notification is sent. However, now that five days have
passed, an alert notification is sent as soon as the alert condition is met again.
Suppose that an alert notification is sent at 2:00pm on September 10. After the
alert notification is sent, the five-day countdown starts again, and the earliest the
next alert notification can be sent is 2:00pm on September 15. If you modify the
notification frequency, then the notification history is reset.
You might not receive an alert notification as soon as the alert condition is met
because of the hour or minute value that is set in the Query the system every
field in the designer. For example, suppose that you set the value in the Query
599
the system every field to 1 day. If the alert condition is met one hour after the
system check is done, then it will be another 23 hours before the system checks
for the alert condition again and sends an alert notification.
Contact your system administrator for additional assistance.
Resolutions:
n If an error occurs during exporting, then in the Export or Save As window,
select either the Save as: Tab-Separated Values (*.tsv) or the Save as:
Comma-Separated Values (*.csv) option to create a data file.
n If you see character codes displayed in a file that has been exported to
Excel, then re-open the exported file in Excel, and save it without any
changes. The character codes are removed from the file.
Resolution: If a graph object that you add to a report does not have the desired
attributes, try creating a custom graph object in the SAS Visual Analytics Graph
Builder (the graph builder). For example, suppose the data labels for a dual axis
bar-line graph are not the colors that you want. You can create a dual axis barline graph in the graph builder and specify the font color for the data labels.
601
Appendix 9
Using URL Parameters to View a
Report
If guest access is configured for the SAS Visual Analytics Viewer, you can use
this URL: http://host/SASVisualAnalyticsViewer/VisualAnalyticsViewer/guest.jsp.
However, to log on and display a single report using guest access, you can use
a URL such as this one (which has parameters to specify the name and location
of the report): http://host/SASVisualAnalyticsViewer/
VisualAnalyticsViewer_guest.jsp?reportName=My+Report&reportPath=/Shared
+Data/VA+Reports/&appSwitcherDisabled=true. This second URL is useful for
tasks such as using an <iframe> tag to incorporate a single report within another
web application because the SAS Visual Analytics application bar, menu bar,
and toolbar are not included.
The following table lists the parameters that can be included in the second URL:
Parameter
Description
reportName
Specifies the name of the report that you want to view. This
parameter is required if you are accessing a specific report
through a URL.
reportPath
Specifies the path to the report that you want to view. This
parameter is required if you are accessing a specific report
through a URL.
appSwitcherDisabled
commentsEnabled
propertiesEnabled
reportViewOnly
Description
reportContextBar
Enables all of the menu options for the report. The default
value is true. If reportContextBar is false, then it is implied
that both propertiesEnabled and commentsEnabled are
false, and the right pane is not added to the viewer. This
parameter can be used only in the modern viewer.
Parameters are specified in the URL as a sequence of name and value pairs
using query string syntax. The URL specifies your server, an absolute path to
SAS Visual Analytics, and the query string (following the question mark
character). Each parameter name in the query string is separated from the next
value by an equal sign (=). Multiple name and value pairs are separated by
ampersand characters (&). In this example, reportName=My+Report is the
parameter that specifies the name of the report. The second name and value
pair (reportPath=/Shared+Data/VA+Reports/) is the parameter that
specifies the path to that report. The third name and value pair
(appSwitcherDisabled=true) disables the application bar. It must be present
if you are displaying the report in an <iframe> tag.
There are special rules for formatting name and value pairs in a URL. Special
characters (such as most punctuation characters, including spaces) in a value
must be URL-encoded. A space can be encoded as a plus sign (+) or %20.
Other characters are encoded using the %nn convention, where nn is the
hexadecimal representation of the character in the ASCII character set. In the
previous example, the value /Shared+Data/VA+Reports/ actually identifies
the report path /Shared Data/VA Reports/. The spaces in the names are
encoded as plus signs (+).
The reportName and reportPath parameters must be specified in the URL. The
reportName parameter specifies the name of the report that you want to view
(for example, My Report). The reportPath parameter specifies the path to that
report (for example, /Shared Data/VA Reports/).
Note: You can use these parameters with the standard viewer URL that
requires login credentials (http://host/SASVisualAnalyticsViewer/
VisualAnalyticsViewer.jsp). For example, you can use http://host/
SASVisualAnalyticsViewer/VisualAnalyticsViewer.jsp?reportViewOnly=true to
hide the banner.
URL parameters can be used to specify values for report parameters, such as
display rules, filters, ranks, and aggregated measures.
Note: You must know the exact name of the parameter and the valid values for
that parameter if you are going to include the parameter in your URL or change
its values.
603
Appendix 10
Twitter Data Details
The schema for the imported tweets is shown in the following table:
Column Name
Column Type
Length
Description
author
Character
128
authordescription
Character
1024
authorfavouritecount
Numeric
authorfollowercount
Numeric
authorfriendcount
Numeric
authorid
Numeric
authorimageurl
Character
1024
authorlang
Character
The BCP 47 code for the authors selfdeclared user interface language.
authorlocation
Character
128
authorname
Character
128
authortimezone
Character
256
authorurl
Character
1024
body
Character
1024
deviceinfo
Character
1024
Column Type
Length
Description
docid
Numeric
doclatitude
Numeric
doclongitude
Numeric
isretweet
Numeric
referenceauthor
Character
128
referenceauthorid
Numeric
publisheddatetime
Numeric
publisheddatetimestr
Character
34
tags
Character
150
listoflinks
Character
1024
mentionedusernames
Character
256
mentionedusers
Character
256
retweetcount
Numeric
605
The schema for tweets is different from the schema that Twitter uses for tweets,
users, and entities. The following list provides URLs to the information from
Twitter for comparison purposes:
n Tweets: https://dev.twitter.com/overview/api/tweets
n Users: https://dev.twitter.com/overview/api/users
n Entities: https://dev.twitter.com/overview/api/entities
607
Appendix 11
About the Classic SAS Visual
Analytics Home Page
Your First Look at the Classic SAS Visual Analytics Home Page . . . . . . . . . . . 607
Manage Content on the Classic Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Manage Collections on the Classic Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612
Working with the Right Pane on the Classic Home Page . . . . . . . . . . . . . . . . . . .
About the Right Pane of the Classic Home Page . . . . . . . . . . . . . . . . . . . . . . . . . .
Hide Content in the Right Pane of the Classic Home Page . . . . . . . . . . . . . . . . .
Show Content in the Right Pane of the Classic Home Page . . . . . . . . . . . . . . . .
Manage Links in the Right Pane of the Classic Home Page . . . . . . . . . . . . . . . .
613
613
613
614
614
Discover Details Using the Object Inspector on the Classic Home Page . . . . 615
Add Comments to Objects on the Classic Home Page . . . . . . . . . . . . . . . . . . . . . 617
Specifying Your Preferences for the Classic Home Page . . . . . . . . . . . . . . . . . . .
Specify Global Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specify the SAS Visual Analytics General Preferences . . . . . . . . . . . . . . . . . . . . .
Specify Your Preferences for the Classic Home Page . . . . . . . . . . . . . . . . . . . . . .
Specify Other Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
618
618
619
619
620
608 Appendix 11 / About the Classic SAS Visual Analytics Home Page
Here are the features of the classic home page:
Figure A11.1
1 The application bar enables you to return to the classic home page and to
access other parts of SAS Visual Analytics and other SAS applications that
integrate with the classic home page. You can access your recently created
or viewed reports, explorations, stored processes, stored process reports,
data queries, or other objects in your recent history. Buttons are displayed for
each open application.
2 The menu bar enables you to access task options, such as creating reports,
create a new report, or prepare data, depending on your role, the associated
capabilities, and your SAS software licenses. Other installed SAS
applications might add actions to the Create Content area.
4 The My Content area lists any metadata objects that are created by a
Your First Look at the Classic SAS Visual Analytics Home Page
609
5 The Common Actions section provides an alternate way for you to access
features and other installed SAS applications. For more information, see
Working with the Right Pane on the Classic Home Page on page 613.
6 The Links section provides links to pages that you have bookmarked. For
more information, see Working with the Right Pane on the Classic Home
Page on page 613.
7 The SAS Resources section provides links to the SAS website, the SAS
Visual Analytics User Community, and to social media. For more information,
see Working with the Right Pane on the Classic Home Page on page 613.
Note: Guest access does not provide individualized features on the classic
home page, such as history or alerts. By default, a user with guest access has a
Basic role and can access only the classic home page and the viewer. For more
information, see Guest Access on page 7.
If you have the Theme Designer for Flex: Administration role in SAS
Management Console, you can access the SAS Theme Designer for Flex from
the More Actions item on the menu bar or in the Common Actions section.
Here is an example of the menu bar with the More Actions item.
Figure A11.2 Classic Home Page Menu Bar with the More Actions Item
Once you start using the classic home page, thumbnails enable you to open
explorations, reports, stored processes, stored process reports, tables, queries,
and folders that you have created or opened. The default view is secure, generic
thumbnails that represent the content. An administrator can set a property that
specifies the use of thumbnails that are shared and unique to each object.
Shared thumbnails are unique for each individual report object, so each report
looks different from other reports, and each exploration looks different from other
explorations.
Generic thumbnails are distinguished by content type only. All reports look the
same, but they appear different from explorations. Here are examples of the
generic thumbnails that you might see on the classic home page:
Figure A11.3 Generic Thumbnails for an Exploration, a Report, and a Stored Process
You can choose to view the content on the classic home page as a list. To
change your view, click
on the menu bar, and then select Thumbnail or List.
The default is Thumbnail.
610 Appendix 11 / About the Classic SAS Visual Analytics Home Page
Here is an example of the list view for the classic home page:
Figure A11.4
List View
For more information about other parts of the SAS Visual Analytics interface,
see the following topics:
n Your First Look at the Data Builder on page 36
n Your First Look at the Explorer on page 107
n Your First Look at the Designer on page 298
611
Description
Enables you to create a new favorites group for your reports, explorations,
stored processes, stored process reports, tables, and queries. Folder names
cannot be longer than 60 characters. This icon is available only when
Favorites is selected.
Enables you to add a report, exploration, stored process, stored process
report, table, or query to your list of favorites. You can also create or add a
collection of favorites.
Options
When you select a report, exploration, stored process, stored process report,
table, or query in the Manage My Content window, the details such as the name
and location of that item are displayed. Favorite groups are displayed only in the
tree on the left side of the Manage My Content window.
612 Appendix 11 / About the Classic SAS Visual Analytics Home Page
Click Browse to select a Location for the collection. The Choose a Location
window is displayed.
Select an existing folder or create a new one. Click OK to return to the
Create a Collection window.
Note: When you create a new collection, you can add items to it from within
the Manage My Content window only if the collection is a root collection in
My Collections.
613
(Optional) If you opened the Create a Collection window from the object
inspector, then you can clear the Add the new collection to My Content
check box. This means that the new collection is not displayed on the classic
home page next to the Favorites link.
Click Add. If you are in the Manage My Content window, then the new
collection is displayed on the left.
614 Appendix 11 / About the Classic SAS Visual Analytics Home Page
To hide or reorder content in a specific section, position your mouse pointer over
the section name, and click
Note: You cannot hide or reorder the first three Common Actions (which are
Open, Manage My Content, and Edit Preferences).
To hide content in the right pane using the menu bar:
1
Click
beside
Click
beside
Note: You cannot hide or reorder the first three Common Actions (which are
Open, Manage My Content, and Edit Preferences).
If you have the Administer Hub capability, then you will also see a Manage
Shared View of Right Pane menu item when you click
beside
on the
menu bar. When you select this menu item, the Manage Shared View of the
Right Pane window is displayed. Administrators can use this window to hide
sections, restore sections, and add links in the right pane. Links that are added
using the Manage Shared View of the Right Pane window are shared links that
anyone can see.
Discover Details Using the Object Inspector on the Classic Home Page
615
You can add, edit, and delete links in the Links section that is displayed in the
right pane.
To add new links, position your mouse pointer over the Links section heading in
the right pane to activate the , which opens the Add Link window. Links that
are added using the Add Link window are private and visible only to the user
who created them. Click
to open the Manage Links window, where you can
add, delete, re-order, and hide links. You cannot delete shared links that were
added using the Manage Shared View of the Right Pane window.
If you have an Administration role, then you can click
beside
on the menu
bar, and select Manage Shared View of Right Pane. The Manage Shared View
of the Right Pane window is displayed. You can use this window to add links to
the right pane that are shared with other users.
616 Appendix 11 / About the Classic SAS Visual Analytics Home Page
Here is an example of what you might see in the object inspector for a report
that has been viewed:
Figure A11.6 The Object Inspector on the Classic Home Page
You can use the toolbar in the object inspector to do one or more of the following
tasks (which are available depending on your role and capabilities):
n View a report, which opens the report in SAS Visual Analytics Viewer (the
viewer).
n Edit a report, which opens the report in SAS Visual Analytics Designer (the
designer) so that you can edit or change the objects in the report.
n Open an exploration, which displays SAS Visual Analytics Explorer (the
explorer). The Open link is also available for stored processes, stored
process reports, queries, and folders.
n Create Report for a table, which displays the designer.
n Explore Data for a table, which displays the explorer.
n Click Collections to select an existing collection or to create a new
to add the object to your list of favorites. When the star icon is
yellow, it indicates that the object is in your list of favorites. Click
to
remove the object from your list of favorites.
n Click
to set the object as the initial screen when you start SAS Visual
Analytics. When the icon is blue, it indicates that the object is set as your
initial screen. Click
to remove this initial screen setting.
617
for all of the SAS reports, queries, tables, stored processes, and stored
process reports that have been created or modified by that user.
n Click Comments to add or view comments. Any user who has the Add or
Click Comments in the lower right corner to expand the object inspector.
Figure A11.7
618 Appendix 11 / About the Classic SAS Visual Analytics Home Page
4
Click Post to add your comment. The Comments link in the object inspector
updates to show that there is a comment.
(Optional) Click
4 (Optional) Click
5
Click Post to add your comment. The Comments link in the object inspector
updates to show that there is a comment.
Note: To edit another users comments or to delete comments, you must belong
to the predefined role Comments:Administrator. This role includes the
capabilities of editing or deleting comments.
To search for a comment:
1
Enter the word or phrase that you want to search for in the search field.
Press Enter.
Click either
or Edit Preferences on the classic home page. The
Preferences window is displayed.
Note: If you are in the data builder, the explorer, the designer, or the viewer,
then select File Preferences to open the Preferences window.
619
Note: If you change the User locale preference, then you must sign out
and sign in to SAS Visual Analytics for the change to take effect.
TIP If you receive distributed reports, it is recommended that you set
the User locale preference. The report distribution feature does not
have access to the browser locale, so it depends on the locale
specified for the User locale. For more information, see Distributing
Reports on page 470.
n Select a Theme to change the color scheme and other visual settings for
web applications.
n Select Override settings for focus indicator to change the color,
Click either
3 Specify a value for Show this number of recent items. There is a minimum
Click either
Select an option from the Initial screen drop-down list. The available options
depend on your role and capabilities.
TIP If you select A specific object, then you can use the Choose an Item
window to choose one content type (for example, SAS reports (2G), visual
620 Appendix 11 / About the Classic SAS Visual Analytics Home Page
explorations, or a SAS Visual Statistics project) for your initial screen.
(SAS Visual Statistics is licensed separately.) If you select a report in the
Choose an Item window, then you might be able to click
beside the OK
button to select either View (Visual Analytics Viewer) or Edit (Visual
Analytics Designer). The available content types and the options for
opening reports depend on the SAS products that your site has licensed
and how they are configured.
4
621
n Keywords
n Last Modified
n Title
The search field on the menu bar supports the following types of searches:
n single word
n multiple word
n in-word wildcards
considered together as a phrase for the search. For example, suppose that
you search for "Sample Report. The search matches Sample Report 1 and
A Sample Report, but not Sample Values Report or Sample-Report.
n the AND operator
For example, if you specify A AND B, then only documents that contain
both A and B are returned.
n plus (+) and minus (-) syntax
The plus (+) sign and minus (-) sign are prefix operators. This means that the
operator precedes the search term that is required or excluded, rather than
following it. For example:
o
Specifying 2012 2013 2014 matches documents that contain any of the
three terms.
Specifying +2012 +2013 +2014 matches only documents that contain all
three terms.
Here are some considerations for searching from the classic home page:
n Single- and multiple-word searches that are plain text have a wildcard
appended to them. For example, if you search for the word sample, then it is
converted to sample*. This means that you get different results than if you
entered sample, +sample, or *sample*.
n The search is not case sensitive.
n Up to 5000 items can be returned in a single search. If your search results
exceed 5000 items, then the first 5000 items appear, and a message is
displayed at the top of the Search Results window. The message tells you
how many results matched your search and how many have been displayed.
Narrowing your search using the search field enables the relevant search
results to be displayed. When you submit a new search that returns fewer
than 5000 items, you can see all the search results.
n Search results on the classic home page are not ranked. In the workspace,
you can use the Sort by drop-down list to specify that you want the list of
622 Appendix 11 / About the Classic SAS Visual Analytics Home Page
items to sort by Alphabetical ascending, Alphabetical descending, Date
ascending, or Date descending. The default is Alphabetical ascending.
n A search string must be shorter than 4,000 characters.
Suppose that you search for the word sample. All words that contain sample at
the beginning are displayed in the workspace. (For example, a word that starts
with samples is displayed.) Here is an example of the search results:
Figure A11.8 Search Results on the Classic Home Page
623
you can search for Stored process report, SAS report (2G), Table, Stored
process, Visual data query, or Visual exploration. Depending on the SAS
products that you have licensed at your site, other SAS object types might
appear in the Type pane. The default is All object types.
The available types are determined by the capabilities that your system
administrator has assigned. For example, you might see only the All, SAS
report (2G), Table, and Stored process check boxes in the Type pane.
If you select all of the check boxes for the individual types, then the check
boxes clear, and the All check box is selected automatically. If you clear the
check boxes for all of the types, then the All check box is selected
automatically.
Note: If your role permits you to see only one type, then you will not see the
Type pane.
n The Created or Last Modified By pane enables you to search for a specific
You can refine the search to a specific date range by specifying a From date,
a To date, or both. If the initial results set represents only a single day, then
the From and To fields are hidden to conserve visual space.
The dates are time zone dependent. If your company has offices in multiple
time zones, then the date modified time stamp on the object reflects the time
at which it was saved using the current users time zone. For example, if a
report was modified by a user on January 3 at 2:00 a.m. in New York,
another user in California sees that it was modified on January 2 at 11:00
p.m.
At the top of the workspace, you can see the breadcrumbs for the selections that
you have made to refine your search. Breadcrumbs change as you modify the
selections in the Type, Created or Last Modified By, and Date Modified
panes. The breadcrumbs also show any search strings that you entered in the
Search within results field.
Suppose that you search for the word sample. Then, you refine the search
results by selecting Stored process for Type. All stored processes that contain
624 Appendix 11 / About the Classic SAS Visual Analytics Home Page
the word sample are displayed in the workspace. Here is an example of the
refined search results:
Figure A11.9 Refined Search Results on the Classic Home Page
625
Glossary
Apache Hadoop
a framework that allows for the distributed processing of large data sets
across clusters of computers using a simple programming model.
bar chart
a chart that consists of a grid and some vertical or horizontal columns (bars).
Each column represents quantitative data.
bar-line chart
a bar chart with an overlaid line graph.
box plot
a graphical display of five statistics (the minimum, lower quartile, median,
upper quartile, and maximum) that summarize the distribution of a set of
data. The lower quartile (25th percentile) is represented by the lower edge of
the box, and the upper quartile (75th percentile) is represented by the upper
edge of the box. The median (50th percentile) is represented by a central line
that divides the box into sections. The extreme values are represented by
whiskers that extend out from the edges of the box.
calculated column
a column that does not exist in any of the tables that are accessed, but which
is created as a result of a column expression.
capability
an application feature that is under role-based management. Typically, a
capability corresponds to a menu item or button. For example, a Report
Creation capability might correspond to a New Report menu item in a
reporting application. Capabilities are assigned to roles.
cell
a distinct rectangular subregion of a graph that can contain plots, text, or
legends.
choropleth map
a two-dimensional map that uses color and fill pattern combinations to
represent different categories or levels of magnitude.
co-located data provider
a distributed data source, such as SAS Visual Analytics Hadoop or a thirdparty vendor database, that has SAS High-Performance Analytics software
installed on the same machines. The SAS software on each machine
processes the data that is local to the machine or that the data source makes
available as the result of a query.
626 Glossary
crosstab
a two-dimensional table that shows frequency distributions or other
aggregate statistics for the intersections of two or more category data items.
In a crosstabulation table, categories are displayed on both the columns and
rows, and each cell value represents the data result from the intersection of
the categories on the specific row and column.
data brushing
a feature that enables you to select data values in a report object or
visualization, and to readily see the corresponding data values highlighted in
other report objects or visualizations.
data item
an item in a data source that is either a logical view of a data field or a
calculation. The author of a report decides which data items to use in a
particular section of a report. There are three types of data items:
hierarchies, categories, and measures.
data source
a table, view, or file from which you will extract information. Sources can be
in any format that SAS can access, on any supported hardware platform. The
metadata for a source is typically an input to a job.
dependency
a trigger condition that must be met before a job can run in a scheduled flow.
deployed job
a job that has been saved in a deployment directory and can be scheduled.
deployment directory
the location for generated SAS DATA step programs that will be executed by
the batch server as part of a scheduled flow.
file event
a file-related occurrence that is used as a trigger in a scheduled flow. For
example, a file event occurs when a scheduling server determines that a
specified file exists.
filter
specified criteria that are applied to data in order to identify the subset of data
for a subsequent operation, such as continued processing.
flow
a set of jobs and associated dependencies that is scheduled in the Schedule
Manager plug-in in SAS Management Console.
heat map
a graphical representation of data where the values taken by a variable in a
two-dimensional map are represented as colors.
job
a collection of SAS tasks that can create output.
Glossary 627
job event
a job-related occurrence that is used as a trigger in a scheduled flow. For
example, a job event occurs when the scheduling server issues a command
to determine whether a job ran successfully.
job flow
a group of jobs and their dependencies, including dependencies on other
jobs, on files, or on specified dates and times.
join condition
a combination of join keys and a comparison operator.
list table
a two-dimensional representation of data, in which the data values are
arranged in rows and columns.
local data
data that is accessible through the file systems on a computer. This includes
data on hard drives or available through network file systems.
locale
a setting that reflects the language, local conventions, and culture for a
geographic region. Local conventions can include specific formatting rules for
paper sizes, dates, times, and numbers, and a currency symbol for the
country or region. Some examples of locale values are French_Canada,
Portuguese_Brazil, and Chinese_Singapore.
localization
the process of adapting software for a particular geocultural region (locale).
Translation of the user interface, system messages, and documentation is a
large part of the localization process.
pie chart
a circular chart that is divided into slices by radial lines. Each slice represents
the relative contribution of each part to the whole.
query
a set of instructions that requests particular information from one or more
data sources.
remote data
data that is not accessible through the file systems available to a computer.
To use remote data, you must direct a SAS server to access the data that is
available through file systems on the remote machine.
report
output that is generated by running custom SAS code against the data in
your project.
role
a set of capabilities within an application that are targeted to a particular
group of users.
SAS Management Console
a Java application that provides a single user interface for performing SAS
administrative tasks.
628 Glossary
SAS Stored Process
a SAS program that is stored on a server and defined in metadata, and which
can be executed by client applications. Short form: stored process.
scatter plot
a two- or three-dimensional plot that shows the joint variation of two (or
three) variables from a group of table rows. The coordinates of each point in
the plot correspond to the data values for a single table row (observation).
scatter plot matrix
a grid of scatter plots showing pairwise combinations of multiple numeric
variables.
scheduling server
a server that runs deployed jobs in a scheduled flow. Before running a job,
the scheduling server determines when the schedule for the deployed job as
well as all of the dependencies for the job have been met.
source
See data source
subquery
a query-expression that is nested as part of another query-expression.
Depending on the clause that contains it, a subquery can return a single
value or multiple values.
time series
an ordered sequence of values of a variable that are observed at equally
spaced time intervals.
Unicode
a 16-bit encoding that is the industry standard for supporting the interchange,
processing, and display of characters and symbols from most of the world's
writing systems.
user role
See role
UTF-8
a method for converting 16-bit Unicode characters to 8-bit characters. This
format supports all of the world's languages, including those that use nonLatin 1 characters.
visual exploration
a metadata object that contains visualizations and data settings that are
saved from a session of SAS Visual Analytics Explorer.
visualization
an interactive visual representation of data. A visualization can be a table, a
chart, or a geographic map.
waterfall chart
a form of data visualization that is used to understand or explain the
cumulative effect on an initial value of sequentially introduced positive or
negative values. Usually, the initial and the final values are represented by
whole columns, and the intermediate values are denoted by floating columns.
629
Index
A
adding
columns in custom graphs 485
columns in the data builder 43, 53
comments in the designer 469
info windows 458
plots to a custom graph 484
report sections 458
adding a report job 471
advanced report filters 418
aggregated measures 124, 357
adding 377
distinct count 363
editing 379
percentage of total 363
aggregation types 565
aggregations 55, 115, 370, 565
adding to multiple columns 57
alerts 346, 527
adding 347
deleting 348
editing 348
preference 303
subscribe 527
unsubscribe 527
alphanumeric categories 358
application themes 9
authenticated users 7
automatic charts 155
axes
customizing 151
locking 151
transferring 151
B
band plots 548
bar charts 158, 539
basic 414
basic report filters 414
binning interval 327
box plots 180
brush 526
bubble change plots 545
bubble plots 165, 544
C
calculated columns 54
calculated data items 123, 358, 374,
567
adding 375
compound annual growth rate
(CAGR) 587
deleting 372
duplicating 361
editing 377
canvas 301
capabilities in SAS Visual Analytics 8
category data items 358
distinct counts 363
sort options 372
changing data sources 353
charts
bar charts 539
butterfly charts 552
dual axis bar charts 546
dual axis bar-line charts 547
dual axis line charts 546
line charts 540
pie charts 541
schedule charts 550
targeted bar charts 540
waterfall charts 540
classic home page 607
searching 620
classic viewer
adding comments 525
alerts 527
brushing 526
drilling 526
filtering 526
opening reports 523
preferences 528
viewing links 527
color gradients 151
630 Index
column expressions 54
comments
for explorations 229, 525
for reports 469, 525
for visualizations 229
comparative time series plots 542
compound annual growth rate 587
conditions for filters 589
connecting to library server
Android 520
iPad 519
controls 328, 554
button bar 329, 554
creating report prompts 330
creating section prompts 331
drop-down list 329, 554
list 329, 554
properties 329
reordering report prompts 331
reordering section prompts 332
slider 329, 554
styles 330
text input 329, 554
correlation matrices 187
crosstabs 157, 320, 538
exporting data from 467
percentage of total 364
sorting data in 389
CSV files 13
custom categories 119, 366
custom geography data items 372
custom graph types
band plots 548
bar charts 539
bubble plots 544
line charts 540
needle plots 548
pie charts 541
scatter plots 542
schedule charts 550
series plots 543
step plots 549
time series plots 542
treemaps 545
vector plots 550
waterfall charts 540
custom graphs 343
about the graph builder 479
about the template gallery 480
adding plots 484
adding to the designers Objects tab
492
building 481
changing the order of graph
elements 497
creating a data-driven lattice 489
D
dashboard indicator
See gauges
data
See also data items
See also data sources
database table 24
exporting from crosstabs 467
Facebook 29
formats 115
Google Analytics 30
local data file 17
properties 114
self-service 13
Twitter 31
data brushing 153
data items
See also category data items
aggregated measures 357
assigning 359
automatic assignment 361
calculated 358, 374
create custom category 366
date time 358
deleting 372
derived 126
distinct count 363
duplicating 361
geography 132, 359, 372
grouping on Data tab 355
hiding 354
hierarchies 356, 359
in a report 357
measure data items 359
modifying format 368
Index
631
E
e-mailing
explorations 217
reports 462
explorations 111
exporting 466
data from crosstabs 467
data from report objects 466
data from visualizations 216
graph data 468
list table data 466
PDF output 214
report data 466
F
filter controls 328
filtering
continuous data 205
discrete data 204
filters 200, 413, 427, 526
See also filters, advanced
See also filters, basic
See also filters, data source
filters, advanced 207, 418
creating 207, 418
deleting 421
editing 207, 420
filters, basic 202, 414
creating 203, 414
deleting 418
editing 206, 417
visual filter controls 204
filters, data source 208, 421
creating 208, 421
deleting 422
editing 209, 422
filters, post-aggregate 423
creating 423
deleting 425
editing 424
formats
modifying for data items 115, 368
modifying user-defined 369
full-screen view 307
632 Index
G
gauges
bullet 557
dial 558
display rules 409
properties 341
shared display rules 410
slider 557
speedometer 558
styles 342
thermometer 557
geo bubble maps 555
geo coordinate maps 555
geo maps 184, 339
geo bubble maps 339
geo coordinate maps 339
geo region maps 339
properties 340
styles 340
geo region maps 556
geography data items 132, 359, 372
graph builder 479
preferences 492
graph template gallery 480
graph-level display rules 405
using a color-mapped value 407
using an expression 405
graphs
See also custom graph types
bubble change plots 545
bubble plots 544
butterfly charts 552
comparative time series plots 542
custom graphs 479
displaying results 326
dot plots 551
exporting data from 468
numeric series plots 544
pie charts 541
properties 326
scatter plots 542
series plots 543
stock high-low plots 552
stock volume and volatility plots 553
styles 328
time series plots 542
treemaps 545
vector plots 550
group by variables 56
grouping
items on Data tab 355
guest access
SAS Visual Analytics 7
viewer 528
H
heat maps 182
hiding
data items 354
report objects 319
hierarchies 355
creating 219, 356
deleting 357
editing 356
from date and time items 220
hierarchy data items 359
histograms 178
horizontal containers 332
properties 333
styles 333
I
image files, exporting as 216
images 335
inserting into a report 335
properties 336
importing
data 13
report objects 311
reports 311
info windows 457
adding 458
deleting 460
duplicating 459
linking to 443
renaming 459
reordering 459
information maps
limitations and restrictions 84
interactions 427, 428, 526
data brushing 427, 433
deleting 440
example 446
filters 427, 428
mapping data sources 438
interface
designer 297
J
jobs, in SAS Data Integration Studio
97
joins 44
automatic join feature 66
explicit 65
Index
L
lattice 489
about 498
adding rows and columns 499
creating 485
moving graph elements 499
moving rows and columns 500
removing cells 500
removing graph elements 500
removing rows and columns 500
resizing rows and columns 499
layouts
See report layouts
libraries 44
line charts 160, 540
linking
mapping data sources 438
links 441
deleting 446
editing 446
example 446
text 445
to a section 443
to an external URL 444
to an info window 443
to another report 442
viewing 527
list control 329, 554
list tables 320, 538
exporting data from 466
sorting data in 389
sparklines 323
localizing reports 474
logging off 7
M
managing report distributions 474
map data sources 438
measure data items 359
measures
details 354
modifying aggregation of 370
percentage of total 363
metadata view for stored process 338
Microsoft Excel
exporting data from report objects
466
import spreadsheets 13
633
N
needle plots 548
network diagrams 168
numeric series plots 544
O
object inventory list 308
opening
mobile viewer 519
reports 312
operators
for calculated items 567
overlaid plots
See overlays
overlays
changing the order of 497
creating 484
removing 498
overview axis 502
P
parameters 121, 453
creating 454
deleting 455
editing 455
using in the designer 453
partitioning tables
ORDERBY= option 78
PDF, exporting as 214
percentage of total 363
pie charts 541
pivot by 57
plots
adding as an overlay 484
adding as new rows and columns
485
634 Index
band plots 548
box plots 180
bubble change plots 545
bubble plots 165, 544
changing the order of 497
comparative time series plots 542
creating a data-driven lattice 489
dot plots 551
dual axis time series plots 547
needle plots 548
numeric series plots 544
removing 498
scatter plots 163, 542
selecting 496
series plots 543
shared data roles 504
step plots 549
stock high-low plots 552
stock volume and volatility plots 553
time series plots 542
vector plots 550
post-aggregate report filters 423
precision layout 307
preferences 39
alert notifications 303
default view for reports 304
for the classic viewer 528
for the data builder 39
for the designer 303
for the graph builder 492
report theme 304
printing reports 463
prompt containers 332
properties
controls 329
custom graphs 501
gauges 341
geo maps 340
graphs 326
horizontal containers 333
images 336
overview axis 502
reports 308
stack containers 333
stored process 337
text 334
vertical containers 333
word clouds 342
Q
query, cancel 393
R
ranks
adding to reports 449
deleting from reports 452
for reports 449
for visualizations 149
redo history 42
refreshing
data sources 353
reports 313
removing data sources 353
renaming
data items 362, 367
info windows 459
report sections 459
reports 310
reordering
info windows 459
report sections 459
repairing reports 597
report data, exporting 466
report filters 413
See also filters
advanced 418
basic 414
data sources 421
post-aggregate 423
report layouts
precision 307
tiled 307
report links 441
report objects 316
alerts 346
container types 332
controls 328, 554
duplicating 346
exporting data 466
gauges 341
graphs 326
hiding 319
inserting 318
moving 460
other types 334
showing 319
tables 320
viewing information about 525
report prompt 328
report prompts
creating 330
reordering 331
report sections 457
adding 458
deleting 460
duplicating 459
Index
635
S
Sankey diagrams 172
SAS data sets 13
SAS Visual Analytics 3
accessibility features 9
authenticated users 7
benefits of 4
capabilities 8
guest access 7
how it works 4
roles 8
themes 9
user community 5
scatter plots 163, 542
schedule charts 550
scheduling data queries 91
searching
for data items 362
from the classic home page 620
section prompt 329
section prompts
creating 331
reordering 332
sections 457
adding 458
deleting 460
duplicating 459
linking to 443
moving 460
renaming 459
reordering 459
series plots 543
shared display rule 410
showing
data items 354
report objects 319
slider control 329, 554
slider gauges 557
slow query 393
sorting
custom 391
data in crosstabs 389
data in graphs 390
data in list tables 389
in reports 388
items on Data tab 355
sparklines 320, 323
speedometer gauges 558
stack containers 332
636 Index
properties 333
styles 333
step plots 549
stock high-low plots 552
stock volume and volatility plots 553
stopping scheduled data queries 92
stored processes 337, 525
metadata view 338
properties 337
styles
controls 330
gauges 342
geo maps 340
graphs 328
horizontal containers 333
tables 322
text 335
vertical containers 333
word clouds 343
subquery
joining 44
subtotals 320, 322
U
undo history 42
user
capabilities 8
user interface
designer 297
user-defined formats
modifying 369
user-defined lattice
See lattice
users
authenticated 7
guest 7
V
T
table-level display rules 397
using a color-mapped value 402
using a gauge 400
using an expression 397
tables 156
See also crosstabs
joining 44
list tables 320, 538
styles 322
tablet view 307
tabs 299
designers left pane 299
designers right pane 300
targeted bar charts 540
template gallery
See graph template gallery
text 334
properties 334
styles 335
text input control 329, 554
themes
application 9
report 302
thermometer gauges 557
tiled layout 307
time category data items 358
time series plots 542
totals 320, 322
W
waterfall charts 540
wide-screen tablet view 307
word clouds 194, 342
properties 342
styles 343