Difference between revisions of "Multiple formats in one table"

Line 1: Line 1:
 
[[Category:Analytica User Guide]]
 
[[Category:Analytica User Guide]]
<languages />
+
<breadcrumbs>Analytica User Guide > Formatting Numbers, Tables, and Graphs > {{PAGENAME}}</breadcrumbs>
<translate>
+
 
[[Analytica User Guide]] > [[Formatting Numbers, Tables, and Graphs]] > [[Multiple formats in one table]]
 
  
 
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:
 
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:
Line 16: Line 15:
  
 
==See Also==
 
==See Also==
{| style="margin: 1em auto 1em auto;width: 100%;border:0;table-layout: fixed;" cellpadding=5
+
<footer>Display of constraint results / {{PAGENAME}} / Graphing roles</footer>
|- style="text-align: center"
 
| [[Display of constraint results]] <- || [[Multiple formats in one table]] || -> [[Graphing roles]]
 
|}
 
</translate>
 

Revision as of 22:38, 4 November 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 →

Chapter7 8.png

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

Comments


You are not allowed to post comments.