WaveXmd defines extended metadata (XMD) for Analytics datasets and assets. It controls how dates, dimensions, and measures appear, including labels, number formats, colors, links, record navigation, and actions.
XMD complements a dataset or visualization definition. It does not define the dataset's records or the dashboard itself. Its dataset association, dataset-version identity, and display settings serve different purposes and should not be treated as interchangeable.
Key Elements
| Element | What the Element Controls |
|---|---|
application |
The associated Analytics application, referencing a WaveApplication. |
dataset |
The associated WaveDataset. It is documented as required, although the official Asset dashboard example supplies a nil value. |
datasetFullyQualifiedName |
The associated dataset version. This is distinct from the dataset association. datasetConnector identifies the connector source, and top-level origin describes the dataset version's origin. |
type |
The top-level XMD category: System, User, Main, or Asset. These are not activation states or a documented precedence order. |
waveVisualization |
The visualization category for Analytics assets: dashboard or lens. |
dates |
Date aliases, mappings to calendar and fiscal fields, display settings, and date types. The nested type accepts Date, DateOnly, or DateTime, subject to the time zone setting. |
dimensions |
Dimension field identities, labels, member overrides, explorer visibility, and interaction settings. The nested field is the name used in queries; label is the displayed caption. |
defaultAction |
A dimension's default interaction: openSfdcRecord, openActionsMenu, none, or a valid action API name in dot notation, such as Global.LogACall or FeedItem.Post. |
customActions, customActionsEnabled
|
Custom action definitions and the dimension-level enablement setting. Each action also has its own enabled flag, URL, method, and target. |
salesforceActions, salesforceActionsEnabled
|
Salesforce action definitions and the dimension-level enablement setting. Each entry has an enabled flag and a salesforceActionName, which can reference a QuickAction. |
linkTemplate, linkTemplateEnabled
|
The dimension's link formatting and whether link templates are enabled. A template definition alone does not establish enablement. |
recordIdField, recordOrganizationIdField
|
The dimension's record and organization context for record navigation. These settings do not grant access to the records or organizations. |
measures |
Measure field identities, labels, numeric formats, units, currency formats, explorer visibility, and conditional formatting. |
conditionalFormatting |
Formatting rules on dimensions or measures. Each property identifies a referenceField and uses formattingBins or formattingPredicates to supply formatting values. |
organizations |
Multi-organization navigation information through organizationIdentifier, instanceUrl, and label. The identifier is an organization ID, not a metadata developer name. |
Behavior and Constraints
XMD categories and dataset identity
The top-level type and waveVisualization classify the XMD and its visualization context. Do not infer activation or precedence among XMD components from System, User, Main, and Asset.
dataset identifies the associated dataset, while datasetFullyQualifiedName identifies its associated version. datasetConnector and origin describe source context. A dataset association alone does not establish that field mappings correspond to the intended dataset version.
Dimension actions, links, and record navigation
Action availability has two levels. For custom actions, read both the dimension's customActionsEnabled and each customActions entry's enabled flag. For Salesforce actions, read both salesforceActionsEnabled and each salesforceActions entry's enabled flag. The presence of an action definition alone does not mean that it is enabled.
defaultAction selects the default interaction. An action API name can reference a QuickAction; the built-in values openSfdcRecord, openActionsMenu, and none are not QuickAction names.
Custom actions carry their own url, method, and target. These values matter when diagnosing where an action navigates and how it invokes its destination. Link behavior is separate: linkTemplate defines the link format, while linkTemplateEnabled controls enablement. linkTooltip supplies the link's tooltip.
recordIdField and recordOrganizationIdField supply record and organization context. For multi-organization navigation, each organizations entry requires organizationIdentifier, instanceUrl, label, and sortIndex. These settings describe identity and navigation; they do not authorize access to the referenced records or organizations.
Field identity, labels, and display order
For both dimensions and measures, field is the field name used in queries, while label is its displayed caption. Dimension member overrides make the same distinction: member identifies the underlying value, while label and color change its presentation. Changing a caption is not the same as changing a query-facing field or member value. Dimension member labels do not support multi-line text.
isDerived records whether a dimension or measure is derived; it does not contain a derivation expression. isMultiValue describes whether a dimension has multiple values.
showInExplorer controls whether a date, dimension, or measure appears in the explorer. It is a presentation setting, not evidence of a data-access restriction.
For dimensions, recordDisplayFields supplies an ordered set of fields for record display. Each entry identifies its field through recordDisplayField. showDetailsDefaultFieldIndex specifies default display order for dimensions and measures. Throughout the nested structures, sortIndex indicates list position, not action execution order or conditional-formatting precedence.
Dates and calendar interpretation
Each dates entry groups a date alias with component-field mappings. These include calendar fields such as dateFieldYear, dateFieldMonth, and dateFieldDay; fiscal fields such as dateFieldFiscalYear and dateFieldFiscalQuarter; epoch fields such as dateFieldEpochDay and dateFieldEpochSecond; and time fields such as dateFieldHour, dateFieldMinute, and dateFieldSecond.
firstDayOfWeek and fiscalMonthOffset are required. The fiscal offset is the number of months by which the fiscal year differs from the calendar year. isYearEndFiscalYear indicates whether the year end is the fiscal year. These settings affect how to interpret calendar and fiscal representations of the same date.
The nested date type is separate from the top-level XMD type:
-
Dateis available when time zone support is not enabled. -
DateOnlyhas no associated time and is available when time zone support is enabled. -
DateTimecontains both date and time parts and is available when time zone support is enabled.
These values are not interchangeable formatting labels. Their availability depends on the time zone setting.
Measure and conditional formatting
Measure formatting includes formatDecimalDigits, formatDecimalSeparator, formatThousandsSeparator, formatIsNegativeParens, formatPrefix, and formatSuffix. Read formatUnitMultiplier together with formatUnit and the other formatting settings when diagnosing a displayed value. formatCustomFormat stores a format array as one string, not as nested metadata elements.
For multi-currency presentation, isMultiCurrency indicates whether multiple currencies are available for the dataset, and currencyCode supplies its default currency code. currencies contains per-currency formats using the nested WaveXmdMeasure structure. These settings define presentation, not exchange rates or currency-conversion calculations.
Dimensions and measures can both contain conditionalFormatting. Each formatting property requires property, referenceField, type, and sortIndex. Its formattingBins or formattingPredicates supply formatting values. A predicate combines operator and value with formatValue.
The referenceField matters independently of the field being formatted. Changing a field can therefore affect conditional formatting elsewhere in the XMD, not just the display settings attached to that field.
Deployment and Retrieval
WaveXmd components use the .xmd suffix and reside in the wave folder. The type extends Metadata and inherits its fullName field.
dates, dimensions, measures, organizations, and their action and formatting structures are nested parts of a WaveXmd component. Helper names such as WaveXmdDate, WaveXmdMeasure, and WaveXmdFormattingProperty do not identify separate deployable metadata components.
The documented required fields within common nested entries are:
- Date entries:
alias,firstDayOfWeek,fiscalMonthOffset,sortIndex, andtype. - Dimension and measure entries:
field,isDerived, andsortIndex. - Custom action entries:
customActionName,enabled, andsortIndex. - Salesforce action entries:
salesforceActionName,enabled, andsortIndex.
When moving XMD between environments, the application and dataset associations, dataset-version identity, query-facing field names, and action API names are separate points to examine. Display labels do not replace field identities, and action definitions do not replace their enablement settings. Conditional-formatting references can also point to fields other than the dimension or measure containing the rule.
The documented dataset requirement has an exception-like example, but not a general omission rule. The official Asset dashboard example supplies a nil dataset; this does not establish that dataset can be omitted from other XMD components.
Relationships
WaveXmd connects display and interaction metadata to an Analytics application and dataset. Its dimension actions can also identify QuickActions. These are possible element references, not a mandatory deployment sequence.
References
-
WaveApplication:application. -
WaveDataset:dataset. -
QuickAction:defaultAction,salesforceActionName. Only action API names indefaultActionrepresent this reference; its built-in interaction values do not.
Documentation Inconsistencies
The field documentation marks dataset as required, but the official Asset dashboard example explicitly supplies <dataset xsi:nil="true"/>. This discrepancy does not establish a general rule that the element is optional.
The same example opens its dimensions block with <dimesions> but closes it with </dimensions>. The documented element name is dimensions; use that spelling rather than copying the mismatched opening tag.
Common Questions
Where are WaveXmd metadata files stored?
WaveXmd components are stored in the wave folder with the .xmd suffix. Dates, dimensions, measures, actions, and formatting rules are nested inside the component, not deployed as separate helper-type components.
Why is an action defined in XMD not enabled?
An action definition alone does not establish enablement. Custom actions have both customActionsEnabled at the dimension level and enabled on each entry. Salesforce actions similarly use salesforceActionsEnabled and a per-entry enabled flag.
Is dataset required for WaveXmd?
It is documented as required. The official Asset dashboard example supplies a nil dataset, but that example does not establish that dataset can generally be omitted.
Should I use Date, DateOnly, or DateTime in XMD?
The choice depends on time zone support. Date is available without time zone support. With time zone support enabled, DateOnly represents a date without a time, while DateTime includes both date and time parts.
Does changing an XMD label change the field used in queries?
No. For dimensions and measures, label is the displayed caption and field is the name used in queries. Member overrides likewise separate the underlying member value from its displayed label and color.