Measure, field, and recipe reference
A preset creates one validated field. A recipe creates or reuses fields from presets and arranges them in a view. The app shows only the presets allowed for your cube and field scope.
Stable row-level facts belong in a Transform job, or in a Charge job when they define commercial charging. See Choosing where calculation logic belongs.
Supported semantic presets
Measures
| Family | Supported presets | Purpose |
|---|---|---|
| Base measures | prepared_value, sum, count, count_distinct, min, max, avg | Select an upstream-prepared exact-grain value or aggregate source values. |
| Formulas | ratio, difference, weighted_average | Combine measures. |
| Time comparisons | period_value, period_delta, percent_change | Return the prior value, absolute change, or fractional change for a positive calendar interval. |
| Shares and ranking | percent_of_total, rank | Calculate contribution or position within a group. |
| Rolling and cumulative | trailing, trailing_delta, trailing_pct_change, running_total, moving_average, month_to_date, quarter_to_date, year_to_date | Evaluate or accumulate a measure over an ordered time range. |
| Conditional calculations | threshold_ratio, filtered_sum, filtered_count | Aggregate only rows that satisfy a condition. |
avgis non-additive: an average of averages is not generally valid. Useweighted_averagewhen groups must contribute in proportion to a weight.prepared_valueexposes a numeric value calculated upstream. It inherits the exact time and identity grain of the cube.- Use
maxonly for a real maximum across rows. It does not select forecasts, moving averages, scores, or control limits.
A base measure aggregates a source field (a cube column) directly. A calculated measure adds logic, often from other measures. The app says Measure when either kind is valid, and Base measure when a calculation requires a source-backed input.
Dimensions
The supported presets are string_dim, number_dim, boolean_dim, and bucket_distribution.
When you choose a source field, the app selects string_dim, number_dim, or boolean_dim for you and shows the type as Text, Number, or True/false. bucket_distribution is Number ranges, under Create a specialist dimension.
Rules for Number ranges:
- The field defines the boundaries, labels, order, and null membership.
- Each range includes its start and excludes its end.
- A value outside every range, also in a gap between two ranges, shows as
(other), never with the label of a neighboring range. - The optional below-range and above-range labels apply only before the first and after the last range.
- Bucket colors belong to each visualization, not to the field.
Presets not offered for authoring
| Not offered | Use instead |
|---|---|
| Scaled capacity | Prepare an additive fact in Transformer SQL, then expose it with sum. |
| Cost delta projection | Prepare it in a Transform job, a Charge job, or a managed post-charge Transform job, depending on when its inputs exist and whether it defines the charged result. |
| Runtime utilization ratio | Prepare additive runtime and availability facts at one declared grain, then use ratio. |
| KPI comparison | Use KPI vs prior period on the Guides tab of a view. |
| Bollinger or rolling standard deviation | Prepare the exact-grain statistical series in a Transform job, then expose its outputs with Prepared value. |
Important formulas and conventions
| Displayed preset / id | Contract |
|---|---|
Ratio / ratio | numerator / denominator, with safe handling of a zero denominator. Inputs can be base or compatible calculated number measures. |
Weighted average / weighted_average | SUM(value × weight) / SUM(weight). Value and weight are source-backed base measures. Null values do not contribute weight, and a zero total weight returns no value. |
Percentage meeting a threshold / threshold_ratio | Matching row count divided by eligible row count. One match in five returns 0.2. |
Difference / difference | Left measure minus right measure. Inputs can be base or compatible calculated number measures, with different filters. |
Conditional sum / filtered_sum | Sum of the rows that match a numeric comparison, or an exact text equality or inequality, on this measure. |
Conditional count / filtered_count | Count of the rows that match the condition. Other measures in the same query keep their own population. |
Previous period value / period_value | A base or compatible calculated measure shifted by a positive calendar interval. |
Change from previous period / period_delta | Current value minus the shifted previous-period value. |
Percent change from previous period / percent_change | (current - previous) / previous. |
Percent of total / percent_of_total | Share of an additive Sum or Row count total within each combination of the selected dimensions, or of the grand total of the chart when none are selected. Not available for non-additive and calculated number measures. |
Rank / rank | Position of a base or compatible calculated measure within each combination of the selected partitions. Without partitions, all rows of the chart are ranked together. |
Cumulative value / running_total | Cumulative base value from the earliest data through each period, ordered by time. It restarts for each value of the reset dimensions that the chart groups or filters by. |
- Windows: every window ends with, and includes, the period it is shown on. A seven-day trailing value on a daily chart covers that day and the six before it. On a KPI card without a time breakdown, the window ends with the date range of the card. A time shift ends the window that much earlier.
- Percentages: all percent-producing presets return fractions.
1means 100 percent and0.2means 20 percent. Percent formatting converts the fraction for display. - Division:
ratio,weighted_average,threshold_ratio,percent_change,percent_of_total,trailing_pct_change, andmoving_averagewith missing periods counted as zero divide in double precision, with about 15 significant digits. A zero denominator returns no value. Compare a ratio with a threshold by a tolerance, not by exact equality. - Several currencies: when a dimension holds the currency of an amount, Percent of total and Rank stay within one currency. A chart of such a share, rank, percent change, or ratio must group by the currency or filter to one currency. Otherwise it is refused.
- Ratio source fields: an Average, Minimum, Maximum, or Prepared value field over a plain number field can be a ratio with a
fractionorwholescale. A Sum of that field cannot. A count or currency field keeps its own meaning.
Previous-period measures in a KPI
The selected Date range stays the current period. The measure applies its interval to find the previous period, which is not added to the current value. With a June cost of 120 and a May cost of 100, select June to get:
| Measure | Result |
|---|---|
| Cost | 120 |
| Previous period value, one month | 100 |
| Change from previous period, one month | 20 |
| Percent change from previous period, one month | 20% |
- A custom range of June 2–4 compares with May 2–4 when the measure uses a one-month interval.
- The Compare with option of the KPI is separate: it uses the previous time range of the view.
- A Top or Bottom KPI uses the measure value of the selected period to choose its members.
- A target measure keeps its own calculation period. A year-to-date target includes values from the start of the year.
Partial periods in monthly tables
When a monthly table ends with a partial month, the column heading shows the included dates and marks the period as partial. A previous-period measure compares with the matching dates in the earlier period.
For example, May totals 100, with 40 on May 1–4, and June 1–4 totals 60. A one-month percent change returns 50% (June 1–4 against May 1–4), not the −40% between the displayed totals 100 and 60.
Moving-average contract
moving_average requires all of these inputs:
- a base semantic measure
- the supported time dimension
- an observation grain: minute, hour, day, week, month, quarter, or year
- a positive window size, measured in observations
- an explicit list of reset (partition) dimensions, which can be empty
- a missing-period policy: exclude or zero
Hypermeter evaluates the base measure once per time bucket, then applies the window: with source values 10 and 20 on one day and 5 on the next, a daily window sees [30, 5], and the two-observation moving average is 17.5.
For [10, missing, 20], exclude gives 15 and zero gives 10. Choose zero only when a missing period is a real zero. The time range of the report still bounds the calculation.
Supported saved-view recipes
In the app, recipes are on the Guides tab of a view, under the names in this table. See The authoring workspace.
| Recipe | What it creates or reuses | Responsibility |
|---|---|---|
| Headline value | KPI over an existing measure | View only. |
| KPI vs prior period | A KPI over one existing measure with a Date range comparison | The view owns the current and comparison ranges. No helper fields are created. Formatting and favorable direction come from the measure. |
| Trend over time | Line visualization over an existing measure | View time grain and presentation only. |
| Compare categories | Grouped bar visualization | View grouping only. |
| Top contributors | Ordered and limited comparison | View order and limit. It creates no rank formula. |
| Detailed table | Small table over existing fields | View only. |
| Ratio / percent | Reusable ratio field | A field from the preset. |
| Measure difference | Reusable difference field plus KPI | A field from the preset plus view presentation. |
| Running total trend | Reusable running_total field plus line | A cumulative field plus aligned time presentation. |
A recipe uses fixed presets: you cannot enter a formula or SQL. Confirming a recipe saves all of it or nothing.
Semantic fields and presentation
A semantic field holds the reusable meaning: aggregation, filtering, period comparison, bucket membership, display unit or number format, status bands, and favorable direction. A visualization holds what can differ between views: date ranges, comparisons, chart labels, order, limits, and layout. KPI comparison and target coloring follow the selected measure.
Fields can be canonical, space-local, or view-local, and some presets exist only at space or view scope. See Field scopes and promotion.