The semantic layer governs metric meaning. It does not replace policy enforcement. For hard controls (PII, scope, contracts), use Trusted Analytics V1.
Create a semantic model
Createsemantics/semantic_model.yml:
Measure types
count,sum,avg,min,max,count_distinct
Add deterministic filters to critical measures
For business-critical metrics (for example revenue), encode exclusions directly in the measure definition:Join types
many_to_one,one_to_one,one_to_many
query_metrics for covered questions to avoid ad‑hoc SQL and keep logic governed.
Mode behavior
- Direct Analytics: semantic model optional
- Trusted Analytics V1: semantic model strongly recommended (often required for critical metrics)
- Trusted Analytics V2: same as V1, with metadata enrichment from OpenMetadata
