Newer Version Available
Measures and Derived Measures in XMD
This XMD snippet shows the parameters used with the measures XMD parameter.
1"measures": [
2 {
3 "description" : "Amount",
4 "field" : "Amount",
5 "format" : {
6 "customFormat": "[\"$###0\",1]"
7 },
8 "label" : "Amount",
9 "showInExplorer" : true
10 }
11],| 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. |
| 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 parameter 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 |