Difference between revisions of "Multiple formats in one table"
DKontotasiou (talk | contribs) (Created page with "Category:Analytica User Guide <languages /> <translate> Analytica User Guide > Usually, the same number format applies to all numbers in a table (except its index val...") |
DKontotasiou (talk | contribs) |
||
Line 8: | Line 8: | ||
'''Index Years := 2007..2012''' | '''Index Years := 2007..2012''' | ||
− | '''Variable DollarX := Table(Years)(...) { Formatted as dollars } Variable PercentX := DollarX/40K { Formatted as percent } Variable MultiformatX := [DollarX, PercentX]''' | + | '''Variable DollarX := Table(Years)(...) { Formatted as dollars } ''' |
+ | |||
+ | '''Variable PercentX := DollarX/40K { Formatted as percent }''' | ||
+ | |||
+ | '''Variable MultiformatX := [DollarX, PercentX]''' | ||
'''MultiformatX ''' → | '''MultiformatX ''' → |
Revision as of 09:25, 25 August 2015
Usually, the same number format applies to all numbers in a table (except its index values in column or row headers, which use the format set for the index variable). Sometimes, you might want to use different formats for different rows (more generally, slices) of a table. You can do this if you define the table as a list of variables, for example:
Index Years := 2007..2012
Variable DollarX := Table(Years)(...) { Formatted as dollars }
Variable PercentX := DollarX/40K { Formatted as percent }
Variable MultiformatX := [DollarX, PercentX]
MultiformatX →
This table uses the number format set for each variable responsible for a row here — as long as you don’t override their settings by setting a format for MultiformatX.
See Also
Display of constraint results <- | Multiple formats in one table | -> Graphing roles |
Comments
Enable comment auto-refresher