Create and Modify Custom Metrics
This applies to: Visual Data Discovery
Custom metrics are created and modified using the Custom Metrics Editor.
To create or modify a custom metric:
Access the Custom Metrics Editor in any of the ways described in Custom Metrics Editor.
Enter a label for the custom metric in the space labeled Untitled Custom Metric.
Note: If you are using non-Latin characters in your functions, the label for your custom metric should start with a letter or an underscore (_) symbol followed by one or more letters, numbers, underscore, or period characters. Symbols other than the underscore (_) or period (.) are not allowed.Enter the expression for the custom metric in the editing space. Expressions should follow standard mathematical and logical syntax and are resolved using the standard order of operations. You can manually key in expressions or you can select the elements of your expressions from the menus at the left. The expression should not be assigned to a variable because the resolved value of the expression is assigned to the custom metric, which serves as the 'variable' to which the value is assigned. That is, enter
a / b
rather thanx = a / b
.Row-level expressions and aggregate functions can be used in custom metrics. In addition, custom metrics can be filtered (using date and time filter aggregate functions and SQL-like expressions).
To test your custom metric, select Run.
The editor attempts to calculate your custom metric. Any errors are reported. Any results are shown in the Preview area of the Custom Metrics Editor.
When you are finished creating or modifying your custom metric definition, select Save.
Comments
0 comments
Please sign in to leave a comment.