The semantic model
The semantic model is the set of named fields that people can use in reports on a cube. You define the fields on top of the columns of the cube, and Hypermeter checks each field before anyone reports on it. A field that is not in the model cannot be queried.
This page explains the kinds of field and the rules for them. To define fields, see Reporting fields.
The two kinds of field
| Kind | What it is | Example |
|---|---|---|
| Dimension | A value you group and filter by: text, a date, a number, or a yes/no flag | Service |
| Measure | A number you aggregate | Total cost |
A report usually combines both: total cost, by service.
Owners define fields on the Fields tab of the cube. Report builders pick those fields when they build a view, and can add fields of their own there. See Working with fields.
The rules that matter
You build a field from a preset
You do not write field logic by hand. You choose a preset, point it at a column, and set a few options. Hypermeter validates the result, so every field in the model is one the product has checked.
If no preset can express a calculation, the work usually belongs earlier, in the workflow.
Each field has a stable internal name, a title, and a description. A field is either public or a hidden helper that only supports another field. With hidden helpers you build a calculation in stages without filling the field list.
Measures cover more than sums
Besides count, distinct count, sum, average, minimum, and maximum, presets cover:
| Preset family | Example |
|---|---|
| Filtered measures | Production cost next to total cost |
| Rolling windows | A 7-day moving average, or a month-to-date total |
| Time shifts | Month over month, year over year |
| Ranking | The rank of each row within a group |
| Multi-stage calculations | Percent of total |
| Ratios and weighted averages | Effective unit price |
A measure can also carry a display format (currency, percent, or number), the dimensions a reader can drill into, and colored threshold bands for KPI indicators.
Do not use the average preset across groups. It gives an average of averages, which is wrong. Use a weighted average.
See Building measures and the measure and field presets reference.
The model calculates when the report runs
The model is for aggregations and comparisons that depend on the report: its filters, its grouping, and its time range. Facts that are the same for every report belong in the workflow:
- A Transform job owns joins, allocations, unit conversion, and other fixed values per row.
- A Charge job owns rates, discounts, and charging rules.
The model uses only the fields that the cube offers. It does not read the workflow or its tables. If a fact is missing, ask an owner to publish it through the cube, and describe its meaning, grain, unit, null behavior, and how it reconciles to the source.
For the full decision table, see Choosing where calculation logic belongs.
A field has a scope, and you promote it when more people need it
| Scope | Who can use the field |
|---|---|
| View-local | One view |
| Space-local | Every view in one space |
| Canonical | Every space that uses the cube |
Start with a view-local field to answer the question in front of you. When the team wants it, make it reusable in the space. When every space should share it, make it canonical.
- Rolling windows, percent of total, and ranking stop at space level. They cannot become canonical, and the app does not offer the option.
- A field name cannot clash with a field at another scope, or hide one.
- When you rename a field in one view, only the label in that view changes. No new field is created.
See Field scopes and promotion.
Example
A team wants to know which share of the production cost each service causes.
- The cube already offers the measure "Production cost" and the dimension "Service".
- A report builder adds a percent-of-total measure as a view-local field.
- Other views need the same number, so the field is made reusable in the space.
- The field stays there: percent of total cannot become canonical.