Add aggregation and formatting to an analytics column
Configuration
Setup of Analytics column definitions is done in FA Back under Preference → content and translations → Analytics+ columns.
The options for aggregation and overriding formatting will, if anything other than the default values are chosen, present new fields on the screen.
Defining group level aggregation and how to aggregate sub-levels
Select aggregationtype which will define how sub-levels are aggregated to parent levels.
Five options are available:
|
If aggregation type is specified in the previous step, you can select how to aggregate children without a value
|
It will also allow you to define how aggregated numbers on group level are rounded, which is useful for whole number values and categorized key figures
Select how to round values on the group level - if a figure is of Integer type or if a categorized figure is aggregated, this selection defines how to handle rounding of non-existing final values. Default, Round up to nearest value, Round down to nearest value - are all valid selections Round based on normal rounding rules (half up) OR use the nearest category will round according to normal rounding rules, using half up. Example: 1.51 will be rounded to 2 if the aggregated value is an integer Always round up OR use the nearest bigger category will always round up to the next closest category value. For example, 1.51 will be rounded to B (2) if the defined values are 1=A, 2=B Always round down OR use the nearest smaller category will always round down to the next closest category value. For example, 1.51 will be rounded to A (1) if the defined values are 1=A, 2=B |
Adding custom formatting
Finally, there is an option to override the formatting of the column in the field Do you want to override formatting? The usage would typically be for Date formatting, Decimal rounding and percentage formatting.
If you want to manually override the format of the column select Yes, override format in the dropdown and information about the column as well as formatting options will be presented.
Field | Description |
Define the format to use - will format numbers according to the specified format. Formatting follows the same logic as defined under Preferences > Content and translations > Date and decimal formats. Format is defined as a string. Examples: "0.00" for 2 decimal rounding of numbers, "#,##.00", "0.0%" for percent, or "dd.MM.yy" for Date formatting | |
Value type - this field indicates the return type of the column and cannot be overridden. It is useful when writing formulas to check the output, which is done when a formula is saved. For key figures, the key figure type will be saved to this field. | |
Select how to align the column content in tables - right or left available. By default, String types are aligned LEFT and other types to the RIGHT |