AML Reference
Syntax, types, and object definitions for the Analytics Modeling Language.
This is the reference for AML: the syntax, the types, the object-by-object details. Use it to look something up.
For concepts (what AML is for, design principles, reusability patterns, and how it fits with AQL), head to the AML Overview.
How this section is organized
AML is a declarative language for defining semantic models. The reference is grouped by object type and by language feature, mirroring the sidebar.
Core objects
The building blocks you'll define most often: models and their fields, datasets, and relationships.
Models and fields
Model
Define table models and query models, the foundation of every semantic model.
Table model
Models backed by database tables or views.
Query model
Models defined by a SQL query rather than a single table.
Fields
Dimensions and measures defined inside models.
Datasets
Dataset
Collections of models wired together with relationships.
Dataset fields
Cross-model dimensions and metrics that live on the dataset.
Relationship
How models join together inside a dataset.
Language features
The constructs that make AML composable and reusable: types, functions, modules, and the tools for sharing logic across objects.
Types
The AML type system.
Constant
Reusable constant values.
Function
User-defined functions.
Module
Organize and import definitions across files.
Extend
Inherit and override object properties.
Partial
Composable object fragments you can mix in.
If-else
Conditional logic in definitions.
String interpolation
Build dynamic string values.
Formats
Number and date display formats.
Quick start
If you're new to AML:
- Examples: side-by-side code examples for common objects
- Model → Fields → Dataset: the core modeling path
See also
- AML Overview: conceptual introduction and design principles
- AQL Reference: the query language that runs on top of AML models
- Reusability: patterns for composing and reusing AML code