Quantrix Modeler User Guide
Quantrix Modeler User Guide
Version 4.0
© 2003-2011 subx, inc. All rights reserved.
Quantrix® Modeler Version 4.0User Guide.
This manual, as well as the software described in it, is furnished under license and may be used or copied only in accordance with the terms
of such license. The content of this manual is furnished for informational use only, is subject to change without notice, and should not be
construed as a commitment by subx, inc. subx, inc. assumes no responsibility or liability for any errors or inaccuracies that may appear in this
book.
Except as permitted by such license, no part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form
or by any means electronic, mechanical, recording, or otherwise, without the prior written permission of subx, inc.
Any references to company names in sample templates are for demonstration purposes only and are not intended to refer to any actual
organization.
Quantrix, the Quantrix logo, and Quantrix Modeler are trademarks of subx, inc. Unauthorized duplication is a violation of applicable law.
subx, inc., 428 Fore Street, Portland, Maine 04101, USA
“Excel”, “Vista”, and “Word” are registered trademarks of Microsoft Corporation. The names of other actual companies and products
mentioned herein may be the trademarks of their respective owners.
Notice for U.S. government end-users or persons acquiring the software and documentation on behalf of the U.S. Government, to which the
following provisions apply: The U.S. Government acknowledges that the software and documentation were developed at private expense
and no part of them is in the public domain. The software and documentation are “commercial items,” as that term is defined at 48 C.F.R.
§2.101, consisting of “commercial computer software” and “commercial computer software documentation,” as such terms are used in 48
C.F.R. §12.212 or 48 C.F.R. §227.7202, as applicable. Consistent with 48 C.F.R. §12.212 or 48 C.F.R. §§227.7202-1 through 227.7202-4, as
applicable, the commercial computer software and commercial computer software documentation are being licensed to U.S. Government
end-users (A) only as commercial items and (B) with only those rights as are granted to all other end-users pursuant to the terms and condi-
tions set for the standard commercial agreement for this software. Unpublished rights reserved under the copyright laws of the United
States.
Table of Contents i
Table of Contents
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . i
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
To the Reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Conventions Used in this Guide . . . . . . . . . . . . . . . . . . . . . . . xiv
Icons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Special Fonts and Characters . . . . . . . . . . . . . . . . . . . . . .xv
Choosing > From > Menus . . . . . . . . . . . . . . . . . . . . . . . .xv
Dragging Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . .xv
Installing and Updating Quantrix. . . . . . . . . . . . . . . . . . . . . . xvi
Activating Quantrix . . . . . . . . . . . . . . . . . . . . . . . . . . xvi
Automatically Checking for Updates to Quantrix . . . . . . . . . . xvi
Version 4.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Other Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xviii
www.quantrix.com. . . . . . . . . . . . . . . . . . . . . . . . . . .xviii
Electronic User Guide . . . . . . . . . . . . . . . . . . . . . . . . .xviii
Quantrix Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Sample Models and Templates . . . . . . . . . . . . . . . . . . . . xix
Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .399
Introduction
To the Reader
Welcome to the Quantrix Modeler User Guide. This guide is written for people
who are familiar with personal computers, and who have experience using a
traditional 2D spreadsheet program.
This guide helps you become proficient with Quantrix in two ways:
• Chapters 1-3 introduce you to concepts, interaction techniques, and
modeling methodologies that are unique to Quantrix.
• Chapters 4-13 and the appendices provide the detailed reference
information that you will need as you build your own models.
The fastest way to become comfortable and efficient with Quantrix, is to
work through the first three chapters. As your experience grows, you will
use the detailed information that is available in the rest of this guide.
Icons
This guide uses six alert icons:
Caution: Cautions alert you when taking a particular action (or failing
to do so) could yield an unexpected result.
Tip: Tips provide shortcuts or pointers that often help you accomplish a
task more quickly.
New: Indicates that the feature is new in the latest version of Quantrix
Modeler.
Dragging Objects
This guide often instructs you to drag an object, for example, “Drag the
category tile into the filter tray.” In this example, drag is shorthand for
“Position your cursor over the handle of the category tile, press and hold
down the left mouse button, move the category tile into the filter tray, and
then release the mouse button.”
Activating Quantrix
You typically activate Quantrix as the last step of the installation process. It
is possible to install Quantrix but not perform this final step, where you
provide your copy’s serial number either over the internet or by telephone.
If you completed the installation but did not yet activate Quantrix, you can
activate it by choosing Help > Activate Quantrix and then following the
on-screen instructions.
Version 4.0
Quantrix 4.0 offers three new major pieces of functionality.
Quantrix Qloud
With Quantrix 4, we are introducing a new thin client viewer application
and server component called the Quantrix Qloud. Now, you will be able to
upload Quantrix files to the Qloud server and share your models with select
individuals or make a public link available that anyone can access.
Scripting
Quantrix 4 also introduces scripting into the Quantrix Modeling environ-
ment. Scripting allows sophisticated users to author small programs that will
run within the context of a model.
New Calculation Strategy
Quantrix 4 implements calculation engine changes to decrease calculation
time and memory utilization while at the same time lay the groundwork for
a multi-threaded calculation process in a future Quantrix release. We are
very encouraged with the results from internal testing and external
customers. Calculation time improvements in the range of 25% to 80% are
being reported.
4.0 Documentation
Quantrix is currently working on integration of the 4.0 functionality changes
into the Quantrix User Guide. A future release of Quantrix Modeler will
include an updated help system.
The 4.0 changes are currently documented in the 4.0 User Guide PDF
Addendum found on the Products > Downloads > Documentation
section of Quantrix.com.
Other Resources
Our team is committed to providing the best possible resources to ensure
your satisfaction with Quantrix.
www.quantrix.com
The Quantrix web site provides both sales and support information. It
includes:
• live support chat
• product information and announcements
• downloadable updates and upgrades
• user forums where you can share experiences and ideas with other
Quantrix users
• answers to frequently asked questions (FAQs)
• a knowledge base of “Modeler Note” articles
• online tutorials for specific topics
• other contact information so you can reach us when you need us
The site is updated frequently, so be sure to visit often.
• Click the Back and Forward buttons above the navigation pane
to navigate between content that you have recently viewed.
• Print the content that is displayed in the content pane by clicking
the Print button above the navigation pane.
If preferred, you can download the latest version of this guide in PDF
format at www.quantrix.com/User_Guides.htm.
Tip: A PDF version of the User Guide can be found in the Quantrix
Modeler directory of your computer if the application is installed from a
CD.
Quantrix Tips
In the Learn section of the Quantrix Launch Panel, there is an option called
Quick Tips. Selecting this item opens a Quantrix Quick Tips window.
This window highlights the elements that distinguish Quantrix Modeler
from the traditional two-dimensional spreadsheet. Select one of the five
icons located along the top of the window to learn more about the key
elements of Quantrix.
You can bring up the Quantrix Tips window at any time by choosing Help
> Quick Tips.
Customer Support
To contact the Quantrix customer support team, email
[email protected] or call 1-207-775-0808.
Chapter 1
Test Driving a Model
Getting Oriented . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Changing the Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Adding an Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Adding a Category . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Entering Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Adding a Formula. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Displaying the Entire Model . . . . . . . . . . . . . . . . . . . . . . . . 15
Changing Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Filtering a Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Creating a Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Printing the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Getting Oriented
To begin your test drive, follow these steps:
1. Start Quantrix in one of these ways:
• Double-click the Quantrix Modeler icon ( ); depending on the
preferences that you chose during installation, it may be on your
desktop, applications folder or in a local directory.
• Choose All Programs > Quantrix > Quantrix Modeler.
2. The Quantrix Modeler Launch Panel opens as shown below.
Choose Sample Models... from the Open section of the panel.
modeling
matrix
table
item
category tile
formula
editor
Within the model window, you see one modeling matrix tab named Sales
Projections. The modeling matrix includes several elements.
• A table that contains rows and columns of labeled cells is located in
the upper left-hand corner.
• Two category tiles, labeled Product and Quarter, are located below the
table in the row tray; a third category tile, labeled Year, is located to
the right of the table in the column tray. Each category tile has a text
label that you can edit and a grey handle that you use to reposition it.
• The formula editor, located below the Product category tile, contains
three formulas that calculate the values presented in the table.
This model forecasts the sales of Widgets, Gadgets, and Gizmos over a 2-
year period. Each year includes unit sales for each of four quarters, plus a
running Year-to-Date total.
Before you use some of Quantrix’s unique features to modify and extend it,
save a copy of this model for yourself by following these steps:
1. Choose File > Save as...
2. In the directory browser, navigate to the directory in which you want
to save the file
3. In the File Name field, type MyForecasts.model, and then press
ENTER
2. Position the Quarter category tile directly below the Year tile, and
then release your mouse button. Now all of the quarters are laid out
as columns:
Adding an Item
When you moved the Quarter category tile, several labeled rows became
labeled columns. Before the move, the labels (Q1, Q2, Q3, Q4, and YTD)
appeared to reside in ordinary cells, just like the cells that contain data;
however, when you moved the tile, Quantrix handled the labels differently
than the other cells. This is because those labels are special entities called
items, and they belong to the Quarter category.
All models include categories, and each category has a set of items. In this
model you see:
• a Quarter category with five items: Q1, Q2, Q3, Q4, YTD
• a Year category with two items: Year1, Year2
• a Product category with 3 items: Widget, Gadget, Gizmo
Now you will extend this model by adding a third year. To add this new
item, follow these steps:
1. Click to select the item labeled Year2
2. In the standard toolbar at the top of your model window, click the
Insert Item button ( )
Tip: As a shortcut to clicking the Insert Item button, you can press
ENTER.
Quantrix adds the new item, names it Year3, and automatically displays the
corresponding set of Quarter items.
Quantrix also scrolls your model so you can see the new item.
To see the entire model, maximize the model window by clicking the
maximize icon in its upper right corner.
Adding a Category
Categories are powerful tools for organizing and manipulating logical collec-
tions of items. They also offer a great deal of flexibility as you plan and build
your model. It is not unusual to invest significant time working on a model,
and then realize that you are missing a critical dimension. In a traditional
spreadsheet application, this may mean that you have to start all over. With
Quantrix, often you just need to add a new category.
Now you will extend the model so you can divide your sales by region. To
add a new category called Region, follow these steps:
1. Click to select the Product category tile, and then press ENTER.
Quantrix adds a new category tile (labeled A) in this example and one
new item (labeled A1) for each Product item.
2. Name the new category by clicking the letter A in its category tile,
typing Region, and then pressing ENTER.
3. Name the first item in this category by clicking A1 next to Widget,
typing North, and then pressing ENTER. Notice that this changes
the names of all A1 items to North.
4. Add three more items to this category by clicking to select North,
and then pressing ENTER three times.
5. Rename the new items South, East, and West.
Note: If your model doesn’t look like the figure above, choose Help >
Sample Models and open the file named Forecasts2.model. Save a copy of
this new file as MyForecasts.model.
6. Change the layout to more easily view the data by region. Drag the
Region category tile to the left of the Product tile to make your
model look like this:
Entering Data
When you added the Region category, Quantrix added two types of corre-
sponding cells:
• input cells into which you manually enter data
• calculated cells whose values are calculated by Quantrix
Look closely at the table in the Sales Projections tab. Notice that the new
Q1 cells are empty, and the rest of the new cells contain the calculated value
of zero (0). Once you enter data into the input value cells of Q1, Quantrix’s
formulas will use that data to calculate values for the rest of the cells.
Tip: You can visually distinguish between input and calculated cells by
choosing View > Show Input Cells. Quantrix adds a small green flag to
the upper right-hand corner of all input cells.
Your initial data set is complete and the model is projecting sales over a
three-year period.
Adding a Formula
To better understand total sales by region, add a formula that calculates
product totals by following these steps:
1. Click to select the Product category tile.
2. Choose Insert > Summary Item > Sum. Quantrix creates a new
item labeled Sum of Product below each Gizmo item, and calculates
product totals for Q1 - Q4 and YTD.
The model should look like this:
Drag to select all four regions, click the Currency button ( ) once,
and then click the Decrease Decimal button ( ) twice to remove
all of the decimal places.
When you added the summary item, Quantrix added a formula to the
model. The formula editor now displays the four formulas that your model
uses:
Formulas 1 and 2 are standard formulas that you explicitly create, while
formulas 3 and 4 are summary formulas that Quantrix generates automatically
when you add a summary item.
Quantrix highlights all of the cells whose values formula 4 calculates. Click
the other formulas to see which cells they calculate.
To display a list of all of the matrices that comprise this model, click the
Show Model Browser button ( ).
The Model Browser shows that your model has two matrices: Sales
Projections and Assumptions.
Click the arrow portion of the Show Model Browser button ( ) to
access this list in a drop-down menu. For more details, see “Using the
Model Browser” on page 38.
Click and drag the Assumptions tab toward the right, you will see the black
outline of a vertical box.
Release the matrix and it will snap into place in the outlined region. In this
way, Quantrix allows you to view two matrices at once.
You can adjust the width of each matrix tab, to show more or less of the
matrix, as shown here.
Positioning your cursor over a side of the matrix so it changes into a Resize
cursor ( ), and then drag to increase or decrease the size of the matrix. As
you resize a matrix, Quantrix automatically adjusts any adjacent matrices.
Each matrix contains a modular piece of your overall model. This provides
great flexibility, which you will now use to change an assumption.
Changing Assumptions
The formula in the Sales Projections matrix references the rate by its name
(Assumptions::Rate); when you change the value in this matrix, the
formula in the other matrix immediately reflects the change.
The model assumes a conservative growth rate of 2% for all products and
all regions. To change this assumption to allow for different growth rates in
each region, follow these steps:
1. In the Sales Projections matrix, click to select the Region category
tile.
2. Drag the Region category tile toward the row tray in the Assump-
tions matrix. When Quantrix shows a faint outline of the tile that you
are dragging in the row tray, release the mouse button.
Quantrix adds the category tile to the matrix, and changes the
Region tiles in both matrices to indicate that it is a linked category.
3. Assign the rates shown below to each region by clicking each cell,
typing a rate, and then pressing ENTER. If not already formatted as a
percent, be sure to include the percent sign (%) so Quantrix knows it
is a percentage value.
North 104%
South 101%
East 105%
West 102%
Note: If your model doesn’t look like the figure above, choose File >
Open... and open the file named Forecasts3.model. Save a copy of this new file
as MyForecasts.model.
Filtering a Matrix
The Sales Projections matrix now contains all of the information that you
plan to share with the regional sales managers and the VP of sales. To focus
the discussion on annual regional performance, filter the matrix by
following these steps:
1. Drag the Product category tile to the grey area above the North
region; this area is called the filter tray.
When you place the tile in the filter tray, the products no longer
appear in the matrix. Instead you can view the data for each product
individually by choosing it from the new drop-down menu that is to
the right of the Product category tile.
2. Drag the Quarter category tile to the filter tray, and place it to the
right of the Product tile.
3. To display the total product sales for each year, choose Total from
the Product drop-down menu and choose YTD from the Quarter
drop-down menu.
This filtered display contains the data that you want to share. Now you will
make it easier to understand by charting it.
Creating a Chart
You can create charts from data contained in any Quantrix matrix. To create
a bar chart from your filtered Sales Projections matrix, follow these steps:
1. Click the Sales Projections tab to select it.
2. Click the Insert Chart View button ( ).
You see a new tab and a new object in the Model Browser labeled
Sales Projections - Chart1.
filter
tray
chart
legend
charting
table
Notice that Chart1 in the Model Browser has a unique icon ( ) and is
located directly below the Sales Projections matrix; this indicates that it is a
permanently linked chart view of that particular matrix. Any changes that you
make to data, structure, or logic in the Sales Projections matrix will affect
this chart. However, if you make any layout changes to the Sales Projection
matrix (such as moving a category tile from one layout tray to another),
those changes will not affect the chart.
As shown in the figure above, the chart view tab contains three distinct
areas: the chart, the chart legend and the charting table. Now you will use all of
these areas to change the layout and presentation of the chart.
This chart currently works well for the regional sales managers—it focuses
on growth for each region over a three year period. However, you want to
present it to the VP of sales, who is more interested in how total sales grow
over time.
1. On the chart, drag the Region category tile from the Points tray to
the Series tray, and then drag the Year category tile from the Series tray
to the Points tray.
Tip: You can view all twenty chart variations simultaneously in Quantrix
Modeler Professional Edition by creating a Chart Grid. See “Chart Grid” on
page 257 for more information.
Note: You could add more categories to the filter tray, and then use the
drop-down menus to view even more charts. Because this model contains a
total of 240 items, you can generate and print up to 240 charts.
3. Finally, rearrange the order of the bars so they illustrate growth from
the lowest- to highest-performing regions.
• Position your cursor over the West label in the chart legend, and
drag it to the top of the legend. The first bar in each year now illus-
trates the data for the West region.
• In the legend, drag South just below West, and then drag East
just below South.
Summary
This chapter introduced you to a number of unique concepts and
techniques that you will use as you begin building models.
Concepts
Quantrix understands and lets you independently manipulate four distinct
model aspects:
• the visual presentation of the model, including how it is oriented,
formatted, and laid out on the screen or printed page
• the structure or dimensions of your model, including categories and
items
• the data, including static and calculated values
• the logic, including formulas and functions that calculate the interac-
tions of your model’s structure and data
Quantrix stores your data in modeling matrices. Models will typically consist
of several matrices, some of which are linked together by intermatrix
formulas and linked categories.
Formulas are easily visible, and you construct them using meaningful natural
language syntax.
Quantrix includes a rich charting capability that lets you create a chart from
a particular matrix. The chart is permanently linked to that matrix, so if you
make subsequent changes to the matrix’s structure, logic, or data, Quantrix
automatically updates the chart. If you change the matrix’s presentation,
however, those changes will not affect the chart.
Techniques
Table 1-1 summarizes the techniques that you learned in this chapter.
Table 1-1. Changing one element of a model without changing the others
You changed
As you learned to:
the model’s:
• drag category tiles between the row, column, and filter trays
• use the drop-down menu in the filter tray to view one
product at a time
Presentation
• create a chart view of a matrix (by clicking the Insert Chart
View button), and then adjust its layout (by dragging
category tiles and legend items) to maximize its visual impact
• add a new item to the existing Year category (by selecting an
item and then pressing ENTER)
• add a new Region category (by selecting a category tile
located in the layout tray in which you want to add the new
Structure
category, and then pressing ENTER)
• link the Region category across two matrices (by selecting
the category tile, and dragging it into the layout tray of
another matrix)
• add data to input cells (by clicking a cell, typing a value, and
Data
then pressing ENTER)
Logic • add a new formula (by creating a summary item)
Chapter 2
Learning the Basics
About Formulas
You use formulas to build the logic of your model. You can inspect all of
your formulas simultaneously in the formula editor, an editable list directly
below the table whose values the formulas calculate. You write the formulas
using a natural language syntax, and each formula typically calculates values
for a range of cells rather than an individual cell. “Using the Formula
Editor” on page 46 introduces you to working with the formula editor;
Chapter 6 provides detailed information on how to construct and diagnose
formulas.
About Views
After crafting a modeling matrix, you can create two types of views. Each
view has its own tab and contains different elements.
• A table view of a modeling matrix displays the table portion only; it
does not include the formula editor. In this view, you can move the
category tiles to change the layout of the table and can use the
formatting tools to change its appearance.
• A chart view of a modeling matrix displays the matrix’s contents graph-
ically in the top half and displays a charting table in the bottom half.
In this view, you can choose different chart types, and customize
them. You can also rearrange the category tiles to change the layout
of the chart.
These views are permanently linked to the matrix by their structure, logic,
and data; their presentation is not linked. The relationship works in these
ways:
• When you change the structure, logic, or data in the modeling matrix,
Quantrix simultaneously updates all of its linked views.
• When you change the structure or data in one of the views, Quantrix
simultaneously updates the matrix and all of that matrix’s other views;
you cannot change logic in a view because views do not include a
formula editor.
• When you change the presentation in either the modeling matrix or
one of its views, the change will affect only the matrix or view in
which you make the change.
title bar
menu bar
standard toolbar
format toolbar
modeling
matrix
window
frame
format toolbox
model browser
At startup, the tool area contains two toolbars, and the working area
contains two tabs: the Model Browser and one modeling matrix.
Position your cursor between the title bar and menu bar, and then drag the
move the window
window to a new location.
Position your cursor over a side or corner of the window frame so it
resize the window changes into a Resize cursor ( ), and then drag to increase or decrease
the window’s size.
change the window
Click the Minimize button ( ).
into an icon
change the icon into a
Click the icon to restore the minimized window to its previous size.
window
make the window fill Click the Maximize button ( ); Quantrix changes the button to a
the screen Restore button.
make the window
Click the Restore button ( ) of a maximized window; Quantrix changes
occupy part of the
the button to a Maximize button.
screen
Click the Full Screen button ( )to expand the Quantrix work area to fill
your entire computer screen for presentation purposes. All tools, toolbars,
full screen mode
and menu bars will be closed. Press ESC to return to the normal Quantrix
window.
Click the Close button ( ). If there are other open models, Quantrix will
close the window and
remain open. If there are no open models, Quantrix will be reduced to the
exit Quantrix
launch panel. Choose Exit Quantrix.
close Quantrix and all
Select File > Exit (Mac OS X users, use Quantrix Modeler > Quit).
open models
Tip: You can also use the title bar menu to control the window in many of
these ways. Click the Quantrix Modeler icon ( ) to see the menu.
Sum Toolbar
The Sum Toolbar is an easy way to check formulas while building a model.
The Sum Toolbar will display the sum (or other summary), of the selected
numerical data, in the lower right hand corner of the model window.
Quantrix offers seven different summaries that can be accessed by right-
clicking on the sum display in the toolbar as shown below or by choosing
View > Calculator.
Note: To hide the sum toolbar choose View > Calculator > None.
Located on the far right of the Model Toolbar is the Zoom menu.
Quantrix allows you to view matrices and tables at settings from 25% to
999%. Zoom settings are independent for each matrix and table view.
Choose File > Save As... , type a new name in the dialog box, and then
change the name of press ENTER.
your model (the name Quantrix creates a copy of the model, displays that name in the title bar of
that appears in the title the model window, and places the copy in the same directory of your
bar) computer as the original model file. See also “Managing Model Files” on
page 56.
Choose View > Model Toolbar to hide it; Quantrix removes the check-
hide or expose the mark next to this command.
model toolbar Choose View > Model Toolbar to expose it. Quantrix places a check-
mark next to this command.
Choose View > Format Toolbar to hide it; Quantrix removes the check-
hide or expose the mark next to this command.
format toolbar Choose View > Format Toolbar to expose it; Quantrix places a check-
mark next to this command.
expand all
clear filter
collapse all
browser filter
model
components
The Model Browser is the road map to your model. It lists each modeling
matrix and its linked views; the matrices and views that make up your model
are called its components.
Expand All: Opens all folders in the model browser to reveal the full list of
views.
Collapse All: Closes all folders.
Browser Filter: Filters the list of views based on text you type in the box
provided.
Clear Filter: Clears the textbox to reveal the full list of views.
This sample tab shows that your model has three components—the first is a
modeling matrix named Matrix1. When you rename this matrix to
something more meaningful, you will still know that it is a modeling matrix
(rather than some type of view) by its icon ( ).
Even when closed, you can access the components of the model browser by
clicking the arrow portion of the Show Model Browser button ( ).
You will see a drop-down menu that looks like this:
This menu acts similar to the Model Browser by allowing you to control
the components of your model. See Table 2-4 on page 40 for a complete list
of options.
As your model grows, the Model Browser contains more components.
Quantrix adds a component to the Model Browser each time you create a
new matrix or view. You use the Model Browser to manipulate those
components and to add comments about each one.
As you highlight each component, the associated comments appear in the
comment box.
Quantrix also allows you to create folders in the Model Browser to help
organize more complex models. Just as with components, you can add
comments to a folder to help document your model. Folders are repre-
sented with a folder icon in the Model Browser ( ).
Tip: You can print all of the views inside an organizational folder at once
by clicking on the folder in the open model browser, then choosing File >
Print. See “Printing Multiple Views” on page 306 for more information.
Double-click its name, type a new name, and then press ENTER. Quantrix
rename a component
renames it in the Model Browser and in the title bar of the component’s
or folder
tab.
open or expose the
Double-click the component’s icon.
component’s tab
Click its close box ( ). To close all views choose View > Close All
close a component
Views or press Ctrl + H.
Choose Insert > Matrix, Insert > Table View, Insert > Chart View, or
Insert > Presentation Canvas.
or
add a component*
Click the Insert Matrix button ( ), Insert Table View button ( ),
Insert Chart View button ( ), or Insert Presentation Canvas button
( ).
Click to select the component, and then choose Edit > Delete. Quantrix
delete a component* removes the component from the Model Browser and removes the
component’s tab from the model window.
Choose Insert > Folder or right-click on any component in the Model
add a folder
Browser and choose Insert > Folder from the pop-up menu.
Click to select the folder and then choose Edit > Delete. Quantrix
delete a folder* removes the folder from the Model Browser and removes all of the
components and folders contained within the folder.
move a component or Click to select the component or folder and drag it to its destination
folder* within the Model Browser.
Click its name to select it, and then type your comment in the comment
add a comment about
field at the bottom of the Model Browser. To start a new line, press
a component*
ENTER.
resize the comment
Drag the resize handle ( ) up or down.
field*
expose or hide compo- Click the up and down arrows ( ) to expose or hide the entire compo-
nents or comments* nent area or comment field.
close the Model
Click its close box ( ).
Browser
reopen the Model Choose View > Model Browser or Click the Show Model Browser
Browser button ( ).
to access the compo-
Click the arrow to the right of the Show Model Browser button ( ) to
nents of the Model
access the drop-down menu.
Browser while closed
*These features are only available in the open Model Browser tab.
Icon Condition
item
category tile
formula editor
formula field
status column
The sample tab above shows that your new model has two generic catego-
ries (A and B), each of which contains one item (A1 and B1, respectively),
and one empty cell. You see that the model has no formulas because the
first formula field and its corresponding status column are empty, and there
is no scrollbar on the right hand side of the formula editor.
As your model grows, you notice more features in the modeling matrix tab.
filter tray
column tray
summary item
linked category
row tray
status indicators
summary formula
You work with the table in a modeling matrix as shown in Table 2-6.
Click to select a category tile in the same layout tray to which you
add a category tile
want to add a tile, and then press ENTER.
Click to select the item below which you want to add a new item, and
add an item
then press ENTER.
Right-click (Control-click on Macintosh) on the item below which you
add multiple items want to add the new items, then choose Insert Items. Enter the
number of items to insert and click OK.
rename a category or item Double-click its name, type the new name, and then press ENTER.
delete a category or item Click to select the category tile or item, then press DELETE.
Position your cursor over the grey handle ( ) of the category tile,
press your left mouse button, drag the tile to a new layout tray (or to a
move a category tile
different position within the same layout tray), and then release the
mouse button.
Drag the category tile into the filter tray, and then choose an item
filter the table
from the tile’s drop-down menu.
Place your cursor over the right side or bottom of the item and then
resize an item
drag it or double-click the right edge of the item to auto-resize.
select an item and all of its
Click the item’s name; Quantrix highlights the item and all of its cells.
cells
Click to select an item and all of its cells, then choose Edit > Select
Items Only to deselect the cells, or choose Edit > Select Cells Only
to deselect the item name.
select a restricted set of
or
cells or items
Press and hold down the CTRL key and click to select only items.
or
Drag to select an unstructured range of cells.
enter data into an input cell Click an empty cell, type the data, and then press ENTER.
edit an input cell’s data Double-click the cell, type the data, and then press ENTER.
formula toolbar
formula field
status indicators
You work with the formula editor in a modeling matrix tab as shown in
Table 2-7.
Table 2-7. Working with the formula editor in a modeling matrix tab
Auto Complete
When writing a formula, Quantrix gives you the option to automatically
complete formulas from an existing list. Pressing the TAB key will display a
list of possible items, categories, or functions that can be used in your
formula. The list is created by the characters that you have typed up to the
point when the TAB key was pressed. Use the mouse, or up and down
arrows, to select the appropriate entry from the list and press ENTER.
Note: You can maximize the work area by closing the Model Browser
and any other open tool tabs. The tool space can only be utilized by
matrices if all tools are closed.
When you first open an existing or new matrix it will fill the entire available
work area. To view matrices simultaneously, use one of the options
described on the following pages.
Moving Tabs
Divide the work area between two or more matrices and views by dragging
the tab to a new location. The work area contains invisible regions. To move
the desired matrix to one of these hidden regions, click the tab to select the
matrix, hold down the left mouse button and drag to the desired location.
As you drag you will see the regions appear as boxes with a black outline.
Quantrix Modeler User Guide
Chapter 2: Learning the Basics
49
Working in the Model Window
When you have moved the matrix into one of these regions, release the
mouse button.
The matrix occupies the region and the matrices left behind fill the
remaining space. The work area will always be filled by the open matrices.
Caution: You can move tabs as many times as necessary, however, you
cannot use the Undo button to move them back. Pressing Undo will undo
the last action that was not a move.
Tip: Use this option for a matrix that you want viewable on the desktop if
it contains a small table that would otherwise leave a lot of unusable space in
the work area.
Saving Tabs
When you save a Quantrix model that has been modified by one of the
previously mentioned methods, this is the way the file will appear when re-
opened.
Perspectives
Quantrix allows you to save your screen layout for a particular model in one
or more perspectives. While working with a model you can arrange the
matrices and views in a configuration that makes sense for the work you are
performing. You can then save this layout, or perspective, and return to it at
anytime. This is important if other users will be working with the model and
rearranging components in the work area.
Saving a Perspective
Once you have the work area arranged in a configuration that you want to
be able to access again, create a perspective by following these steps:
1. Open the Save Perspective dialog box in one of these ways:
• Choose View > Perspectives > Save Perspective...
The perspective is now saved with the name you have chosen. To return to
this perspective at a later time, follow these steps:
1. Choose View > Perspectives.
2. Select the name of the perspective from the menu.
The work area returns to the configuration of the saved perspective.
Reconfigure a Perspective
To change the layout of a perspective follow these steps:
1. Arrange the work area in the desired manner.
2. Choose View > Perspectives > Save Perspective... to open the
Save Perspective dialog box.
3. Choose the name of the perspective you are changing from the drop-
down menu.
4. Press OK.
Managing Perspectives
Quantrix allows you to make the following changes to previously created
perspectives:
• Edit: to change the name of the perspective
• Remove: to delete the perspective
• Move Up or Down: to change the order in which the perspectives
appear in the menu
To make changes to previously saved perspectives, follow these steps:
1. Choose View > Perspectives > Manage Perspectives... to open
the Manage Perspectives dialog box.
filter tray
chart
legend
charting
table
preview your chart Choose File > Print Preview (Mac OS X users, use Preview button on
before you print it print panel).
The table view contains only the table of the matrix; it does not include a
formula editor.
You work with the table view the same way you work with the table of a
modeling matrix (see “Using the Table” on page 43). Like the chart view,
the table view is permanently linked to the modeling matrix from which it
was generated. For more details, see “About Views” on page 32.
add line Click the Insert Line button ( ) for a list of line types.
Click the Insert Text button ( ) in the presentation toolbar, click to
add annotations specify an insertion point on the presentation canvas, type the annotation,
and then press ENTER.
Click the Select button ( ) in the presentation toolbar, click the object
move objects
you want to move, click and drag the object to the new position.
Drag the cursor to select the items you want to group and click the Group
group items
button ( ). Click the Ungroup button ( ) to reverse this action.
To arrange the depth of objects in the presentation canvas, select the
arrange objects object, then click the Bring to Front button ( ) or the Send to Back
button ( )in the presentation toolbar.
The launch panel appears again when you close the last open model. To
prevent the launch panel from appearing, place a checkmark in the Show
on start-up or Show on close checkboxes. See “Setting Launch Panel
Options” on page 67 and “Recently Opened Files” on page 62 for more
information.
The panel indicates which user has the file open and gives you the opportu-
nity to select one of four actions.
• Open in read-only mode allows you to open the file in a mode
where the model can be viewed and manipulated, but when you
save it, you are asked to give the document a new name.
• Open in read-only mode and receive notification when
document is available for writing allows you to open the file in
read-only mode. When the other user closes the file, you will get a
panel like this:
At this point you can click Revert to revert to the document that
was saved by the previous user. Reverting causes you to lose any
changes you have in the current document. Clicking Cancel allows
you to continue to work in Read Only mode.
• Take the lock from the current lock owner allows you to
override the other users lock on the file and grant you full write
access to the model. This action is necessary if the other user did
not properly shut down Quantrix when exiting the file or the
application.
• Cancel will dismiss the panel. You can try to open the file at a later
time.
Tip: To make your template available in the File > New menu, save the
model in the C:\Program Files\Quantrix Modeler\Quantrix Templates
directory.
Note: If you are a Microsoft Vista® or Windows 7 user, and you are
having trouble setting Quantrix preferences in Tools > Options, turn off
user access control in your control panel.
Autosave
You can instruct Quantrix to automatically save a file at specific time inter-
vals. Quantrix adds a .auto extension to files that it saves in this way (making
the full file extension .model.auto); then when you exit from Quantrix, it
removes all files with this extra extension. If Quantrix unexpectedly exits, it
does not remove the .model.auto file so you can open this file to recover your
work.
To control whether Quantrix automatically saves your open files, follow
these steps:
1. Choose Tools > Options to open the Options dialog box.
2. Click on the File section of the Options dialog box.
3. Turn autosave on or off.
• To turn it on, click the On radio button, and then choose a
number of minutes from the Save every drop-down menu.
• To turn it off, click the Off radio button.
4. Click the OK button to apply the options.
Backup
The first time a model is saved during a session, Quantrix can create an
additional backup file. Quantrix adds the words “Backup of ” before the file
name and uses a .mbak extension. For example, a backup copy of the file
projections.model would be named Backup of projections.mbak.
To control whether Quantrix creates a backup file every time you save,
follow these steps:
1. Choose Tools > Options to open the Options dialog box.
2. Click on the File section of the Options dialog box.
3. Next to Create Backup original file upon first save, click the Yes
or No radio button.
4. Click the OK button to apply the options.
File Locations
Quantrix will remember certain directories to make saving and opening files
more convenient. These directories are:
• Working files - Quantrix will automatically point Save and Open
dialogs to this directory.
• Autosave files - Quantrix will put auto-save files for Untitled
documents in this directory.
To set these directories, follow these steps:
1. Choose Tools > Options to open the Options dialog box.
2. Click on the File section of the Options dialog box.
3. Click the corresponding Browse... button, of either the Working files
or the Autosave files fields.
4. Navigate to and select the desired directory using the file browser.
5. Click the Save button to set the selected directory.
Templates
You can instruct Quantrix to set any template file as the Default Model
template.
To set a template as the Default Model, follow these steps:
1. Choose Tools > Options to open the Options dialog box.
2. Choose File > Templates in the Options dialog box.
3. Click the Change... button under The “Default Model” template
section.
4. Navigate to and select the desired template (*.modelt) using the file
browser.
5. Click the OK button to apply the changes.
To set a default directory for all of your customized templates, follow these
steps:
1. Choose Tools > Options to open the Options dialog box.
2. Choose File > Templates in the Options dialog box.
3. Click the Browse... button under The default location of user
created templates section.
4. Navigate to and select the desired directory using the file browser.
5. Select Save, then the OK button to apply the changes.
The Professional Edition of Quantrix Modeler can extract data from enter-
prise databases for use in modeling and analysis. On Microsoft Windows
computers, most databases can be accessed via ODBC drivers. On other
platforms or for optimized performance, you can install a JDBC driver for
the type of database you wish to access. To install a JDBC driver follow
these steps:
1. Download or install your database’s JDBC driver software. Your
database administrator may be able to help locate your database
vendor’s JDBC driver.
2. Identify the driver’s JAR file (with the .jar extension).
3. Choose Tools > Options to open the Options dialog box.
4. Select the Database (JDBC) section of the Options dialog box.
5. Click the Add Driver... button to bring up the Add JDBC Driver
dialog.
6. Fill in the Driver name field with a human readable name for the
driver.
7. Optionally fill in the Driver description field.
8. Click the Browse... button to bring up a file browser. Browse to and
select the driver’s JAR file.
9. Use the Driver class field to select which driver class to use (usually
there is only one).
10.Use the Available to drop-down menu to make this driver available
only to the current user or, if you have administrator privileges, to all
users on the machine.
11.Click OK to add the driver.
To remove a driver, select it in the driver list and click the Remove Driver
button. For more information about setting up a database connection, see
“Configuring DataLink Sources” on page 332.
Chapter 3
Planning & Building a Model
Now that you have made changes to an existing model, learned some key
concepts, and familiarized yourself with the mechanics of interacting with
Quantrix, you are ready to plan and build a sample model from scratch.
Like any discipline that combines art and science, there are many
different ways to create robust quantitative models. This chapter
suggests a methodology that has proven effective when building models
with Quantrix.
Chapter 3: Planning & Building a Model
72
Overview of the Process
Like most models, in order to answer the overall question, you first need to
answer a set of smaller questions in a manner that informs the overall
question. In this case:
• What level of revenue will the business generate over three years?
• What level of expenses will be necessary over three years?
• When will the business become profitable?
This chapter helps you build a model that answers these questions. The end
result will be a projected Profit and Loss (P&L) statement.
Understanding Structure
The first step in designing a model is to break your question down into its
critical elements. Consider this question:
“What level of revenue will the business generate over three years?”
It includes a minimum of three elements:
• time
• revenue
• growth rate
It is likely that your analysis requires more granularity, for example:
• Time might be expressed as years, where each year contains four
quarters and a year-to-date total.
• Revenue might be split between products and services, and you might
have different product lines or service agreements.
• Growth rate might be a value that you want to vary with time,
product, or some other element to create what-if scenarios.
Regardless of whether you are using a traditional spreadsheet application or
Quantrix, you need to understand these elements, and then plan and
organize your model to take them all into consideration. This collection of
model elements, expressed to a particular level of granularity, is called its
structure.
Note: You are about to build from scratch and then extend the same
model that you worked with in Chapter 1. If you encounter any difficulties
while building it yourself, you can access the completed Chapter 1 model by
choosing Help > Sample Models, and then double-clicking
Forecasts3.model.
Note: If you are not familiar with the basic techniques for working with
matrices, categories, and items, see “Working in the Model Window” on
page 34.
Tip: Give categories singular names and matrices plural names for clarity
in your formulas. For details, see “Naming Structural Elements” on
page 117.
Note: When you add a new item to a category, Quantrix assigns it the
name of the category plus a number, and increments that number by one for
each additional item.
Note: After typing a new item name, press ENTER one time to make
the name take effect. If you press ENTER a second time, Quantrix creates a
new item. To delete an unwanted item, choose Edit > Undo. To move from
one item to another without creating new items, use your keyboard’s arrow
keys.
Note: If you are not building this model in one sitting and have there-
fore closed and reopened the BusinessPlan.model file, the names that Quantrix
generates for new matrices and category tiles (like matrix Matrix1 or
category F) may not match the names that are noted throughout this
chapter. Because you always rename these elements, this discrepancy will
have no effect on your end result.
This section walks you through the construction of a few basic formulas.
For full details on constructing, maintaining, and auditing formulas, see
Chapter 6.
Note: If you are not familiar with the basic techniques for using the
formula editor, see“Using the Formula Editor” on page 46.
Your model needs only one more formula in order to calculate the values
for the remaining years: a yearly growth formula.
Using only four formulas, your model calculates the growth of unit sales for
three products in four regions over a three-year period. Next you will
expand this solid foundation to answer your questions.
2. Link the Product category from the Sales Projection matrix to the
Price Assumptions matrix.
• Position the Price Assumptions matrix so that you can still see
the Sales Projections matrix. Click and drag the Price
Assumptions matrix toward the lower, right-hand region of the
work area. When the region outline appears, release the mouse
and the matrix will snap into place.
Note that Quantrix is using the Q1 data that you previously entered
in order to calculate the Unit values. When you add a new category
and items, Quantrix assigns existing input values to the first item
only. However, it assigns existing general formulas to all items, as you
can see by the zeros in the Revenue rows.
2. Because revenue values are calculated differently than unit values, you
need to edit the existing formulas so they apply to units only.
• Double-click formula field 1, click to insert your cursor at the
beginning of the formula, type the phrase below, and then press
ENTER.
In Units,
Be sure to include the comma, just as you would in an English
sentence.
• Double-click formula field 2 and add the same text to it.
Your formulas should look like this:
Building models is an iterative process. Because you have extended the roles
of some of the matrices, their original names have some deficiencies:
• The Assumptions matrix does not contain all assumption informa-
tion for our model; the name is too general.
• The Price Assumptions matrix has a more specific name, but it
doesn’t communicate that it also contains cost information.
• The Sales Projections matrix projects not only sales, but also gross
profit.
You can rename these components without the risk of introducing errors
because Quantrix will automatically update all formulas that reference them.
To rename the components, follow these steps:
1. Rename the Assumptions matrix.
• In the Model Browser, click to select Assumptions, type
Growth Assumptions, and then press ENTER. Quantrix
renames the matrix in the Model Browser, in the matrix title
bar, and in all formulas that reference it.
4. Link the Year and Quarter categories from the Sales & Gross
Profit Projections matrix to the P&L matrix.
• Position the P&L matrix so that it is beside the Sales & Gross
Profit Projections matrix. Click and drag the P&L matrix
toward the right-hand region of the work area. When the region
outline appears, release the mouse and the matrix will snap into
place.
• Drag the Year category tile from the Sales & Gross Profit
Projections matrix into the column tray of the P&L matrix,
and position it above the category tile that is already in the
column tray. When you release the mouse button, Quantrix adds
the three years to this matrix.
• Link the Quarter category in the same way, and position it
below the Year category tile.
• Remove the other category tile from the column tray by
selecting it and then pressing DELETE. Your matrix should
look like this:
Note: To add a new item to an existing item group, you must select an
item within the group and then press ENTER.
The structure of the P&L and supporting matrices is now in place. You are
ready to complete it by adding formulas.
2. Add a formula that adds the total COGS to the P&L matrix.
• Insert a new, editable formula field by clicking to select formula
field 1, pressing ENTER, and then double-clicking the new field.
• Begin to construct the formula. Type COGS= but do not press
ENTER.
• In the Sales & Gross Profit Projections matrix, click to select
All Regions.
• Press and hold down the SHIFT key, and then click to select
first the All Regions:Total item, and then the All
Regions:Total:COGS item.
• Check the formula field, and then press ENTER to complete the
formula.
3. Add a gross profit formula using the information that is now in the
P&L matrix.
• Insert a new, editable formula field by clicking to select formula
field 2, pressing ENTER, and then double-clicking the new field.
• Type the formula below, and then press ENTER.
Gross Profit=Revenue-COGS
4. Before you add formulas to calculate operating expenses, enter this
Q1 data: Marketing is 10,000, Personnel is 66,500, Other is 7,500.
5. Add two formulas to calculate operating expenses.
• Insert two new formula fields by clicking to select formula field
3 and then pressing ENTER twice.
• Double-click formula field 4 to make it editable.
• Construct a formula that assumes a growth rate of 101% each
quarter. You need to constrain it with an In clause so Quantrix
knows not to apply the formula to other items in the P&L Item
category. Type the formula below, and then press ENTER.
In Operating Expenses, Quarter[THIS]=Quarter[PREV]*101%
• Double-click formula field 5 to make it editable.
• Construct a formula to explicitly tell Quantrix that it should roll
over the Q4 data from the previous year when calculating
quarter to quarter growth across years. Type the formula below,
and then press ENTER.
In Operating Expenses, Q1:Year[THIS]=Q4:Year[PREV]*101%
6. Add a formula to calculate the bottom line: the net profit before tax.
• Insert a new, editable formula field by clicking to select formula
field 5, pressing ENTER, and then double-clicking the new field.
• Construct a formula that subtracts total operating expenses
from gross profit. Type the formula below, and then press
ENTER.
Net Profit Before Tax=Gross Profit-Operating Expenses.Total
7. Format all P&L items as currency with no decimal places.
• Drag to select all items in the P&L category.
• Click the Currency button ( ).
• Click the Decrease Decimal button ( ) twice.
You now have your answer:
2. Create a chart.
• Click to select P&L - Presentation.
• Click the Insert Chart View button ( ).
• In the Model Browser, rename the new chart 3 Year P&L.
• In the 3 Year P&L chart view tab, rearrange the category tiles
so the Year tile is in the row tray, the P&L Item tile is in the
column tray and the Quarter tile is in the filter tray.
• Choose YTD from the drop-down menu of the Quarter tile.
Your chart view should look like this:
4. Insert a chart.
• Click the Insert Canvas Chart View button ( ) in the presenta-
tion toolbar.
• Choose P&L - 3 Year P&L from the Insert Canvas Chart View
dialog box and press OK. You can also double-click P&L - 3 Year
P&L to select it.
• Move the cursor to just below the table view and click once to
insert the chart.
5. Insert a table.
• Click the Insert Canvas Table View button ( ) from the
presentation toolbar.
• Double-click Growth Assumptions matrix from the Insert
Canvas Table View dialog box to select it.
• Move the cursor to the upper right corner of the presentation
canvas, beside the P&L table view, and click once to insert the
matrix.
Your presentation should look like this:
Note: The Presentation Canvas is not part of the HTML export at this
time.
Chapter 4
Working with Structure
All financial models describe entities, their relationships and, often, how
these change over time. In traditional spreadsheet applications, you
reduce these elements to static labels and numbered cells. With
Quantrix, you explicitly build this structure and then have the opportu-
nity to manipulate the elements individually without affecting the
integrity of your logic or data. This chapter provides detailed instructions
for creating, changing, and manipulating structural elements.
Chapter 4: Working with Structure
114
About Structure
About Structure
The collection of model elements, expressed to a particular level of granu-
larity, is called its structure. Quantrix helps you define and manipulate your
model’s structure by providing three organizational units:
• A category is the largest organizational unit; it contains items and item
groups. It is physically represented by Quantrix as a category tile.
• An item is the smallest unit; it is a single entity and must belong to a
category. An item appears as a labeled cell above a column or to the
left of a row.
• An item group is a set of items that you want to operate on collectively;
by definition, item groups contain one or more items and must
belong to its items’ category. An item group appears above the
columns or to the left of the rows that contain the set of items that
comprise the group.
You express this structure in modeling matrices. A finished model that is
both flexible for the author and informative to others includes several
matrices.
This chapter covers advanced topics and provides comprehensive instruc-
tions for working with structural elements. For a detailed introduction to
structure and its underlying concepts, see “Understanding Structure” on
page 74.
When you add a second category and its items, you have a two-dimensional
table and Quantrix still displays only one instance of each item.
Figure 4-2. Two categories and one item set for each
When you add a third category, however, Quantrix needs to replicate the
items from that category in order to display the multi-dimensional matrix as
a two-dimensional table.
In the example in Figure 4-3, Inventory is the third category, and it contains
two items—Stock and Backorder.
Quantrix displays only one item set for the two categories whose tiles are at
the far left of the row tray and at the top of the column tray. When you
rearrange the category tiles, you change the number of item set instances for
a particular category.
It is important to understand that only one item set exists per category; the
instances are just additional displays of the same items. When you edit an
item, Quantrix reflects the change everywhere that it displays the item.
Tip: For clarity, give matrices and views plural names. See also “Naming
Structural Elements” on page 117.
Tip: To easily copy a matrix and all of its related views, place all of the
components in one folder and Quantrix will allow you to copy and paste the
folder and all of its contents to the same model or click and drag to another
Quantrix model file.
Mac OS X: Hold down the ALT key while dragging the table view to
the Model Browser.
Using Categories
Each category in your model represents a different dimension, and each
category contains one or more items or item groups. For more information,
see “About Structure” on page 114.
Categories are physically represented by category tiles that you can add,
modify, and delete.
Adding Categories
You can add categories to any modeling matrix, table view, or chart view.
When you add a category to a matrix, Quantrix automatically adds it to all
table and chart views that are linked to the matrix. Likewise, when you add a
category to a view, Quantrix automatically adds the category to that view’s
matrix, and to all other views that are linked to the same matrix.
To add a category, follow these steps:
1. Click to select the category tile closest to where you want the new
category tile to appear.
Quantrix Modeler User Guide
Chapter 4: Working with Structure
121
Using Categories
Tip: To insert a category tile above a tile that is in the column tray or to
the left of a tile that is in the row tray, select the tile, and then press
SHIFT+ENTER.
Renaming Categories
When you change the name of a category, Quantrix also changes its name in
all formulas that reference the category; this ensures that your formulas
remain valid.
To change the name of a category, follow these steps:
1. Click to select the category tile that you want to rename.
2. Type a new name, and then press ENTER.
Tip: For clarity, give categories singular names. See also “Naming Struc-
tural Elements” on page 117.
Deleting Categories
You can remove categories from any modeling matrix, table view, or chart
view. When you remove a category from a matrix, Quantrix automatically
removes the category, along with all items and item groups that belong to it,
from all table and chart views that are linked to the matrix. Likewise, when
you remove a category from a view, Quantrix automatically removes the
category from that view’s matrix, and from all other views that are linked to
the same matrix.
You can use either the Cut or Delete command to remove a category from
its table. When you use Cut, Quantrix places the category on its clipboard
so you have the option of pasting it into another layout tray or table. When
you use Delete, Quantrix discards the category so it is not available for
pasting.
To remove a category and place it on the clipboard, follow these steps:
1. Click to select the category tile that you want to remove.
2. Cut the category in one of these ways:
• Click the Cut button ( ).
• Choose Edit > Cut.
• Position your cursor over the selected category tile, press the right
mouse button, and then choose Cut from the pop-up menu.
• Press CTRL+X.
To permanently remove a category, follow these steps:
1. Click to select the category tile that you want to remove.
2. Delete the category tile in one of these ways:
• Choose Edit > Delete.
• Position your cursor over the selected category tile, press the right
mouse button, and then choose Delete from the pop-up menu.
• Press the DELETE key.
1. Position your cursor over the grey handle ( ) of the category tile.
2. Press and hold down your left mouse button, and drag the tile into a
new position in its current layout tray, or into a different layout tray.
3. When you see an outline of the category tile in the correct position,
release the mouse button. Quantrix changes the layout of the table.
When you choose an item from the drop-down menu, Quantrix displays the
values for that item only.
New: You can navigate through items in the filter tray using the arrow
keys on your computer. Highlight the appropriate category in the filter tray
and navigate up and down as appropriate.
You can move more than one category tile into the filter tray, and then
choose from all of the drop-down menus to filter the data in different ways.
For example, if you move two category tiles into the filter tray, each of
which contains three items, you can choose from the menus to create nine
(3 items * 3 items) variations.
Note: When you print a matrix that has a filtered table, Quantrix prints
one page for each way you can filter it. In the example above, if you choose
to print all results, Quantrix will print nine pages. See also “Printing One or
All Variations of a Filtered Table” on page 311.
• They share only structure (items and item groups), not data; when
you create a linked category tile, Quantrix adds its structure and
corresponding empty cells to your table. For a summary item,
Quantrix also adds the formula that corresponds to the item.
Linked categories are especially powerful when you combine them with
intermatrix formulas (where a formula in one matrix uses data from another
matrix; see also “Intermatrix Formulas” on page 181).
When two matrices share a linked category, both matrices contain the items
that belong to the linked category, but each matrix has unique data that
corresponds to each item. When you write an intermatrix formula, Quantrix
can automatically match data in one matrix to the correct items in the other
matrix. This greatly simplifies your formulas and reduces the risk of intro-
ducing errors.
For example, consider the matrices in Figure 4-7.
The first and second formulas in the Sales Projections matrix use the
linked category Region to match the four separate Rate values from the
Growth Assumptions matrix to the North, South, East, and West items
in the Projections matrix. This formula doesn’t need to include the linked
category’s name or any of its items.
Note: You can also link a category to another matrix by dragging the
category tile to the other matrix’s icon in the Model Browser.
Tip: Hover the cursor over a linked category tile to view a list of the
matrices it is linked to.
Note: The category you chose to link will assume the name of the
category you chose to link to.
• Position your cursor over the selected linked category tile, press
the right mouse button, and then choose Delete from the pop-up
menu.
• Press the DELETE key.
Synchronize Views
To align the items displayed in categories residing in the filter tray, choose
View > Synchronize Views to place a checkmark next to Synchronize
Views. To disable this option and enable independent view filtering, choose
View > Synchronize Views to remove the checkmark.
Category Notes
You can add a note to any category by following these steps:
1. Select the category.
2. Add a note in one of these ways:
• Choose Edit > Edit Note
• Right-click and choose Edit Note
• Open the Notes section of the Format Toolbox and press the
Add... button
3. Type your preferred text in the text box and select OK.
A blue triangle will appear in the upper left of the category indicating that
there is an attached note.
Note: To edit an existing note, select the category with the attached
note and follow the steps above. In the Notes section of the Format
Toolbox, press the Edit... button instead of Add...
To delete a note:
• Select the category.
• Choose Edit > Delete Note or right-click and choose Delete Note.
You can view the note when you hover the cursor over the triangle.
Tip: Select View > Show Notes to reveal the blue triangle in all elements
that contain notes. By selecting View > Show Notes again, you can hide all
notes.
Using Items
Each item and item group in your model belongs to one category. When
your model includes more than two categories, Quantrix may display each
item or item group in more than one location. See also “Understanding
Item Instances” on page 115.
Items are represented as row and column headings that you can add,
modify, and delete.
Adding Items
When you add a category, Quantrix automatically adds the first item that
belongs to the category. You then explicitly add more items to the category,
and Quantrix automatically displays the correct number of instances of each
item.
To add an item to a category, follow these steps:
1. Click to select an item in the category to which you want to add a
new item.
2. Add an item in one of these ways:
• Click the Insert Item button ( ).
• Choose Insert > Item.
• Press ENTER.
Quantrix inserts the item below the selected item when it labels a
row, and to the right of the selected item when it labels a column.
Quantrix labels the item with the category’s name, followed by the
next available sequential number.
Tip: To insert an item above or to the left of an item, select the item, and
then press SHIFT+ENTER. To insert multiple items at once, right-click on
the preceding item in your matrix and choose Insert items..., then type the
desired number into the Number of items field and press ENTER.
Tip: You can use the name and position of items in your formulas. See
“Using Item Names and Positions in Formulas” on page 186.
Renaming Items
To change the name of an item, follow these steps:
1. Double-click the item that you want to rename.
2. Type a new name, and then press ENTER.
Tip: For clarity, give items and item groups singular names. See also
“Naming Structural Elements” on page 117.
Automatic Naming
If you change an item to one of several names (or patterns) that Quantrix
recognizes, then add a new item after that item, Quantrix supplies the new
item with a name logically in sequence with the previous item. The
following is a list of the automatic name sequences Quantrix supports:
• a,b,c...
• 1,2,3...
• January, February, March...
• Jan, Feb, Mar...
• Monday, Tuesday, Wednesday
• Mon, Tue, Wed...
• 1999, 2000, 2001...
• January 2003, February 2003, March 2003...January
2004, February 2004...
• <name> 1, <name> 2, <name> 3...
Deleting Items
When you remove an item, you also remove all of its cells. You can use
either the Cut or Delete command to remove an item from its category.
When you use Cut, Quantrix places the item on its clipboard so you have
the option of pasting it into another location in the same category. When
you use Delete, Quantrix discards the item so it is not available for pasting.
To remove an item and place it on Quantrix’s clipboard, follow these steps:
1. Click to select the item(s) that you want to remove.
2. Cut the item in one of these ways:
• Click the Cut button ( ).
• Choose Edit > Cut.
• Position your cursor over the selected item, press the right mouse
button, and then choose Cut from the pop-up menu.
• Press CTRL+X.
To permanently remove an item, follow these steps:
1. Click to select the item(s) that you want to remove.
2. Delete the item in one of these ways:
• Choose Edit > Delete.
• Position your cursor over the selected item, press the right mouse
button, and then choose Delete from the pop-up menu.
• Press the DELETE key.
3. Click to select the item closest to where you want to paste the copied
item.
4. Paste the item in one of these ways:
• Click the Paste button ( ).
• Choose Edit > Paste.
• Position your cursor over the selected item, press the right mouse
button, and then choose Paste from the pop-up menu.
• Press CTRL+V.
Quantrix pastes the item below the selected item when it labels a row, and
to the right of the selected item when it labels a column. Quantrix labels the
pasted item with the copied item’s name, followed by the next available
sequential number.
Note: When you copy data from Quantrix or another program to paste
into a matrix, the new data will automatically take on the format of the desti-
nation area.
Re-ordering Items
You can change the order of items in a category by using the Edit > Move
Up, Edit > Move Down, Edit > Move Left, and Edit > Move Right
menu items. If you wish to reorder items by their names alphabetically,
either in an ascending (A-Z) or descending (Z-A) order, follow these steps:
1. Select the items that you want to sort.
2. Sort the items in one of these ways:
• To sort them from A-Z, choose Edit > Reorder Items >
Ascending (A..Z).
• To sort them from Z-A, choose Edit > Reorder Items >
Descending (Z..A).
• To manually re-order items, select the item you want to reorder,
hold the CTRL key down and use the up ( ), down ( ), left ( ),
and right ( ) arrow keys to move the item.
Formatting Items
You use the standard formatting tools to change the appearance of these
item properties:
Say you want to change the layout of this table by swapping the positions of
the Product and Supplier category tiles.
Quantrix retains this context and the appropriate formatting of the cell data.
However, because the Trends item is now in the lefthand column and
applies to all Product items, Quantrix does not apply the formatting to it.
Now consider the example in Figure 4-10 where a thick horizontal line
delineates the border of each Product item.
When you move the Supplier category tile to the column tray, the line
delineates the border of each Store item. In this context, the line may or
may not be useful.
When you then move the Supplier category tile into the filter tray, the line
disappears altogether because there is no longer a visual context in the table
for the lines.
Item Notes
You can add a note to any item by following these steps:
1. Select the item.
2. Add a note in one of these ways:
• Choose Edit > Edit Note
• Right-click and choose Edit Note
• Open the Notes section of the Format Toolbox and press the
Add... button
3. Type your preferred text in the text box and select OK.
A blue triangle will appear in the upper left of the item indicating that there
is an attached note. You can view the note when you hover the cursor over
the triangle.
To delete a note:
• Select the item.
• Choose Edit > Delete Note or right-click and choose Delete Note.
For more information about notes, see “Category Notes” on page 128 and
Figure 10-7 on page 310.
Collapse Items
To collapse or completely hide an item, follow these steps:
1. Click to select the item(s) that you want to collapse.
2. Collapse the item in one of these ways:
• Click the Collapse Item button ( ).
• Choose Format > Item > Collapse.
• Position your cursor over the selected item, press the right mouse
button, and then choose Collapse from the pop-up menu.
Quantrix reduces the item to a thin line.
3. To completely hide the collapsed item, choose View > Hide
Collapsed Items. Quantrix hides the item and places a checkmark
next to this menu command.
To expose all hidden collapsed items, un-select View > Hide Collapsed
Items. Quantrix displays the collapsed items as thin lines, and removes the
checkmark next to this menu command.
Tip: To collapse all but a single item or group of contiguous items, select
the items that you want to keep exposed, right-click a choose Collapse
Other from the pop-up menu.
Expand Items
To expand a collapsed item, follow these steps:
1. Click to select the collapsed item(s) that you want to expand.
2. Expand the item in one of these ways:
• Click the Expand Item button ( ).
• Choose Format > Item > Expand.
• Position your cursor over the selected item, press the right mouse
button, and then choose Expand from the pop-up menu.
You can expand all collapsed items in a matrix or view, regardless of cursor
position, by choosing View > Expand All.
Caution: Selecting the Hide Empty option will also collapse rows
and columns with zeros.
Note: If you have the Hide Collapsed Items option on, creating a new
item in that view may not show the newly created item if it is entirely empty.
To show the new item, you must turn off the Hide Collapsed Items option
by choosing View > Hide Collapsed Items again.
Quantrix can automatically collapse only rows or only columns that are
completely blank or have only zeros. Choose View > Hide Empty >
Rows or View > Hide Empty > Columns, to access these options.
Type Calculation
• Choose a summary item type from the Insert > Summary Item
rollover menu.
• Position your cursor over the selected category tile or item group,
press the right mouse button, and then choose a summary item
type from the Insert Summary rollover menu in the pop-up
menu.
Tip: You can access item descriptor names in your formulas. See “Using
Item Names and Positions in Formulas” on page 186.
3. Select from the View > Item Descriptors menu the name of the
Item Descriptor you wish to show / hide.
You decide that you’d like to be able to easily differentiate between product
and service revenue, so you create two groups.
You can also create an item group that contains both items and other item
groups. When items are organized into an item group, you can operate on
them collectively in these ways:
• To refer to the item group in a formula, use the group’s name.
• To select all items in a group, click the group’s name; you can then
choose any command to affect all items in the group.
Tip: Select the group heading only, to apply formatting to only the group
heading and not the subitems or cells contained in the group, by holding the
control key while clicking on the group heading.
You rename, format, collapse, expand, and create summary items for item
groups just as you do items. The following sections describe the unique
ways in which you work with item groups.
Tip: To insert an item above or to the left of an item, select the item, and
then press SHIFT+ENTER.
You can also add item groups during a DataLink import. See “Setting
Groups and Descriptors in Data Link Wizard” on page 349.
Changing the You can easily change the layout of a category by dragging its
layout category tile within and between layout trays. To change the layout
of an item group you must change the layout of the category to
which it belongs.
Collapsing You can collapse an item group and have no visual effect on other
items categories or items. You can collapse a category, but you often get
the unwanted effect of collapsing other categories at the same time.
Linking
You can link a category across matrices. You can only link an item
between
group across matrices if you link the category to which it belongs.
matrices
Increasing Categories define large dimensions that are very different from each
granularity other. Within a category, you may want to create subsets or group-
ings of like items. Rather than creating new categories for these
groupings, it is often more understandable and efficient to organize
them into item groups.
Automatically When you add a new category, Quantrix expands each existing
adding item category to include all instances of the new category’s items.
instances Quantrix does not expand item groups to include the new items.
Likewise, when you add a new item group, it effects only the
category to which it belongs. See also “Understanding Item
Instances” on page 115.
Chapter 5
Working with Data
Quantrix stores your model’s data in cells that belong to items and item
groups. This chapter describes the different types of cells, shows you how
to select and move between cells, and provides detailed instructions on
how to add, modify, and delete cell data.
Chapter 5: Working with Data
146
About Cells
About Cells
The cells in the table of a modeling matrix, chart view, or table view contain
your model’s data. Each cell belongs to one or more items, and each item
can belong to one or more item groups or categories. For more information,
see “Understanding Structure” on page 74.
Models consist of two cell types:
• Calculated cells contain data that is generated by a formula.
• Input cells contain data that you enter manually.
Cells can contain either numbers or text strings, and you can format the data
in a variety of ways.
To remove the triangles, choose View > Show Input Cells again.
Note: When the cell’s value is calculated by more than one formula,
Quantrix highlights only the formula that provides the final value. See also
“Eclipse Notification” on page 194.
Selecting Cells
You select a cell to:
• apply a new format to its data
• edit its data
• build a formula that calculates its value
Quantrix lets you select one or more cells by their structure (for example, all
cells that belong to an item) or by their physical location (for example, all
cells in a particular column). To apply a format or edit data, you may select
by either structure or physical location. However, to build general formulas,
you typically select by structure.
Tip: To select only an item name, press and hold down the CTRL key,
and then click to select the item.
To select only those Gadgets in the North and South regions, follow these
steps:
1. Click to select Gadget. Quantrix highlights all four instances of this
item.
The general rule is to first select the entire item or item group, and then limit
the selection by selecting other items or item groups.
Note: If you later rearrange category tiles so the item or item group that
limited your selection no longer provides enough context, Quantrix discards
any formatting that you may have applied. See also “Formatting Items” on
page 132.
Note: The ALT key is used frequently to select ranges of cells and
move between cells and items. You should press and hold the ALT key
while pressing the key that follows it.
Caution: You can also enter a value and move down one cell by
pressing ENTER. To change which item is selected, you can use only the
arrow and TAB keys. If you use ENTER or SHIFT+ENTER, you will insert
a new item.
Entering Data
You can enter data into input cells of any modeling matrix, table view, or
chart view. You cannot directly enter data into a calculated cell; to change its
value, you must change the formula that calculates it. For more information,
see “Identifying Calculated and Input Cells” on page 146 and “Overriding
Values in Calculated Cells” on page 147.
To enter data into an input cell, follow these steps:
1. Click to select the cell.
2. Use the keyboard to type in the data.
3. Press ENTER. Quantrix accepts the data, and selects the next cell so
you can easily enter data into it.
Entering Numbers
You can enter numbers with or without any kind of formatting (such as
decimal places or thousands separators). Quantrix accepts the entry and
doesn’t attempt to apply any formatting; the only exception is that Quantrix
will delete a zero if it is the first character in your entry.
Note: To retain a leading zero, you can either apply the Text format to
your number, use a special format such as zip code, or create a custom
format. For more information, see “Formatting Special Numbers” on
page 214.
Quantrix does not assume that, because you used a thousand separator in
the previous cell, you want one automatically inserted in the current cell.
To ensure consistency, it works well to apply formatting in one of these
ways:
• Before you enter your data, select all of the cells, and use the Format
Toolbox to apply a format to the empty cells. This way, as you enter
your data, Quantrix automatically applies the format that you
selected.
• After you enter your data, select various subsets of cells, and use the
Format Toolbox to apply the specific formats that you want. This
way you can be more selective about your formatting because the
data is already displayed.
For details on formatting numbers, see “Formatting Numbers” on
page 208.
05:30
05:30:00
Like dates, Quantrix accepts this type of entry as a time in cells with no
formatting applied. If you have previously applied formatting to the cell in
which you enter the time, the text you enter will assume the special
formatting.
For details on formatting dates and times, see “Formatting Dates and
Times” on page 213.
Entering Percentages
You can enter a percentage as a decimal or as a whole number followed by a
percent sign. For example, you could enter 25% in either of these ways:
.25
25%
When you use the second format, Quantrix recognizes it as a percentage
and performs its calculations accordingly. To change the percent format, see
“Formatting Percentages” on page 212.
Entering Fractions
You can enter a fraction as a decimal or as a fraction. For example, you
could enter one and one-fourth in either of these ways:
1.25
1 1/4
When you use the second format, Quantrix recognizes it as a fraction and
performs its calculations accordingly. To change the fraction format, see
“Formatting Fractions” on page 213.
Constrained Input
You can constrain the type of data or the range of values a user may enter
into a cell by using the Constrain Input feature. By setting a constraint on
the input, you can ensure that the proper type of data and data in the proper
range of values is being inserted into the model.
The example above shows a User Defined List which restricts the values in
the selected cells to be month names. You may set one of the following
types of constraints:
Any: You can set any input without restriction. This is the default setting
for cells.
New:
Not Empty: You force the user to enter data in the cell by prohibiting
empty cells.
Note: Any matrix that has constrained input cells in an invalid condi-
tion will display a constraint not met indicator. This is shown as an orange
triangle in the corner of the cell and an orange circle on the matrix name in
its tab and in the Model Browser.
Date: You can set a cell to only accept values that are equal to, between,
greater than or less than a user defined date.
List: The acceptable values for the cells are created in a user defined list. If
the Sort list in popup box is checked, the list will be alphabetized within
the input cells drop-down menu.
Tip: When entering data in a cell with a list constraint, Quantrix gives you
the option to automatically complete text from the existing list. Pressing the
TAB key will display the list of possible items. The list is created by the
characters that you have typed up to the point when the TAB key was
pressed. Use the mouse or up and down arrows to select the appropriate
entry from the list and press ENTER.
New:
Category: The acceptable values for the cells are defined by the list of items
from another category in the model. If the Track category item changes
box is checked, Quantrix will automatically change the cell values defined by
the constrained input as changes are made to the source category.
Decimal: You can set the acceptable values for a cell to be a decimal value
that is equal to, between, less than or greater than the specified decimal
value.
Integer: You can set the acceptable values for a cell to be an integer that is
equal to, between, less than or greater than the specified integer value.
Input Constraints may affect the way a cell is edited. If a List or Category
constraint is set, the cell will be edited with a drop-down menu. If a Date
constraint is set, the cell will be edited through a calendar interface.
Editing Data
You can edit data in the input cells of any modeling matrix, table view, chart
view or presentation canvas. You cannot directly edit data in a calculated
cell; to change its value, you must change the formula that calculates it. For
more information, see “Identifying Calculated and Input Cells” on page 146
and “Overriding Values in Calculated Cells” on page 147.
You can edit the data in an input cell in one of these ways:
• Click a cell once to select all the data in the cell. When you enter new
data, it completely replaces the cell’s contents.
• Double-click a cell to get an insertion cursor. You can click to place
that cursor within the current data, and then modify a portion of it
rather than completely replacing it.
Deleting Data
You can use either the Cut or Delete command to remove data from a cell.
When you use Cut, Quantrix places the data on its clipboard so you have
the option of pasting that data into another cell. When you use Delete,
Quantrix discards the data so it is not available for pasting.
To remove data and place it on Quantrix’s clipboard, follow these steps:
1. Click or drag to select the cell(s) whose data you want to remove.
2. Cut the data in one of these ways:
• Click the Cut button ( ).
• Choose Edit > Cut.
• Position your cursor over the selected data, press the right mouse
button, and then choose Cut from the pop-up menu.
• Press CTRL+X.
To permanently remove data, follow these steps:
1. Click or drag to select the cell(s) whose data you want to remove.
2. Delete the data in one of these ways:
• Choose Edit > Delete.
• Position your cursor over the selected data, press the right mouse
button, and then choose Delete from the pop-up menu.
• Press the DELETE key.
Using this menu you can select the parameters of your search. After
entering the text you would like to find and the text you wish to replace it
with, you can use the following categories to narrow or expand your search.
Scope: You can choose to search all of the matrices and views in your
model or only the current view.
Options: The typical search options of case sensitivity, matching the whole
word, and wrapping are available.
Text Types: Here you can specify where Quantrix should search for the
desired text. You can perform searches of cell values, formulas, other text
(such as item descriptors and chart text annotations), notes/comments, and
names; including the names of items, categories, and matrices.
Note: If you copied more than one cell, you can select either one cell as
the starting point of the paste, or select exactly the same number of cells
that you copied.
Caution: If you select more than one cell but less cells than you
copied, Quantrix will not paste all of the data.
Tip: You can paste data into all of an items cells by selecting the item
before pasting as described above.
For pasting cell data as new items, see “Copying and Pasting Items” on
page 131.
Filtering Data
To filter data in a Matrix or View, follow these steps:
1. Select the column you wish to filter by clicking in the item above the
column.
2. Choose Data > Filter or right-click in the selected item and select
Filter from the pop-up menu.
3. Choose the type of filter from the sub-menu:
• Filter Top Ten... - filters the top or bottom 10 (or any number
you specify) values or percent of the values.
• Filter Custom... - filters based on the value of an Expression
See “Expression Concepts” on page 200 for more information
on how to use Expressions in your model.
• Filter Values... - filters to show only selected values.
4. Complete the parameters for the type of filter selected.
You may combine multiple filters if desired to further refine your data. Clear
the filters in one of the following ways:
• Right-click on each filtered column and choose Filter > No
Filter.
• Right-click on any column and choose Filter > Clear All Filters.
If you use the Clear All Filters method, you can restore the filter settings for
the view by right-clicking on any column and choosing Filter > Restore
Filters.
Chapter 6
Working with Formulas
Formulas add logic to the structure of your model and ultimately deliver
answers. This chapter helps you make the conceptual and mechanical
shift to constructing and auditing natural language general formulas . It
includes comprehensive descriptions of all formula types, detailed
examples of Quantrix’s unique syntax, an introduction to the function
library, and tips for troubleshooting and auditing your models.
Chapter 6: Working with Formulas
166
About Quantrix Formulas
Note: The formula editor uses different colors to highlight parts of the
formula. This syntax highlighting makes formulas easier to read while you
are editing them.
See “Auto Complete” on page 48 to learn how auto complete can save you
time when you have several formulas that use the same function, item, or
category.
Tip: As a shortcut, you can press CTRL+up arrow to move it up, and
CTRL+down arrow to move it down. For more shortcuts, see
Appendix A.
Specifying Ranges
It is typically easier to use the mouse when specifying ranges of categories,
items, or item groups on either the left-hand or right-hand side of your
formula. You can add ranges to a formula using the mouse in one of these
ways:
• Select the range of categories, items, or item groups whose value you
want to calculate, and then press the = key. Quantrix adds a new
formula field that begins with the name of the selection.
• Double-click an existing formula to make it editable, place your inser-
tion cursor at the appropriate location within the field, and then use
the mouse to select the range.
If you choose to type in the ranges, be sure to:
• Spell the names exactly as they appear in the modeling matrix, other-
wise Quantrix will not recognize them and will report an error.
• Order the names so they’re easy to understand. For example, some
people prefer to go from general to specific—first the category, then
the item group, then the item.
Adding Comments
You can include comments in each formula field, either within or after the
end of a formula. Quantrix always displays the comments, but ignores them
when it performs calculations.
To add a comment within a formula, follow these steps:
1. Make the formula field editable by double-clicking it, and then click
to place your insertion cursor within the flow of the formula.
2. Begin the comment by typing /*
3. Type the comment.
4. End the comment by typing */
In the example below, the comment is half day.
In Friday, Hour/*half day*/=4
Adding Notes
You can add a note to any formula by following these steps:
• Select the formula.
• Choose Edit > Edit Note or right-click and choose Edit Note.
• Type your preferred text in the text box and select OK.
A blue triangle will appear in the upper left of the formula indicating that
there is an attached note. You can view the note when you hover the cursor
over the triangle.
To delete a note:
• Select the formula.
• Choose Edit > Delete Note or right-click and choose Delete Note.
For more information about notes, see “Category Notes” on page 128 and
Figure 10-7 on page 310.
Circular References
Consider this matrix:
displays the error message “This formula is involved in one or more circular
references.”
In most cases, you will encounter a circular reference because there is a
mistake in your model. When that happens, you can study the formulas in
the matrix to determine the source of the error. One useful debugging
technique is to delete one formula at a time (using Edit > Undo to reverse
each deletion) to see if there is a particular formula that is causing the
circular reference.
In certain cases circular references are useful. A simple example is shown in
Figure 6-1 that iteratively calculates a square root using circular references.
Empty Cells
Quantrix allows you to specify how it should treat empty cells during calcu-
lation. Most spreadsheets treat empty cells as zeros in simple arithmetic
operations. In that case, 2 + <empty> will result in 2. However, in some
cases it is valuable to treat empties as if the data is missing - so 2 +
<empty> will result in <empty>, indicating that the result is also missing.
To configure your model to treat empty cells as missing, perform the
following steps:
1. Choose Tools > Calculation > Calculation Settings... from the
menu
2. Ensure the Treat empty cells as missing values checkbox is
checked
Tip: This setting can be used in large, sparse matrices to improve memory
utilization of the application. If you have calculations that would result in
zeros where the matrix is sparse, Quantrix will use less memory if those
zeros were empties instead. Another way to accomplish this is to use the
clearzero function in your formulas.
In the example in Figure 6-3, the general constant value formula assigns a
value of 8 to all items in the Hour category, and then the constrained
formula uses the In instruction to make Friday an exception.
To achieve the same result, you can use the constrained formula with a Skip
instruction first, and then use the constant value formula second as shown
in Figure 6-4.
Note that you need a comma (,) after the In clause. You do not need to
precede the Skip clause with a comma, but if your Skip instruction includes
a list of items, you must separate them with commas.
Recurrence Formulas
A recurrence formula is a general formula that references specific items (and
therefore their cells) by using their position relative to other items. Consider
this recurrence formula:
Quarter[THIS]= Quarter[PREV]*Growth Rate
It tells Quantrix to calculate the value for all cells in a given quarter by multi-
plying the previous quarter’s value by a growth rate. This formula will
calculate the values forward over all of the quarters in your model.
You can also use recurrence formulas to establish relationships between
categories and item groups. Consider the example below, where Year is a
category, and Q1 is an item that belongs to the Quarter category.
Year[THIS]:Q1=Year[PREV]:Q4*Growth Rate
It tells Quantrix to calculate the value for the first quarter of this year by
multiplying the previous year’s fourth quarter value by a growth rate. This
formula will calculate the values forward over all of the years in your model.
With this type of forward calculation, you always need to provide an initial
value because the first item doesn’t have a previous item. In the example
above, you could precede your recurrence formula with a constrained
formula like this one:
In Year 1, Q4=4800
You often use recurrence formulas when calculating growth, where the
value of one time period is a function of another time period. Recurrence
formulas are also convenient when calculating running totals.
Quantrix recognizes the recurrence keywords shown in Table 6-3.
Tip: You can leave out the category name and the[THIS]keyword if it
makes your formulas easier to read. Quantrix will assume [THIS] if it is
not present in the formula. For instance: Total Income = Total
Income:Period[PREV] + Income
Soft Recurrence
You can force a calculation of an item, when no previous or next value
exists, by using a soft recurrence formula. You create a soft recurrence by
adding a tilde (~) in front of the keyword, e.g. [~PREV]. Quantrix will
assume a value of zero when calculating the first or next item.
Intermatrix Formulas
You can construct general and cell-specific formulas across matrices in your
model. Consider the example shown in Figure 6-5.
The first and second formulas of the Sales Projections matrix use the Rate
from the Assumptions matrix. Note the double colon (::) in the syntax:
Assumptions::Rate
In other words:
matrix name::unique item name
To write a formula that references another matrix, you enter first the matrix
name, then a double colon, and then the items just as you would if they
resided in the current matrix.
When matrices share a linked category (Region in the above example),
Quantrix automatically matches its items across the two matrices. Your
formula simply refers to Rate, and Quantrix takes care of the rest. For more
information, see “Using Linked Categories” on page 125.
Intermodel Formulas
You can construct formulas that refer to data in models contained in other
Quantrix model files using intermodel formulas. Consider the example
shown in Figure 6-6.
Tip: You should first save the source and destination files before entering
the intermodel formula. This allows Quantrix to more exactly locate the
source file with which to establish the link.
Updating Links
To update the links you established with an intermodel formula, choose
Tools > Calculation > Update Links...
If more than one additional model is being accessed by an intermodel
formula, a dialog box will appear that will allow you to select which links
you wish to update. In a complex model with many links this process may
take a minute or two.
Index Formulas
You use index formulas to override Quantrix’s automatic item-matching.
Rather than letting Quantrix automatically match the first item of each
category with the first item of all other categories, you can explicitly specify
which items to match by using their absolute position numbers. Consider
this example:
Net Income=Gross Income-COGS
If you wanted Quantrix to calculate the values only for the first year, you
could use this index formula:
Year[1]:Net Income=Year[1]:Gross Income-Year[1]:COGS
To calculate the second year’s COGS value to be 105% of the first year’s,
you could use this index formula:
Year[2]:COGS=Year[1]:COGS*1.05
Summary Formulas
You use summary formulas to perform calculations which summarize data
along a dimension. The results of these calculations should not be included
in further summary calculations along that dimension.
For instance, if you wanted to show the sum of the groups, you could write
formulas like this:
Group 1.Total = sum(summary(Group1))
Group 2.Total = sum(summary(Group2))
This would calculate the cells in the Total items underneath the Group1 and
Group2 to be the sum of the items in the groups. Then, if you wanted to
calculate the sum of all groups, you could write
All Total = sum(summary(Member))
Quantrix will automatically filter the group Total items because they are
calculated by summary formulas. This gives you more control to avoid
double-counting summaries in your calculations.
Tip: You can quickly and easily create summary formulas for groups or
categories by selecting the group or category and choosing Insert >
Summary Item then selecting the type of summary to create. This will
automatically create an additional item in the selected group or category and
insert a default summary formula in every matrix to which the category is
linked.
Using/As Formulas
You can utilize Using/As clauses in formulas to relate values that reside in
cells with item values that reside in dimensions.
The Using/As formula is used on the right-hand side of a formula and can
be broken into three parts:
• sum(Sales Data::Amount) is the value you want to return. In this
case, the formula returns the values in the ‘Amount’ item in the Sales
Data matrix. Since the formula will return multiple values, the item is
wrapped in a Sum function to get the total for each region.
• USING Sales Data::Region defines the key to be matched against
the specified category in the Using/As clause.
• AS Region specifies Region as the category used to differentiate the
sales data.
The formula evaluates each line of the Sales Data Matrix, uses each transac-
tion’s Region item to summarize by the appropriate region. As in other
Quantrix formulas, when any item or matrix name referenced by the
formula is changed in the model, the formulas will change accordingly and
automatically. To view this model, choose Help > Sample Models from
the menu and pick the UsingAs.model.
Note: Using / As statements must come at the end of the formula. This
is true even when the Using / As statement only applies to part of a formula
containing many functions.
The @ operator returns the textual representation of the item name to the
cell. The # operator returns the position of the item name in the category to
the cell.
Description Function
Using Functions
Quantrix includes a library of functions that perform well-understood and
often complex calculations.
Select Function
The Select function is unique to Quantrix and can add very powerful
capabilities to your model. Select formulas are database-like formulas that
allow you to quickly select a range of data based on a key list. The proper
syntax for using the SELECT function is select(value_list,
key_list, lookup_value). The SELECT function is utilized in
Figure 6-11 and has 3 arguments.
1. Value List - The range of values the function can return. In this case,
the sales data located in the Year dimension of the Sales Data Matrix.
2. Key List - The lookup ‘keys’ associated with the values. In this case
the category for each item number in the Key Matrix.
3. Lookup Value - The lookup value to be used when evaluating the
key list.
In this example, the entire select statement is wrapped in a sum function
that summarizes sales figures for each category.
Variations of the SELECT function include selectbetween, selectlessthan, select-
greaterthan, selectlist and selects. See Appendix B for more information on these
functions.
Tip: You can often utilize Using/As instead of the SELECT function to
make your formulas more readable. See page 184 for more information
about Using/As.
Calculation Order
The formula editor displays your formulas in the order in which Quantrix
performs calculations. Quantrix first calculates formula 1, followed by
formula 2, and so on. In a case where more than one formula is responsible
for calculating the value for a cell, the formula with the highest number (that
is, the last formula that calculates the cell’s value) wins. In this situation, the
winning formula is said to eclipse the other formula, and Quantrix alerts you
to this condition as shown in Figure 6-12.
To change the calculation order, you need to change the order of the
formula fields. See “Reordering Formula Fields” on page 171.
Calculation
Icon
Eclipse Notification
When more than one formula calculates the value for the same cell,
Quantrix displays an Eclipse notification message on a new line in the
formula field of each formula that is involved. Consider the example in
Figure 6-13.
Formula 2 eclipses formula 1. This means that Quantrix uses the values
calculated by formula 2 and ignores those calculated by formula 1. You do
not need to eliminate the eclipse; Quantrix notifies you about the condition
in case you created it inadvertently.
For information on changing the calculation order, see “Calculation Order”
on page 191. For information on using the Insert Skips command, see
“Using the Insert Skips Command” on page 179.
You should correct the mismatch to ensure the validity of your formula.
Too few arguments means that you have used a function that requires
multiple arguments, but not all of the argument values have been filled in.
Use the function help in the formula toolbar for help with function
arguments.
Errors
When Quantrix cannot interpret your formula, it displays a red X ( ) in
the status column, along with a message to help you find the error. It also
changes the matrix’s icon in the Model Browser to reflect the error condi-
tion ( ). You must correct the error before Quantrix can calculate the
rest of the formulas.
Syntax Errors
Syntax error messages report the last point in the formula (surrounded by
single quotes) that Quantrix could interpret. The messages have this form:
syntax error after ','
This means there is a problem in the text that follows the comma. For
formula syntax information, see “Formula Syntax Tips” on page 167.
Naming Errors
Naming error messages report that either the name you specified doesn’t
exist, or your model contains more than one category or item with the same
name. The messages have this form:
There is no element named 'Growth' in matrix 'Sales'.
There are multiple elements named 'Total' in matrix 'Sales'.
When there are multiple elements, you need to provide more specific infor-
mation about the one element that you want to include in your formula. You
can either prepend the element’s name with this information (see “Naming
Structural Elements” on page 117), or you can click the element that you
want and Quantrix inserts the full name for you.
Troubleshooting Tips
To check which formula is calculating a particular cell, follow these steps:
1. Select the cell.
2. Inspect the formula editor; Quantrix highlights the formula that
calculates the cell.
To check which cells a particular formula calculates, follow these steps:
1. Click to select the formula.
2. Inspect the table; Quantrix highlights the cells that the selected
formula calculates.
To distinguish calculated cells from input cells, follow these steps:
1. Choose View > Show Input Cells.
2. Inspect the table; Quantrix displays a small green triangle in the
upper righthand corner of each input cell.
3. To remove the triangles, choose View > Show Input Cells again.
To resolve a warning or error condition, be sure to read Quantrix’s message
carefully. It attempts to point you toward a solution.
Expressions
Expression Concepts
Several features in Quantrix Modeler make use of Expressions. Expressions
are a lot like Formulas except they do not have a left-hand range. Expres-
sions are used as a general way to provide access to data inside the model
for presentation or display purposes.
Note: When used inside of text blocks, expressions are surrounded with
curly braces, {}, this tells Quantrix to evaluate the text between the braces
as an expression and insert the result into the text.
Embedded Expressions
When using expressions in Headers, Footers, Chart Titles or on the Presen-
tation Canvas, the syntax for embedding an expression into text looks like
this:
{expression}
The expression is surrounded by curly-braces, {}. When you are done
editing the text, Quantrix will calculate the expression’s value and insert the
result into the surrounding text. You can also, optionally, use the number
formatting codes to specify how the result should be formatted. The syntax
for applying a number format is as follows:
{expression | number-format}
After the expression, you type a vertical-line (pipe) character, |, then the
number format string. See “Creating Custom Number Formats” on
page 214 for more information on number formatting syntax.
For example, if you wanted to include the maximum value from the cells in
the Value range of the matrix, you could use an embedded expression like
this:
Maximum value achieved: {max(Value)}
Which could yield something like this:
Maximum value achieved: 6.875
If you desired to show only one decimal place of precision, you could
format the result like this:
Maximum value achieved: {max(Value) | #.#}
Which might yield:
Maximum value achieved: 6.9
Any function or formula can be used as an expression. A list of common
expressions and the correct syntax associated with each, can be found in
Table 6-8.
Chapter 7
Formatting a Model
Quantrix includes several formatting tools and techniques that you can
use to enhance the appearance of your models. This chapter introduces
the tools and provides instructions on how to use them.
Chapter 7: Formatting a Model
204
About the Formatting Tools
Format Toolbar
The format toolbar provides shortcuts for commands in the Format menu
and in the Format Toolbox. Position your cursor over each button to see
its name.
Format Toolbox
The Format Toolbox controls the appearance and layout of data and
charts. Open the Format Toolbox in one of these ways:
• Choose Format > Format Toolbox
• Click the Format Toolbox button ( )
You can keep the Format Toolbox open at all times; it appears in the tool
area of the model window. When you make a change using the Format
Toolbox, Quantrix applies the change immediately; you do not need to click
an Apply or OK button to explicitly apply it.
The Format Toolbox only displays the formatting options that are available
for the element your cursor is focused on. You can hide the Format
Toolbox at any time by clicking the Format Toolbox button ( ) or the
tab close button ( ).
You can detach the Format Toolbox, as you would any tab, by selecting the
Detach button ( ) next to the title. You can re-attach the Format
Toolbox at any time by selecting the Attach button ( ). The tab will be
re-inserted in its original position.
Format Menu
You use the Format menu to:
• open the Format Toolbox
• apply font styles to text
• apply conditional formatting
• constrain cell input
• control the alignment of text
• collapse or expand items
• set financial formatting
• hide default grid lines
Pop-Up Menus
You can press the right mouse button to see a pop-up menu when your
cursor is positioned on an item or cell. Use these menus to open the
Format Toolbox, apply conditional formatting or constrain input.
Customizing Fonts
You can change the appearance of cell data, item labels, chart annotations,
and Model Browser comments.
To change font appearance using the Format Toolbox, follow these steps:
1. Select the text that you want to format.
2. Open the Format Toolbox in one of these ways:
• Choose Format > Format Toolbox.
• Click the Format Toolbox button ( ).
• Position your cursor over the selected text, press the right mouse
button, and then choose Format Toolbox from the pop-up menu.
3. Open the Font section by clicking the Open Section button ( ).
The Font section offers the options shown in Figure 7-3. To set a
default font for all of your new models, see “Setting A Default Font”
on page 68.
To change font appearance using the format toolbar, follow these steps:
1. Select the text that you want to format.
2. Choose from a drop-down menu or click a button in the format
toolbar to immediately apply a new option.
3. To undo an unwanted change, choose Edit > Undo.
To change font appearance using the format menu, follow these steps:
1. Select the text that you want to format.
2. Choose Format > Font.
3. Choose one of five font formatting options (Bold, Italic, Under-
line, Increase Size, Decrease Size) from the sub-menu.
4. To undo an unwanted change, choose Edit > Undo.
Aligning Text
To change the alignment of cell data or item labels, follow these steps:
1. Select the text that you want to align.
2. Choose an alignment in one of these ways:
• Click the Align Left ( ), Align Center ( ) or
Align Right ( ) toolbar button.
• Choose Format > Text Alignment, and then choose from the
sub-menu of six alignment commands (Left, Center, Right, Top,
Middle, Bottom).
• Open the Alignment section of the Format Toolbox by clicking
the Open Section button ( ). Choose the new options for
horizontal and vertical alignment from the drop-down menus. As
soon as you choose an option, Quantrix applies it to your selected
text
3. To undo an unwanted change, choose Edit > Undo.
Formatting Numbers
You can change the precision, alignment, and notation of numbers that
appear in cells. All options for formatting numbers are available under the
Number Format section in the Format Toolbox; some shortcuts are also
available in the format toolbar. By default, Quantrix formats all numbers in
a general way—with no symbols before or after the number and unlimited
precision.
To access all options for formatting numbers, follow these steps:
1. Open the Format Toolbox to the Number Format section in one
of these ways:
• Choose Format > Format Toolbox, choose the Open Section
button ( ) of the Number Format section.
• Click the Format Toolbox button ( ), and then click the Open
Section button ( ) of the Number Format section.
• Position your cursor over a cell or item, press the right mouse
button, then choose Format Toolbox from the pop-up menu.
Open the Number Format section by clicking the Open Section
button ( ).
The Number Format section offers the options shown in Figure 7-4.
3. To apply any of the options, select the numbers whose format you
want to change, choose an entry from the Type list, and then change
the options. Quantrix applies the changes immediately.
4. To undo an unwanted change, choose Edit > Undo.
5. When your changes are complete, you can either click the Close
button to close the Format Toolbox, or leave it open for future use.
To change number formatting using the format toolbar, follow these steps:
1. Select the cell(s) that you want to change.
2. Click one of the six number buttons in the format toolbar: Currency
( ), Accounting ( ), Number Format Drop-down ( ),
Percent ( ), Increase Decimal ( ), or Decrease Decimal
( ).
The following sections describe specific ways to format numbers.
Note: Even if you shorten the number of decimal places displayed, full
precision is maintained and the cell value is stored in the model with all the
decimal points.
Tip: To automatically set the Number format with two decimal places
and Using Accounting Alignment and Show Thousands Separator
options turned on, choose one of these methods:
Tip: Selecting Custom > Scientific from the Number Format Drop-
down menu ( ) will automatically set the Number format with two
decimal places and Using Scientific Notation turned on.
Formatting Currency
The default format for currency is determined by the locale settings in your
computer operating system. For instance, in the United States, these settings
include a US dollar sign, thousands separators, and two decimal places; for
example: $12,456.00. To change the default currency symbol, thousands
separator, and decimal separator, see “Choosing Currency Symbol and
Separators” on page 65.
To format currency and use accounting alignment, select the cell(s) that you
want to format and use one of the methods described below:
• Click the Currency button ( )
• Select Currency from the Number Format drop-down menu ( )
Both methods will automatically set the Currency format with two decimal
places and Using Accounting Alignment and Show Thousands
Separator options turned on.
To format currency using different options, follow these steps:
1. Select the cell(s) that you want to format.
2. Choose Format > Format Toolbox, choose the Open Section
button ( ) of the Number Format section, choose Number
from the Type drop-down menu.
3. Change the currency style in one or more of these ways:
Note: Quantrix changes the currency formatting for the selected cells,
but it does not change the default currency format.
Formatting Percentages
To control the precision of percentages, follow these steps:
1. Select the cell(s) that you want to format.
2. Choose Format > Format Toolbox, choose the Open Section
button ( ) of the Number Format section, choose Percent from
the Type drop-down menu, and then increase or decrease precision
by selecting the number of Decimal Places and typing the number
desired.
You can also use the Format Toolbox to apply the following formats to
percentages:
• Add or remove commas by checking the Show Thousands
Separator checkbox.
• Display in scientific notation.
Formatting Fractions
To control the precision of fractions, follow these steps:
1. Select the cell(s) that you want to format.
2. Choose Format > Format Toolbox, choose the Open Section
button ( ) of the Number Format section, choose Fraction from
the Type drop-down menu.
3. Use the Format Code drop-down menu to choose how you would
like the fractions to appear.
Tip: Selecting Custom > Fraction from the Number Format Drop-
down menu ( ) will automatically set the Fraction format with Up to
One Digit formatting turned on.
2. Click the (...) button, next to Format Code, to display the Edit
Custom Number Format panel as shown in Figure 7-6. Proceed
with Step 3 on page 215.
3. At this point you can use an existing saved custom format, delete an
existing format or create a new one.
• To use an existing saved format, click on the saved format to select
it, and then click OK.
• To delete a custom format, click on the desired format and then
click Remove.
• To build a new custom format, enter the format code in the text
box provided, and then click Add. You will be prompted to add an
optional description for the custom format.
Note: If you assign a description to your own custom formats, they will
appear in the Number Format drop-down menu under Custom.
m 1-12
mm 01-12
Months mmm Jan-Dec
mmmm January-December
mmmmm J-D (first letter of each)
d 1-31
dd 01-031
Days
ddd Sun-Sat
dddd Sunday-Saturday
yy 00-99
Years
yyyy 1900-9999
h 0-23
Hours
hh 00-23
m 0-59
Minutes
mm 00-59
s 0-59
Seconds
ss 00-59
AM/PM (use the 12- AM/PM AM or PM
hour clock) A/P A or P
h AM/PM 4 AM
Time h:mm AM/PM 4:36 PM
h:mm:ss A/P 4:36:03 P
[h]:mm 25:02
Elapsed time [mm]:ss 63:46
ss :46
.
Table 7-2. Customizing spacing, significant digits, conditionals, text, and colors
Table 7-2. Customizing spacing, significant digits, conditionals, text, and colors
Custom Formats
Table 7-3.
Extended
Use
Format
Customizing Lines
You can customize the horizontal and vertical lines of your model’s tables by
controlling their color, pattern, thickness, spacing, and by adding graphical
elements (such as an arrowhead) to each end.
When you select a row and then customize it, Quantrix always applies your
line changes to the horizontal line on the bottom of the item and its cells;
when you select a column, Quantrix applies the changes to the right-hand
side.
To customize lines using the Format Toolbox, follow these steps:
1. Select the line(s) in one of these ways:
• To select the bottom horizontal line that begins at a row item and
ends at that item’s last cell, click the row item.
• To select the right-hand vertical line that begins at a column item
and ends at that item’s last cell, click the column item.
• The header line is the first line separating the cells from the items
in either the row or column and can be formatted separately.
Quantrix Modeler User Guide
Chapter 7: Formatting a Model
220
Customizing Lines
Note: You cannot customize the line style of a single cell or item; line
styles apply to the entire row or column, including the item name.
• Click the button’s arrow and then choose a different option from
its menu.
3. To undo an unwanted change, choose Edit > Undo.
Tip: To introduce additional whitespace into your model, you can use a
large double-line. If more space is desired, you can grab the bottom or left
line of a large double-line and stretch the spacing inside the double-line.
5. When your changes are complete, you can either click the Close
button to close the Format Toolbox, or leave it open for future use.
To change colors using the format toolbar, follow these steps:
1. Select the item(s) or cell(s) that you want to change.
2. Apply a color change in one of these ways:
• Click the Fill Color ( ) button to apply the color shown on its
button.
• Click the button’s arrow and then choose from its color palette. To
choose a custom color, click the More button in the palette,
choose a new color from the Colors dialog box, and then click
OK.
3. To undo an unwanted change, choose Edit > Undo.
1. Position your cursor over the righthand edge of the item so the
cursor changes to a resize arrow ( ).
2. Drag the edge to resize the column. Quantrix changes the size of all
columns that contain an instance of the item.
While re-sizing a column or row in this manner, you will see a Tool Tip box
showing the measurement of the column or row as it changes.
To change the height of a row, follow these steps:
1. Position your cursor over the bottom edge of the item so the cursor
changes to a resize arrow ( ).
2. Drag the edge to resize the row. Quantrix changes the size of all rows
that contain an instance of the item.
Tip: To resize a subset of items, select only those items that you want to
resize, position your cursor at the bottom or right-hand edge of an item, and
then drag to resize all selected items.
Automatic Resize
To automatically resize items, select items that you want to resize, position
your cursor at the bottom or right-hand edge of an item, and then double-
click to automatically resize all selected items to the proper size.
Chapter 8
Charting a Model
You can create a chart from any modeling matrix, and then customize it
by changing its type, size, color, orientation, and data series layout.
Chapter 8: Charting a Model
228
About Chart Views and Charting Tools
chart view
chart
legend
charting
table
A chart view, like a table view, is permanently linked to its matrix by its
structure, logic, and data; for details, see “About Views” on page 32.
Tip: To display a tooltip summary of what the chart data series represents,
hover the cursor over the chart data.
Professional Edition:
• Row: To display each item’s chart in a separate row on the chart grid
and items as rows on the charting table.
• Column: To display each item’s chart in a separate column on the
chart grid and items as columns on the charting table
See “Chart Grid” on page 257 for more information.
Format Toolbox
You control the appearance of charts and legends using the various sections
of the format toolbox. When you click on the Format Toolbox you will see
only the options available for the item you are formatting.
Figure 8-2 shows the Format Toolbox chart options with series on a 2D bar
chart selected.
Type Variations
Area (2D)
Bar (2D)
Bar (3D)
Box/Whisker (2D)
Combination (2D)
Line (2D)
grid Ribbon (3D)
Stacked Area (2D)
Stacked Bar (2D)
Statistical Bar (2D)
Statistical Line (2D)
Statistical Plot (2D)
Surface (3D)
Plot (2D)
scatter Scatter (2D)
Scatter (3D)
pie Pie (2D)
Area Radar (2D)
Bubble (2D)
radar
Polar (2D)
Radar (2D)
For 2D grid charts, Quantrix plots each data series on the X-axis; it uses the
category tiles in the row tray to plot the data points, and then labels the Y-
axis according to the values as shown in Figure 8-3.
For 3D grid charts, Quantrix plots the data series on the X-axis, the points
on the Y-axis, and the value on the Z-axis as shown in Figure 8-4.
Mac OS X: Hold down the ALT key while dragging the chart view to
the Model Browser.
Quantrix Modeler User Guide
Chapter 8: Charting a Model
235
Creating and Managing Chart Views
Figure 8-7. Data series generated from a tile in the column tray
When you swap the positions of the category tiles, it looks like Figure 8-8.
New: The chart legend appears in its own designated area of the chart
view. Quantrix can show the chart legend vertically, horizontally, or hide it
from view.
You can adjust the size of the legend area when visible by hovering the
cursor between the chart and legend until a resize arrow ( ) appears.
Drag to re-size the legend as desired.
Tip: A double-click on a series data item will select the data point and
highlight the corresponding cell in the table view.
color, click More... in the palette, choose a new color from the
Colors dialog box, and then click OK.
Note: Changing the font color also changes the color of its axis.
3. Open the Chart Axis section in the Format Toolbox by clicking the
Open Section button ( ).
4. Place a checkmark in the Show Grid Lines (and/or Show
Secondary Grid for 3D charts) checkbox. Hide the grid lines by
clicking to remove the checkmark(s).
Note: If you have not selected a data series, the Chart Series and Chart
Series Style sections of the Format Toolbox do not appear.
Details on 2D Charts
When you change the spatial settings of a 2D bar, combination, or pie chart,
Quantrix gives the chart a 3D appearance. Changing the spatial settings of
other 2D chart types does not change their appearance. You control the
spatial settings in the following ways:
• The Rotation value controls how far Quantrix rotates the chart
around its Y-axis (to the left).
• The Elevation value controls how far Quantrix tilts the chart
forward or backward around its X-axis.
• The Depth value controls how thick, front to back, Quantrix makes
the data series of the chart.
• The Cluster Spacing value controls how much space Quantrix
inserts between each set of bars that represent a point.
To change the settings of a 2D chart, follow these steps:
1. If the Format Toolbox is not open, click the Format Toolbox
button ( ) and open the Chart section in the Format Toolbox by
clicking the Open Section button ( ).
When you change the Rotation to 15, you see some depth.
When you change the Elevation to 10, you can see all dimensions.
Now when you change the Depth to 30, you can see the effect immediately.
Details on 3D Charts
Quantrix presents 3D charts within a gridded cube, where the X-axis
contains the data series, the Y-axis contains the data points, and the Z-axis
contains the values as shown in Figure 8-15.
Setting Description
2D Chart Settings
The following table describes chart settings applicable only to 2D chart
types:
Table 8-3. 2D Chart Settings
Setting Description
Setting Description
Other Slice For pie charts, the label display for the ‘other’ pie
Label slice.
Slice Offset For pie charts, specifies how much to offset an
exploded pie chart.
Threshold (%) For pie charts, specifies the minimum percentage
value before a slice gets collapsed into the ‘Other’
slice.
Box/Whisker Specifies the data summary set to use for the
Option whisker chart. Choosing the Min, Q1, Q3, Max
option means that the Min will be taken from first
column of data, the first quartile from the second
column of data, etc. Your data should be set up
correctly for the option you choose.
Statistical Specifies what points to use for the range of the
Option statistical bars.
Use Error Bars Controls the display of the cross whiskers on the
statistical bar & box/whisker chart.
Rotation Controls how far Quantrix rotates the chart around
its Y-axis (to the left).
Elevation Controls how far Quantrix tilts the chart forward
or backward around its X-axis.
Depth Controls how thick, front to back, Quantrix makes
the data series of the chart.
Points are On a 2D plot, specifies to use a numeric row item
Domain Values value as the domain axis.
Interpolate On a 2D plot, draws a line between missing series
Missing Values values.
Hide Empty Will not plot any item with empty values in the
Points rows of the table view associated with the chart.
Setting Description
Hide Empty Will not plot any item with empty values in the
Series columns of the table view associated with the
chart.
Axis Scaling Specifies the axis scaling option for charts in a
Chart Grid. For more information on the various
scaling options, see “Scaling Options” on
page 261.
3D Chart Settings
The following table describes chart settings applicable to 3D chart types:
Table 8-4. 3D Chart Settings
Setting Description
Setting Description
Any items that are added to the chart series after setting the default will
follow the same pattern of formatting as shown in Figure 8-17.
The default settings are set for the current chart only.
Tip: To make these settings available for multiple charts, save the model
as a template. See page 61for more information on templates.
Setting Description
Setting Description
Chart Grid
Professional Edition: It is often desired to create a visual
representation of the individual components of your data table. With chart
grid, you can display your data in multiple charts to be viewed simulta-
neously. Quantrix Professional users have the ability to create a Chart Grid
that simulates a table with a chart created for each cell value.
Your chart will appear in a Chart Grid whenever there is more than one item
in the row or column tray of the matrix or table view used to create the
chart.
Expand a Chart
Double-clicking on a chart in the chart grid will expand that chart to fill the
entire charting canvas as shown in Figure 8-21. Click on the close chart icon
( ) to return to the Chart Grid.
Formatting a Chart
Formatting changes in a Chart Grid will be applied to all charts in the grid.
For more information on formatting charts, see “Common Chart Format-
ting Techniques” on page 236.
In Figure 8-22, formatting was applied to both axes in the Widget.YTD
chart. Quantrix automatically applies those same changes to all of the charts
in the grid.
Scaling Options
New: Quantrix has five options for the axis scaling of charts in a Chart
Grid. The options available are:
• Data Items: charts within the same data item use a common scale
• Individual Chart: each chart’s axis is scaled independently as shown
in Figure 8-23.
When you make the category a Data Item Category, Quantrix will display
each item in the chart grid with an independent axis, as shown in Figure 8-
25 on page 264.
Chapter 9
Presenting a Model
presentation
view
toolbar
filter tray
presentation
canvas
Presentation Canvas
The presentation canvas contains one presentation and all of the views,
charts and custom objects that you add to it.
You use the canvas table or chart components just as you use the table in a
table or chart view; for details, see “Using the Table” on page 43. When you
rearrange category tiles in a chart or table, you change the layout of the chart
or table; you do not change the layout of the modeling matrix to which it is
linked.
Presentation Toolbar
The presentation toolbar in the presentation canvas tab provides formatting
and drawing tools that are unique to presentations; you use them to
customize and manipulate objects on the presentation canvas. Any format-
ting changes made on the presentation canvas do not affect the formatting
of the components to which they are linked. Other formatting tools are
available in the Format Toolbox and in the format toolbar in the model
window.
You can add table views, charts and annotations to the canvas and
customize them in many ways. To get started, see “Adding Table and Chart
Views” on page 271.
Quantrix removes the presentation canvas tab and the presentation canvas
entry from the Model Browser.
Tip: When using the Insert Canvas Table View button ( ) to place
the selected table view on the canvas, you can click and drag to create a
custom sized space for the view. The view will have scroll bars turned on,
allowing you to scroll through the view, if the window is smaller than the
view’s size.
2. Position the cursor over the desired location on the canvas and
click to place the chart on the canvas.
Note: The Insert Canvas Chart View dialog box lists all table views
and chart views in the model. Choosing an existing chart will insert the chart
in its existing format. Choosing an existing table view will create a new chart
based on the table view chosen.
A blue box will be drawn around the view and a gray shading will highlight
the view that can be interacted with as shown in Figure 9-3.
In Interaction mode, you can interact with the table view on the canvas as
you would in an individual view. You can add, delete or rename items; edit
cell values; format cells or items; hide, unhide and manipulate category tiles.
For more information on working with table views, see “About the Table
View” on page 54.
A blue box will be drawn around the chart and a gray shading will highlight
the chart that can be interacted with.
In Interaction mode, you can interact with the chart as you would in an
individual chart view. You can select the chart to change the chart type or
format and resize the chart; select a series to format; select an axis to format;
select a legend to make visible or invisible.
For more information on working with chart views, see “About the Chart
View” on page 52.
Note: Any 2.4 model file with a chart, opened in version 3.0 or higher,
will open the chart in a presentation canvas. The chart’s table will be
exposed and any chart annotations (shapes, text etc.) will be displayed on
the canvas. To turn a canvas chart view back into Model Browser chart
view, see “Creating Views from Canvas Objects” on page 234.
In this example, the Year category is linked between the Balance Sheet,
Income Statement and Key Income Statement Items chart. By
clicking on the Year category drop-down arrow in the filter tray, and
changing the item to a different Year value, the data will change in the three
linked views to the information for the new year.
To move a category to the canvas filter tray, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Click on the desired chart or table view on the canvas to select it.
3. If the category tiles are not visible, Choose View > Hide Category
Tiles or right-click Table > Hide Category Tiles to un-check this
menu choice and expose the category tiles for the view.
4. Click and drag the category tile from the view to the presentation
canvas filter tray, located under the canvas toolbar.
The same steps can be performed for other views on the canvas that share
the linked dimension. The dimension will merge into the existing category
on the filter tray. Any changes to the category’s item in the filter tray will
affect all views that have their linked category tiles on the canvas filter tray.
Note: You can move category tiles to a different axis in the view, or link
them to another view on the canvas. Choose View > Hide Category Tiles
to expose the category tiles for the view. Then click and drag the category
tile to the desired location.
In this case, the Loan Years dimension is shared between the two canvas
table views. To snap the views together on the canvas, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Ctrl-click each view to select both objects.
3. Right-click and choose View Snap > Snap View Vertically from
the context menu.
4. Use the checkboxes to hide the column headers and collapse the
spacing as desired, as shown in Figure 9-6, then click Finish.
At this point, the views will be snapped together. You can move the views
and format the items and cells in one action.
To unsnap the views, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Right-click on the snapped view and choose View Snap > Remove
Snaps from the context menu.
At this point, the views on the canvas are independent of each other and can
be moved and formatted individually.
Tip: When typing in the text, you can force a new line by pressing the
CTRL and ENTER keys at the same time.
You can format this text using the Format Toolbox or format toolbar; for
details, see “Customizing Fonts” on page 206. You can manipulate the text
like all other objects on the presentation canvas; for details, see “Manipu-
lating Objects on the Presentation Canvas” on page 293. You can set
variable text parameters in a text annotation by utilizing Expressions; for
details, see “Using Expressions in Presentation Annotations” on page 292.
4. Use the Setup Slider window, as shown in Figure 9-7, to set the
slider properties. See Table 9-1 for definitions of slider property
settings.
Setting Description
Setting Description
5. Place the drop down object on to the canvas by clicking the desired
location.
5. Place the toggle switch object on to the canvas by clicking the desired
location.
4. Use the Radio Button Setup dialog box, as shown in Figure 9-10, to
set the properties.
5. Place the radio button object on to the canvas by clicking the desired
location.
4. Use the Dial Gauge Setup dialog box, as shown in Figure 9-11, to
set the properties.
5. Place the dial gauge object on to the canvas by clicking the desired
location.
Adding Graphics
There are three types of lines that can be added to a canvas.
• Straight Line - Inserts a straight line at each point.
• Curved (bezier) Line - Inserts a curved line at each point.
• Rectilinear Line - Inserts right angled lines at each point
To add a line, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Click the arrow next to the Insert Line button ( ) in the presenta-
tion toolbar and select the desired line from the drop-down menu.
3. Click the location in the presentation canvas where you want the line
to begin.
4. Move the mouse and the line will start to draw on the canvas. Click
the mouse button once to set a line point. Continue to set additional
line points by moving the cursor to the desired location and clicking
the mouse button again.
5. To end the line at the desired point on the canvas double-click the
mouse button.
Tip: To remove a point from a line with multiple points, press and hold
the ALT key while clicking on the point.
4. In the file browser, navigate to and select the image file you want to
import.
5. The image appears on the presentation canvas where you can re-size
it as needed.
To delete an image, click to select it, and then press DELETE.
Tip: Once the image is imported, you can automatically resize the annota-
tion to the proper size. Right-click the image and choose Resize to Image
from the pop-up menu.
Tip: The same color options are available on the Background section of
the Format Toolbox.
Tip: The same color and style options are available in the Line section of
the Format Toolbox.
Moving Objects
To move an object, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Position your cursor over the object that you want to move, and then
press and hold down the mouse button so your cursor changes to a
move icon ( ).
3. Drag the object to a new location.
Move to Front
To bring an object that is behind another object to the front, follow these
steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Click the object on the presentation canvas that you want to move to
the front.
3. Click the Move to Front button ( )in the presentation toolbar.
Move to Back
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Click the object on the presentation canvas that you want to move to
the back.
3. Click the Move to Back button ( )in the presentation toolbar.
Resizing Objects
To resize an object, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Click to select the object; Quantrix displays resize handles on each
corner and in the center of each side of the object.
3. Drag a handle to resize the object.
Note: To resize a table view on the canvas, turn on scroll bars for the
object by opening the Table View section of the Format Toolbox and
placing a check in the Use Scroll Bars checkbox.
Copying Objects
To copy an object on the same canvas, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Right-click on the object and choose Copy from the menu.
3. Right-click on the canvas in the desired location and choose Paste
from the menu.
To copy an object to a different canvas, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Right-click on the object and choose Copy from the menu.
3. Click on the new canvas to bring it into view. Right-click on the
canvas in the desired location and choose Paste from the menu.
To copy an object to an outside application, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Right-click on the object and choose Copy from the menu.
3. Click on the outside application to bring it into view. Access the Edit
menu of the application and choose Paste from the menu.
Note: You can copy multiple canvas objects at once. Prior to copying,
hold the SHIFT key down and click and select the multiple objects or hold
the mouse cursor down on an empty canvas location and draw a selection
box around all of the objects.
Deleting Objects
To delete an object, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Click to select the object.
Rotating Objects
Canvas objects’ orientation can be rotated on the canvas. To rotate a canvas
object, follow these steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Click on the canvas object you would like to rotate.
3. Click on the rotate handle ( ) and drag until the desired rotation is
reached.
4. Or, use the Rotate Canvas Object drop-down arrow ( ) in the
presentation toolbar to set the rotation degrees. To rotate multiple
objects, drag to select all of the objects that you want to rotate.
Tip: You can interact with individual objects in the group by double-
clicking the group while in Layout ( ) mode.
To delete a manually set page break on the presentation canvas, follow these
steps:
1. Choose Layout ( ) mode in the presentation toolbar drop-
down.
2. Delete the page break in one of the following ways.
• Hold the CTRL key down and right-click on the page break to
delete it.
• Right-click on the page break and choose Page Breaks >
Remove Page Break from the pop-up menu.
Tip: You can use keyboard shortcuts to nudge objects on the presenta-
tion canvas. After selecting the object you want to nudge, use Alt+Up
Arrow, Alt+Down Arrow, Alt+Left Arrow, or Alt+Right Arrow to move
the object in the desired direction.
Setting Description
Tip: You can have more than one snap setting active at the same time.
Chapter 10
Printing a Model
You can print all or part of your model, and can customize its printed
appearance in a variety of ways.
Chapter 10: Printing a Model
302
About Printing
About Printing
Models often include many different matrices and views, each of which may
be filtered in one or more ways. You can print one matrix or view at a time
or you can print groups of matrices and views. Depending on the type of
component you choose to print, Quantrix offers different options for
printing some or all of it.
• For matrices, you can print the table, the formulas, and/or the notes.
• For chart views, you can print the chart, the charting table, and/or
the notes.
• For a presentation canvas, the entire canvas can be printed on one or
multiple pages.
• When a matrix or view includes a filtered table (where there are
category tiles in the filter tray), you can print only the current page or
all pages.
For example, say you have a chart view that has two category tiles in the
filter tray of its charting table, and each category contains 5 items. If you
choose to print all results (5 items * 5 items, or 25 results) for both the chart
and the charting table, Quantrix will print 50 pages.
Note: The preview window does not indicate the total number of pages
that Quantrix will print. After you click the Print button, you will be able to
check this in your printer’s dialog box.
4. If you are satisfied with the preview, print the file by clicking the
Print button. Otherwise click Page Setup to change printing
options; for details, see “Changing Printing Options” on page 307.
5. To close Print Preview and return to the standard model window,
click the Close button.
You can print multiple table or chart views on the same page by creating a
presentation. For more information on the presentation canvas see
“Presenting a Model” on page 267.
Note: Be sure to check the number of pages in the print job; if you are
printing a filtered matrix or view, this number may be very high. See also
“About Printing” on page 302.
Note: The Header / Footer, Margins and Notes options set on the
folder will override those settings on the views only when printing the entire
folder.
Figure 10-3. Page Setup dialog box for a matrix, table selected
Figure 10-4. Page Setup dialog box for a matrix, formulas selected
• To include the chart of a chart view, click the Chart icon to select
it, and then click to place a checkmark in the Print chart
checkbox.
Figure 10-5. Page Setup dialog box for a chart view, chart selected
• For matrices, table views and chart views, you can also elect to
print the Notes for that view, or not, by clicking the Notes icon to
select it and by placing a checkmark in the Print Notes checkbox.
Figure 10-7. Page Setup dialog box for a table view, notes selected
Tip: You can also include and exclude these sections using the Print
Preview window; for details, see “Previewing Model Components Before
Printing” on page 303.
Tip: When scaling to fit on a certain number of pages, you can set just
one of the page across or down settings. If a 1 is entered in the page across
and the page down is left blank, the print will fit on one page across and the
system will determine the proper number of pages to print down.
4. Change the header and footer options in one or more of these ways:
• To remove headers and footers from all pages, choose (none)
from both of the Select drop-down menus.
• To add a header or footer to all pages, choose one from the Select
drop-down menu; Quantrix displays the one you choose so you
can preview it.
Note: To add to or change the headers and footers that appear in the
drop-down menus, see “Customizing Headers and Footers” on page 314.
3. Name (or rename) the format by entering text in the Name field.
When you have completed your customization, this name will appear
in the drop-down menu of the Header/Footer tab.
Quantrix gives you the ability to insert images into your headers and footers,
see “Image” on page 315.
Note: If the image is too large, it may print over your matrix. This can
be corrected by adjusting the margins in File > Page Setup..> Margins.
See “Setting Page Margins” on page 318 for more information.
• You can also use an expression to insert calculated values into the
header or footer. The expression must be surrounded with curly-
braces, {}, and can optionally include a number format code. See
“Expressions” on page 200 for more information about
expressions.
5. Delete unwanted elements by selecting them and then pressing the
DELETE key.
6. When your customization is complete, click the OK button.
7. Preview the customization on the Header/Footer tab; to make
more edits, click the Edit... button.
Quantrix Modeler User Guide
Chapter 10: Printing a Model
316
Changing Printing Options
Note: To use the same Page Setup options across multiple views,
charts, and matrices see the note under “Printing Multiple Views” on
page 306.
Note: If you have multiple categories in the filter tray of the item you
wish to break on, you can constrain the page break to occur after a specific
instance of that item by holding down the SHIFT key and clicking on the
items outside of the target item to constrain the selection before you insert
the page break.
Chapter 11
Sharing a Model
There are many ways for you to display all or part of a model in a
different application. You can also import from and export to different
file formats, and can copy and paste existing spreadsheet data into
Quantrix model files.
Chapter 11: Sharing a Model
320
About Quantrix Viewer
Upon opening the Quantrix Viewer, users will see this Quantrix Launch
Panel.
The Quantrix Viewer utilizes the Viewer Role in the model and the default
permissions granted to that role, which allows the following interactions:
moving category tiles, resize of columns and rows, zoom, and Formula Pane
open and close. Additional manipulation of category tiles can be granted by
selecting Allow Show / Hide in the Viewer Role permissions. For more
information about the Viewer Role see “Viewer Role” on page 358.
Note: Quantrix Viewer can utilize QAPI plug-ins and there are no
restrictions on model size.
Table 11-1.
File Open...
Close
Page Setup...
Print Preview
Print...
Restart as Quantrix Modeler*
Exit (Quantrix Modeler > Quit)
Edit Copy
Copy View
Table 11-1.
Select All
Select None
Select Items Only
Select Cells Only
Find...
View Hide Category Tiles**
Show Input Cells
Show Notes
Show Page Breaks
Model Browser**
Calculator
Model Toolbar
Tools Options... (Quantrix Modeler > Preferences)
Help Contents
Index
Search
Upgrade...
Activate Quantrix
Update Quantrix
Model Statistics
About Quantrix (Quantrix Modeler > About)
Tip: To quickly copy and paste an entire matrix in the view or canvas to
another application in the default image format, simply click and drag the
icon from the model browser to the other application.
Note: When working with a presentation canvas, you can copy and
paste individual canvas objects to the other application. For more details see
“Copying Objects” on page 295.
Note: The larger the model, the longer it takes Quantrix to export it.
For very large models, the export may take a few minutes. Models with
columns in excess of 256 can be exported to Excel 2007.
Choosing to export MASTER worksheets only will override any view selec-
tions you made in step #2.
Selecting Export current page only (only if not including formulae) will
export filtered tables in the current filtered state. When you choose this
option, Quantrix will automatically remove any choice to export formulas to
cells.
footer if desired. When you are done, click the Finish button to
complete the export process.
6. In the resulting Save dialog box, type a new name in the File name
field and then press ENTER. Quantrix closes the Save dialog box
when the export is complete.
Note: Models that contain more than 500,000 cells in total or individual
matrices that are more than 75,000 cells are too large to export to a web
page as it exceeds the web browsers memory capability.
Chapter 12
Integrating Data
Quantrix Modeler can link disparate sources of data directly into your
models. Using the DataLink feature, you can specify links to queries in
SQL databases, Web Services, XML files, or flat text files. Quantrix
remembers these links for easy, live updating in the future.
Chapter 12: Integrating Data
330
DataLink Introduction
DataLink Introduction
Quantrix can integrate external data into matrices in your model by using
DataLink. By establishing a DataLink between a matrix and an external
data source, you can easily update the data from the original source - thus
updating your model without recomposing and manually redoing an import.
Establishing a DataLink consists of two phases: configuring the source and
configuring the destination. Quantrix has the ability to pull data from a
number of different sources and integrate it into your model in two
different ways. This chapter will walk you through the two phases and
describe how to update DataLinks once you have them established.
2. Select the type of data source you would like to configure. Choose
the data source type based upon the location and type of data you
would like to import. You may view a description of each type by
clicking once on the labels in the Data source: list in the Data Link
Wizard window. To select the data source type, click on the desired
type from the list in the Data Link Wizard window and click Next >.
3. Configure the DataLink Source - See “Configuring DataLink
Sources” on page 332. for the steps to configure each built-in data
source type.
4. Once you have configured the DataLink Source, the Data Link
Wizard will display the grid of data coming from the data source.
Confirm that the data looks like you expect it to, and click Next >.
5. Select the type of data import you would like to perform. Choosing
Two Dimensional Matrix will create a matrix in your model that closely
resembles the two dimensional grid that you are importing. Choosing
Multi-dimensional OLAP Analysis will allow you to configure a
powerful multi-dimensional analysis of your data as it is being
imported into a matrix within your model. You may view a brief
description of each type by clicking once on the label in the Data
destination list of the Data Link Wizard window. See “Configuring
DataLink Destinations” on page 347. for a more detailed description
of each destination type.
6. To select the data destination, click on the desired type from the list
in the Data Link Wizard window and then click Next >.
Note: JDBC connections generally are faster and more robust than
ODBC connections when used with Quantrix.
If you selected to import your data from a JDBC / ODBC Data Source
(Step 2 on page 330) the Data Link Wizard will look like what is shown in
Figure 12-4.
4. Click Next > to continue. If you did not test the database connec-
tion, you will now be prompted to enter the username / password
for the database connection.
New: The password will not be in the model file and you will have the
ability to edit the username and password for future connections.
Tip: You can use an Expression to set the Hostname, Server Port and/or
Database name for a DataLink connection. The syntax is {Matrix-
Name::itemName} where the matrix name is the name of the matrix in
which the connection variables are located, and the item name is the specific
item for the connection variable. For more information on Expressions see
“Expression Concepts” on page 200.
7. If necessary, you can manually edit the table joins on the Tables tab
of the Data Link Wizard window as shown in Figure 12-7.
Using the Tables tab you can change the table joins in the following
ways:
• Alias - this is the name used elsewhere in the query to refer to the
table. Changing the Alias will automatically update the other refer-
ences to this table.
• Type - this specifies whether a corresponding row in the table
needs to be present for the query to return it. This setting allows
for inner joins, shown as required (default), and left outer joins
shown as optional.
• From - this is the column in the table being used to link or join to
the To column in another table.
• To - this is the column in another table in the query which is used
to compare with the From column to establish the join.
Note: You can establish more sophisticated joins using the SQL tab.
See“Using SQL Expert Mode” on page 337 for more information on using
the SQL tab.
8. If desired, you can add a qualifier to your query to filter only the rows
you would like to analyze using the Qualifiers tab as shown in
Figure 12-8.
9. To see the resulting SQL at any time during the process of building
your query, you can click on the SQL tab.
10. When you are satisfied with the query, click Next > and continue
with Step 4 on page 331 to complete the DataLink.
Tip: If you have existing SQL that you would like to use within Quantrix,
you can use the clipboard to paste it directly into the SQL tab of the Data
Link Wizard.
You can use expressions in your SQL statement to point to cells in your
model to set dynamic variables in the SQL command. While in SQL expert
mode, use the curly braces {} to surround your expression statement. To
learn more about expressions, see “Expression Concepts” on page 200.
To create a DataLink with an Excel file, choose to import your data from a
JDBC / ODBC Data Source (Step 2 on page 330).
Follow these steps to configure the DataLink Source:
1. Select ODBC Database Connection from the drop-down menu of
available drivers.
2. Once a driver is selected, you will be prompted to enter the URL
type. Select Microsoft Excel File.
3. Enter the name and location of the file you are connected to or select
the file using the file browser.
4. Optionally test the connection by clicking Test Connection. You
will be prompted for the username and password to associate with
this connection. If the file is not password protected, select OK.
5. Click Next > to continue. If you did not test the database connec-
tion, you will now be prompted to enter the username and password
for the database connection.
6. Continue from Step 5 on page 334 to configure the Excel ranges you
wish to import.
Figure 12-11. :Navigating XML Source with the Data Link Wizard
Figure 12-12. Selecting XML Source Data with Data Link Wizard
6. Click Next > and continue with Step 4 on page 331 to complete the
DataLink.
Follow these steps to configure the Web Services / SOAP Data Source:
1. Enter the URL for the Web Services Description file (WSDL).
2. Click Next > to continue to this screen shown in Figure 12-14.
3. Use the plus icons ( ) in the tree at the left to expose the available
services. Select the service you would like to invoke by clicking on the
label.
4. Click Next > to continue to a screen shown in Figure 12-15.
5. The Data Link Wizard will list the parameters of the Web Services
call you are invoking. Fill these in with the relevant values to
configure the Web Services invocation.
6. Continue from Step 3 on page 339 to configure the XML fields you
would like to import.
Figure 12-19. Setting Fixed Width File Columns in Data Link Wizard
3. Adjust the blue lines until you are satisfied with the column layout.
Click Next > and proceed with Step 7 on page 344.
New:
9. For any groups specified, select the category the group applies to
using the Group items in Column: drop-down. Use the Descriptor
Category drop-down to indicate which category the descriptor
applies to. Use the Rendezvous Descriptor if you would like to
merge the descriptors into an existing Item Descriptor in the model.
11. Select each numerical value column listed in the Column list and set
the format to be used to create item names.
Tip: You can use this method to group data. For instance, specifying
YYYY-MM as a date format will group all of the date values by month. You
can use the Extended formats to specify fiscal years and even bin values into
customized bins.
12. Click Next > to continue. The screen will look like what is shown in
Figure 12-25.
13. Select each data-item or measure column and select the summariza-
tion method(s) to be used for that column by placing checks in the
appropriate checkboxes. The Summarization methods column will
update to show the summarization method for each column. If no
summarization method is chosen, the last instance of the imported
data will populate the cell values.
14. Click Next > to continue to the screen shown in Figure 12-26.
15. If you selected an existing matrix to configure this DataLink for, the
top grid of this pane would allow you to specify how to handle
categories that are not otherwise mentioned in the DataLink, but
exist in the matrix. You can select to insert data on subsequent
updates into a new item on the un-referenced dimensions, or a
specific item that already exists.
16. Place a check in the Create new category with new item for data
checkbox to have the DataLink automatically create a new category
in which a new item is created for each successive update of the
DataLink.
17. Place a check in the Remove previously imported category items
and data not present in update if you would like the DataLink to
remove items along any dimension in the matrix if those items are
not present in the update. This is useful if you wish the DataLink to
essentially synchronize the data in the matrix with the data in the
latest update.
Updating Links
Editing the DataLink
You can modify a DataLink of a particular matrix by following these steps:
1. Click on the matrix in the Model Browser tab or bring the matrix' tab
to the front.
2. Choose Data > DataLink > Edit Data Link... from the menu.
3. The Data Link Wizard will appear and will be preset to the settings
you specified when you created the DataLink. Step through the
wizard and modify the settings you wish to change.
4. Click Finish to complete the changes and update the DataLink.
Deleting a DataLink
Existing DataLinks can be deleted by choosing Data > DataLink >
Remove DataLink from the menu.
If desired, you can create a new DataLink based on the drill down data by
selecting Create DataLink... from the bottom right-hand corner of the
DataLink Drill Down Results window. Proceed as you would to create a
new DataLink starting with Step 4 on page 331.
Protecting a Model
Roles
User roles and permissions allow you to grant different access levels to your
models for different types of users. Quantrix allows you to protect a model
by assigning a unique role for each potential user. Quantrix has three
predefined roles: Modeler, User and Viewer, with a set of default permis-
sions granted to each. For the best protection it is recommended to set a
password for each role.
Roles and permissions are not designed to provide enterprise class level
security. Roles and permissions are intended to provide an easy way to
manage multiple users accessing the same model file.
Managing Roles
Modeler Role
The default role for a new model is that of Modeler. The Modeler Role is
unrestricted with all permissions granted.
User Role
The User Role default permissions enable all interaction functionality, allow
for datalink updates and model exports, and allow format, chart and layout
edits as well as moving, showing and hiding category tiles.
Viewer Role
The Viewer Role default permissions are much more restrictive than the
User Role. The model will open with only the matrices and views open that
were open when the model was saved. The only model manipulation
allowed is to move category tiles.
Passwords
The Modeler role has access to the entire model without limitation. To
protect your model from all other users, set a password for the role of
Modeler. The Modeler is the only user that can access the Manage Roles
dialog box of a protected model, as shown in Figure 13-1.
If only the role of Modeler has an associated password, users without the
Modeler password will be able to open the model by choosing another role
from the drop-down menu and pressing Login. They will only be able to
make edits or formatting changes as allowed by the role permissions.
Note: When a 2.4 model, with protection turned on, is opened for the
first time in version 3.0 or higher, the modeler user role will inherit any
passwords set in the 2.4 version of the model.
New: You have the option to Save current layout as the default
perspective. When this option is selected, Quantrix creates a new perspec-
tive with the name RoleName Default Perspective. The new
perspective can be managed as all others.
• Choose Security > Create Role to open the Create New Role
dialog box.
1. Add a meaningful name for the new role in the Name: box.
2. If desired, enter and confirm a password for the new role.
New:
Duplicating Roles
It is possible that many users with the same permissions will need access to
the model but require a unique user name and password. Quantrix allows
you to copy the permission settings of a user role and save each with its own
user name and password. To create a duplicate role within the same model
file, follow these steps:
1. Choose Security > Manage Roles...
2. In the Manage Roles dialog box, highlight the role that you want to
copy.
3. Click the Duplicate button.
4. Press OK to close the Manage Roles dialog box.
Once the new user role is created you may want to rename the role and set a
new password, see “Passwords” on page 359 and “Changing Role Names”
on page 361 for more information.
Tip: If you have multiple user roles that are used in many of your models,
set up the roles in a blank model and save it as a template or as your default
model. This will ensure that the roles are already in place with each new
model that you build if you start with the default model or template.
Deleting Roles
To disable a previously created role, delete the role from the model by
following these steps:
1. Choose Security > Manage Roles... from the menu. The Manage
Roles dialog is displayed.
2. Highlight the role you wish to delete.
3. Press Delete.
4. Press OK.
Switching Roles
Once you have logged in to a protected model, you can switch to a different
role. This is important if the Modeler wishes to log in to grant additional
permissions on an open model for a user with limited access. To switch
from one role to another, follow these steps:
1. Choose Security > Switch Role... from the menu.
2. The Login Pane is displayed.
3. Select the correct role from the Role: drop-down menu.
4. Enter the correct password in the Password: box.
5. Press Login.
Permissions
Quantrix allows you to grant specific permissions to each role to control
how the model is used by others.
Note: Setting specific permissions for roles will not be secure unless a
password is set for the Modeler role. See“Passwords” on page 359 for
details on setting passwords. Without the Modeler password, all users will
automatically be logged in as Modeler with unlimited access. If a password
for the Modeler role has been set, users will still be able to open the model
without a password but they will be forced to choose a role other than
Modeler.
Upon opening a new model, the Modeler, User and Viewer roles have pre-
defined permissions established. To edit the permissions for each role,
choose Security > Permissions to open the Permissions tab as shown
below. Use the Expand All ( ) and Collapse All ( ) buttons to reveal
and hide all options as desired.
Setting: Description:
DataLink: Allow
DataLink Updates Allows updating of established DataLinks
Setting: Description:
Setting: Description:
Save / Manage
Perspectives Allows changes in perspectives
Setting: Description:
Audit Trail
The Audit Trail feature records:
• operations performed on a Quantrix model
• the user who performed them
• the time they were performed
Audit Trail is set at the document level; that is, each document has its own
Audit Trail setting. Newly created Quantrix models have the Audit Trail
feature turned off by default.
To turn Audit Trail on and view the operation history, choose Tools >
Audit Trail from the menu. An audit trail tab appears in the lower left of
the model window.
Click the On radio button to begin recording the Audit Trail history for the
document. Click the Off radio button to stop recording.
Click the Clear History button to delete all Audit Trail history entries.
The Maximum number of entries setting limits the number of entries
stored in the model document. You can use one of the predefined values in
the combo box drop-down, or type in your own choice. If the Audit Trail
feature is turned on and the limit is reached, older entries are discarded to
make room for new ones.
To copy existing history entries to the system clipboard for use in another
application, perform the following steps:
1. Using your mouse, select the text you want to copy in the Audit
Trail history panel.
2. Click the right button on your mouse to bring up the context menu.
3. Choose Copy to put the selected text onto the clipboard.
After you have reviewed the structure of a particular matrix, open the
formula pane if it isn’t open already, and read the formulas. Note that the
formulas are written using category, item, and group names. Good
questions to ask at this point are the following:
• Are category, item, and group names used correctly within the calcu-
lations to reflect desired business or accounting practices?
• If numerical constants are part of the formulas, is their use
consistent?
Quantrix Plugins
The Quantrix plugin facility allows Java developers to write code modules
(plugins) that extend Quantrix functionality.
Installing a Plugin
Follow the installation instructions that come with the plugin.
In general, installing a plugin means (1) creating a sub-folder under the
plugins folder contained in the main Quantrix installation folder and (2)
placing plugin module files (*.jar and *.xml files, for example) in this sub-
folder. In most cases, the plugin developer will provide you with a zip file or
a copy of the directory to be placed inside of the plugins folder contained
within the main Quantrix installation folder.
Removing a Plugin
Follow the uninstall instructions that come with the plugin. In most cases,
this will mean removing the plugin’s directory installed in the plugins folder
contained within the Quantrix installation folder.
Note: Be sure to delete only the folder of the plugin you wish to
uninstall.
Developing a Plugin
You develop Quantrix Plugins using the Java programming language and
QAPI, the Quantrix Application Programming Interface. Detailed informa-
tion on using QAPI to write plugins is beyond the scope of this Guide.
Please look on the Quantrix website (http://www.quantrix.com) or contact
Quantrix directly for more information on obtaining and using QAPI.
Importing Files
To import an .imx, or modelFile file as a new Quantrix file, follow these steps:
1. Open a new Quantrix file.
2. Choose File > Import.
3. Specify the file that you want to import.
• In the Import dialog box, choose the type of file from the Files
of type drop-down menu.
• Open the folder that contains the file by choosing from the
Look in drop-down menu.
• Open the file by double-clicking it. Quantrix imports the entire
file.
4. Save the new file.
Appendix A
Keyboard Shortcuts
File Commands
Operation Shortcut
Edit Commands
Operation Shortcut
Selection Commands
Operation Shortcut
Operation Shortcut
Operation Shortcut
Other Commands
Operation Shortcut
About Functions
Quantrix provides a library of functions for use within formulas.
You can add a function to a formula either by typing it into the formula
field, or by selecting it using the Functions tab. The Functions tab lists all
available functions by category, provides syntax and detailed information on
using each function, and provides a pointer to a sample model that shows
the function in action.
To add a function using the Functions tab, follow these steps:
1. Double-click the formula field to which you want to add a function.
2. Click the Function... button in the formula toolbar. Quantrix
displays the Functions tab.
3. Click to select from the Category list, click to select from the
Function list, and then click OK. Quantrix inserts the function and
empty parentheses into the formula you are editing.
New: Choose the All Category for an alphabetical listing of all available
functions.
dayofyear(number) Extracts the day of the year from a date-and- Date and
time code, where January 1st returns 1. Time
days360(date1, date2, [method]) Returns the number of days between the date1 Date and
and date2 based on a 360-day year. If date1 is Time
later than date2, days360() returns a negative
value. This function is useful with certain
accounting systems where 30-day months are
assumed.
db(initial_value, ending_value, Declining balance. Depreciation of an asset Financial
lifetime_years, year_num, during a particular year using the fixed-declining
[months_year1]) balance method.
ddb(initial_value, ending_value, Double declining balance. Depreciation of an Financial
lifetime, period_num, [factor]) asset for a specified time period using the
double-declining balance method or some other
method you specify.
degrees(radians) Converts radians to degrees. Trigonometric
devsq(number1, [number2], ...) Sum of squares of deviations of data points Statistical
from their sample mean.
dollar(number, [decimal]) Formats number as currency with decimal Text
precision. If decimal is omitted, a default
precision of 2 is used.
err([error_string]) Returns an error value. Information
errortype(value) Returns an integer representing the error type of Information
an error value.
even(number) Rounds a positive number up or negative Math
number down to the closest even integer.
exact(text1, text2) Returns TRUE if text1 and text2 are identical. Text
exact() is case-sensitive: exact("the", "The")
returns FALSE.
exp(power) Raises Euler's number (e) to the specified power. Math
sum(value1, [value2], ...) Sum of the arguments. Only numbers are Statistical
included in this calculation.
sumif(range, condition, Sum of all values in range that satisfy condition. Statistical
[value_range]) Condition must be surrounded by quotes or
refer to a cell containing the condition text.
Values used in sum are drawn from optional
value_range if provided.
sumproduct(range1, [range2], Sum of the products of corresponding ranges. Statistical
...)
sumsq(number1, [number2], ...) Returns the sum of the squares of the Math
arguments. Arguments may be single values or
ranges of values.
sumx2my2(x_range, y_range) Sums the differences between the squares of the Math
values in x_range and y_range. x_range and
y_range must contain the same number of
values.
sumx2py2(x_range, y_range) Sum of squares of the values in x_range and Math
y_range. x_range and y_range must contain the
same number of values.
sumxmy2(x_range, y_range) Sum of the squares of the differences between Math
corresponding values in x_range and y_range.
x_range and y_range must contain the same
number of values.
switch (condition1, value1, Returns the first value for which the condition Logical
[condition2, value2], evaluates to TRUE. If all conditions are false,
...[defaultvalue]) returns the defaultvalue.
syd(initial_value, ending_value, Sum-of-years' digits depreciation of an asset for Financial
lifetime, period) a specified period.
tan(angle) Tangent of an angle. Trigonometric
tanh(number) Hyperbolic tangent of number. Trigonometric
xnpv (rate, values, dates) Net present value of an investment based on a Financial
discount rate and a series of future payments
(negative values) and income (positive values) that
occur on specific dates. The first date indicates
the beginning of the payment schedule.
year(number) Extracts the year from a date-and-time code, in Date and
the range 1900 to 9999. Time
ztest(array, x, Two-tailed P-value of a z-test. The z-test Probability
[standard_deviation]) generates a standard score for x with respect to Distribution
the data set and returns the two-tailed
probability for the normal distribution.
V
Viewer Role 358
views
about 32
copying 119
deleting 119
inserting 118
pasting 119
renaming 118
Vista
activating with xvi
setting options 62
W
Warning icon 193
web pages
creating from a model 111, 326
moving categories on 326
www.quantrix.com xviii
X
X-axis
in 2D grid charts 231
in 3D grid charts 232
xls files
exporting models as 325
using as database 338
XML files
importing into Quantrix 339
Y
Y-axis
in 2D grid charts 231
in 3D grid charts 232