21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

=0 no change.<br />

There are also Automation APIs for extracting and setting values programmatically.<br />

22.3 Variable<br />

A variable in <strong>QlikView</strong> is a named entity, containing a single data value. A variable typically acquires its<br />

value from a Let, Set or other control statement, via an automation call or via an Input Box (page 519) in<br />

the layout. The value of a variable can normally be changed by the user at any time.<br />

Variables can contain numeric or alphanumeric data. If the first character of a variable value is an equals<br />

sign ' = ' <strong>QlikView</strong> will try to evaluate the value as a formula (<strong>QlikView</strong> expression) and then display or<br />

return the result rather than the actual formula text.<br />

22.4 Other Entities in <strong>QlikView</strong><br />

Chart Dimensions<br />

A chart dimension is the set of values for the chart to iterate over when it calculates the values for its expression(s).<br />

In the simple case one could say that it is what appears on the x-axis in a standard bar chart.<br />

A chart can have one or more dimensions. The upper limit depends on chart type, data complexity and the<br />

amount of memory available. Pie, line and scatter charts can show a maximum of two dimensions, bar and<br />

grid charts three. Radar charts can only show one dimension, gauge charts show no dimensions at all.<br />

In general a chart dimension gets its values from a field which is specified on the Dimensions page of the<br />

Chart Properties dialog. Instead of being a single field a dimension can also consist of a group of fields (see<br />

Groups below).<br />

Chart dimensions may also be calculated from an expression.<br />

Groups<br />

Groups, or more correctly field groups, are collections of fields, which can be used instead of fields as chart<br />

dimensions. There are two types of field groups:<br />

Drill-down groups are used to create hierarchies of fields allowing so called drill-down in charts.<br />

Cyclic groups are non-hierarchical and are normally used just as a convenient way of letting the user switch<br />

chart dimension fields by a simple mouse click.<br />

Groups are specified on the Document Properties: Groups page.<br />

Expressions (Calculated Formula)<br />

An expression consists of a combination of fields, variables, operators and functions put together according<br />

to a special syntax. The functions available vary slightly between script, charts and other parts of the layout.<br />

In the script the expression will be evaluated as the script execution passes it by. In charts and other layout<br />

objects expressions will be evaluated automatically whenever any of the fields, variables or functions that<br />

the expression contains changes value or logical status.<br />

For more information about script expressions see Script Expressions (page 283).<br />

For more information about chart expressions see chapter Chart Expressions (page 765).<br />

For more information about the use of expressions in other layout objects see chapter Calculated Formulas<br />

(page 851).<br />

171

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!