Measures and Derived Measures in XMD
This XMD snippet shows the parameters used with the measures XMD parameter.
"measures": [
{
"description" : "Amount",
"field" : "Amount",
"format" : {
"customFormat": "[\"$###0\",1]",
"delimiters”: "{}"
},
"label" : "Amount",
"showInExplorer" : true
}
],
Parameter | Description |
---|---|
customFormat |
Specifies the format and multiplier of the measure or derived measure. "customFormat": "[format,multiplier]"
For more examples, see Format Dataset Fields and Field Values with XMD. |
delimiters |
Allows custom delimiters to be specified for the decimal separator (.) and the thousands separator (,). Custom delimiters will replace the default delimiter values for the final formatted result. Custom delimiters are not honored in CSV downloads. Example: "delimiters": {"thousands": ".", "decimal": ","} |
description |
Description of the dataset field, no more than 1,000 characters. Example: "description": “Total value for the opportunity." |
field | Identifier for the dataset field, which is the API name. |
format | Contains the customFormat and the delimiters parameters used to format the measure . |
label |
Display name for the dataset field, up to 40 characters. Example: "label": "Sales Amount" |
showInExplorer |
(Boolean) Indicates whether the dataset field can be selected from the dashboard designer or explorer when creating dashboards and lenses. Even if showInExplorer is false, you can still use the field for SAQL queries, manually adding it in JSON, and accessing it using the Analytics REST API. Example: "showInExplorer": true |