Skip to main content

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​

FamilySupported presetsPurpose
Base measuresprepared_value, sum, count, count_distinct, min, max, avgSelect an upstream-prepared exact-grain value or aggregate source values.
Formulasratio, difference, weighted_averageCombine measures.
Time comparisonsperiod_value, period_delta, percent_changeReturn the prior value, absolute change, or fractional change for a positive calendar interval.
Shares and rankingpercent_of_total, rankCalculate contribution or position within a group.
Rolling and cumulativetrailing, trailing_delta, trailing_pct_change, running_total, moving_average, month_to_date, quarter_to_date, year_to_dateEvaluate or accumulate a measure over an ordered time range.
Conditional calculationsthreshold_ratio, filtered_sum, filtered_countAggregate only rows that satisfy a condition.
  • avg is non-additive: an average of averages is not generally valid. Use weighted_average when groups must contribute in proportion to a weight.
  • prepared_value exposes a numeric value calculated upstream. It inherits the exact time and identity grain of the cube.
  • Use max only 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 offeredUse instead
Scaled capacityPrepare an additive fact in Transformer SQL, then expose it with sum.
Cost delta projectionPrepare 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 ratioPrepare additive runtime and availability facts at one declared grain, then use ratio.
KPI comparisonUse KPI vs prior period on the Guides tab of a view.
Bollinger or rolling standard deviationPrepare the exact-grain statistical series in a Transform job, then expose its outputs with Prepared value.

Important formulas and conventions​

Displayed preset / idContract
Ratio / rationumerator / denominator, with safe handling of a zero denominator. Inputs can be base or compatible calculated number measures.
Weighted average / weighted_averageSUM(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_ratioMatching row count divided by eligible row count. One match in five returns 0.2.
Difference / differenceLeft measure minus right measure. Inputs can be base or compatible calculated number measures, with different filters.
Conditional sum / filtered_sumSum of the rows that match a numeric comparison, or an exact text equality or inequality, on this measure.
Conditional count / filtered_countCount of the rows that match the condition. Other measures in the same query keep their own population.
Previous period value / period_valueA base or compatible calculated measure shifted by a positive calendar interval.
Change from previous period / period_deltaCurrent value minus the shifted previous-period value.
Percent change from previous period / percent_change(current - previous) / previous.
Percent of total / percent_of_totalShare 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 / rankPosition 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_totalCumulative 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. 1 means 100 percent and 0.2 means 20 percent. Percent formatting converts the fraction for display.
  • Division: ratio, weighted_average, threshold_ratio, percent_change, percent_of_total, trailing_pct_change, and moving_average with 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 fraction or whole scale. 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:

MeasureResult
Cost120
Previous period value, one month100
Change from previous period, one month20
Percent change from previous period, one month20%
  • 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.

RecipeWhat it creates or reusesResponsibility
Headline valueKPI over an existing measureView only.
KPI vs prior periodA KPI over one existing measure with a Date range comparisonThe view owns the current and comparison ranges. No helper fields are created. Formatting and favorable direction come from the measure.
Trend over timeLine visualization over an existing measureView time grain and presentation only.
Compare categoriesGrouped bar visualizationView grouping only.
Top contributorsOrdered and limited comparisonView order and limit. It creates no rank formula.
Detailed tableSmall table over existing fieldsView only.
Ratio / percentReusable ratio fieldA field from the preset.
Measure differenceReusable difference field plus KPIA field from the preset plus view presentation.
Running total trendReusable running_total field plus lineA 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.