Computed cell formats
New to Analytica 5.0
Overview
You can write and use an Analytica expression to compute cell-level formats for a table (usually a result table), thus enabling the appearance of the table to adapt to data and results in the model. Fill color, font style and color, text alignment, border style, number format, and cell bars can all be computed, with virtually unlimited possibilities for the sophistication of logic.
Some examples
Several examples of computed formats are show here is illustrate the potential application of computed formats.
A heat map can be used to emphasizes the numeric quantity, where green vs. red is used to reflect positive versus negative, and transparency/opaqueness used to emphasize magnitude of the numbers in each cell.
Emphasizing numeric magnitude using varying font size.
And yet another method, depicting quantity using cell bars.
Alternating row colors.
Fill color and outer border emphasize cells containing values with a certain property, in this case numbers that are divisible by 3.
The indentation for the elements of an index are computed based on information in the model (in this case, whether the element is a state, country or city). This can be easier that manually indenting the items from the dialog, and can automatically adapt to new locales that appear later.
Cell Format Expressions
To use an expression to computed the cell formats, enter the expression into the Cell Format Expression attribute. To make this attribute visible in the Object window and Attribute pane, go to the Object / Attributes... dialog and put a check next to Cell Format Expression. Then edit the expression for your table from its Object window or from the Attribute pane.
By default, your computed format will apply to the result table of the variable with the format expression, but not to the edit table. Your computed formats take precedence over any manually selected formats (set from the Cell formats dialog).
Enable comment auto-refresher