ktx/examples/local-warehouse/semantic-layer/warehouse/orders.yaml
2026-05-10 23:12:26 +02:00

18 lines
313 B
YAML

name: orders
table: public.orders
description: Orders placed through the storefront.
grain:
- id
columns:
- name: id
type: number
- name: status
type: string
- name: amount
type: number
measures:
- name: order_count
expr: count(*)
- name: total_revenue
expr: sum(amount)
joins: []