Editing Scalar-Valued Calculations¶
Related Videos
The calculation options control, how its results are calculated.
Type
Required
Type of the calculation.Built-in
The results will be generated by a built-in calculation function, provided by the connector.Custom
The results will be generated by a custom calculation, defined in the expression option. The expression can reference build-in calculation functions, provided by the connector(s).
Interval Settings
Required
KPI can display historical interval data. For more information about historical intervals see Historical Intervals chapter.Advanced
Advanced calculation settings.External Id
An unique id, that is used to access this KPI via the API. Using this id, the KPI can be used by external applications, such as 2Ring Gadgets. The External Id has to be unique across the entire Business Unit.Time Zone
Inheritable
Specifies based on which time zone values should be calculated.Refresh Interval
Inheritable
Interval in seconds, between each refresh of the calculation’s data.Calculation Id
Serves for information purposes only
Id of the calculation. Calculation Id is not being automatically updated after changing calculation. Manual refresh is required to show up-to-date value.
If Built-in is selected as calculation’s type panel also contains:
Function
Required
Additional info about items is shown on hover
Connector provided calculation function, used for calculation of results.Parameters
A list of parameters, used by the calculation function when calculating the results. For more information see Parameters chapter.
If Custom is selected as calculation’s type panel also contains:
Function
Required
The type of result the custom calculation is producing.Expression
Required
For more information see Expression builder chapter.
Defines the expression to be used for calculation of the results. The expression may consist of multiple child calculations called variables. Expression, after replacing variables with values, have to be valid T-SQL command.If the “DateTime” is used as a function for a custom KPI, expression has to evaluate to the Unix Time format in milliseconds. For more information about the Unix Time and conversion to Unix Time, visit this website. If the “TimeSpan” is used as a function for a custom KPI, expression has to return value in milliseconds. Also all “TimeSpan” variables used in expression return time interval in milliseconds. Variables
List of all variables. Variable represents a result of a child calculation. For more information see Calculation Variables chapter.
If Applying changes message persists for long time, without any additional changes made, there may be a problem with the connection to the server. In such case the message will be displayed until the connection is restored and changes are automatically applied. When connection is not the problem some of the connectors could not be running.
When calculation parameters are changed (created, deleted or updated) previous parameters are stored in calculation history together with date until which they were being applied. When showing historic data for segment values are shown for calculation parameters which were configured at the time that value is associated with. If current calculation parameters should be used for all historic values, regardless of used parameters at the time of those values, calculation history has to be cleared using button.
New record in calculation history is added even when data filter, that is applicable to calculation, is changed (created, deleted or updated) in corresponding BU. It is also added when parameter or data filter is using wildcard values and matching values change (connector updated available calculation parameter values).