ValueLoop - chart function
ValueLoop() returns a set
of iterated values which, when used in a calculated dimension, will form a synthetic dimension.
The values generated will start with the from value and end with the to
value including intermediate values in increments of step.
Information noteIn
charts with a synthetic dimension created with the
ValueLoop function it is possible to reference the
dimension value corresponding to a specific expression cell by restating the
ValueLoop
function with the same parameters in the chart expression. The function may of course be used anywhere in the layout, but apart from when used
for synthetic dimensions it will only be meaningful inside an aggregation function.
Information noteSynthetic dimensions are not affected by selections.
Syntax:
ValueLoop(from [, to [, step ]])
Return data type: dual
Arguments:
Arguments
from |
Start value in the set of values to be generated. |
to |
End value in the set of values to be generated. |
step |
Size of increment between values. |
Examples and results:
Function examples
Example |
Result |
ValueLoop(1, 10)
|
This creates a dimension in a table, for example, that can be used for purposes such as numbered labeling. The example here results in values numbered 1 to 10. These values can then be referenced in an expression.
|
ValueLoop(2, 10,2)
|
This example results in values numbered 2, 4, 6, 8, and 10 because the argument step has a value of 2.
|
Chart
Charts are objects where calculations, aggregations, and groupings can be made. Graphical visualizations, such as bar charts and pie charts are common examples, but also non-graphical objects such as pivot tables are charts.
A chart consists of dimensions and measures, where the measures are calculated once per dimensional value. If the chart contains multiple dimensions, the measures are calculated once per combination of dimensional values.
Similar terms: Visualization, Hypercube, Cube
See: Choosing the right visualization
Dimension
In Analytics Services:
A dimension is an entity used to categorize data in a chart. For example, the slices in a pie chart or the bars of a bar chart represent individual values in a dimension. Dimensions are often a single field with discrete values, but can also be calculated in an expression.
Similar terms: Category, group
See: Data grouping with dimensions
In Data Integration:
A dimension is a dataset in a data mart that forms part of the star schema. Dimension datasets hold the descriptive information for all related fields that are included in the fact table’s records. A few common examples of dimension datasets are Customer and Product. Since the data in a dimension dataset is often denormalized, dimension datasets have a large number of columns.
See: Creating and managing data marts