Skip to main content

Create new models from existing dimensions and measures

You can use AML Extend to define groups of reusable dimensions/measures, and combine them to create a new data model on the fly chaining extensions together.


PartialModel revenue_metrics {
measure gmv { ... }
measure mrr { ... }
measure arr { ... }
}

PartialModel location {
dimension city_name { ... }
dimension country_code { ... }
}

PartialModel date {
dimension created_at { ... }
dimension updated_at { ... }
}

// Chaining multiple extends
Model merchant_full = company
.extend(revenue_metrics)
.extend(location)
.extend(date)

Model merchant_secure = company
.extend(location)
.extend(date)


Let us know what you think about this document :)