Definitions
Definitions are versioned records for reusable business decisions. They represent row subjects, calculations, and policies and link those decisions to source evidence and the charts that use them.
One answer can use several definitions
Sienna stores the smallest business decisions that can be reused or changed independently. A query composes those records with its own time, grouping, and filter selections.
ORDER_ID · LINE_IDSUM(NET_SALES_USD)SUM(COGS_USD){net sales} - {cost of goods sold}Components are summed before subtractionBusiness meaning and warehouse logic are stored separately
The business rule, formula, reusable dependencies, reporting behavior, and source binding are stored separately. A data lead can review the meaning without reading SQL and inspect the implementation when needed.
Gross profit
What it means
Net sales from completed orders minus the direct cost of the goods sold, converted to USD.
Calculation
Reporting rule
Sum net sales and cost of goods sold at the requested scope, then subtract. Do not sum or average stored gross-profit percentages.
Definition dependencies
Saved charts reference shared definitions
Each chart stores its own period, grouping, and filters while resolving the same reviewed definition.
{net sales} - {cost of goods sold}A source-of-truth choice selects the default definition
When several definitions provide the same business concept from different sources, the selected definition is used by default. The alternatives remain visible with their own meaning and evidence.
Customer region
CRM account region
Use the region assigned to the customer account in the CRM.
CRM.DIM_ACCOUNTSBilling address region
Map the country on the current billing profile to a region.
BILLING.DIM_CUSTOMERSContracting entity region
Use the region of the legal entity named on the active contract.
FINANCE.DIM_ENTITIESSupport and authority describe different properties
Support records how much business choice a definition contains. Authority records whether it comes from a connected source, remains an assumption, or has been confirmed by the organization.
Support
What kind of decision is this?- Standard
- Direct, verifiable meaning with no material business choice.
- Common
- A supported treatment that organizations may reasonably vary.
- Custom
- An organization-specific or consequential business choice.
Authority
May Sienna rely on it directly?- Connected source
- Supplied by a connected source such as dbt and used directly.
- Assumption
- No connected or confirmed authority yet. Its use remains visible.
- Confirmed
- The organization approved the meaning in a new recorded version.