Chargers
A Charge job turns the table of a Transform job into the result that a cube reports on. You choose the time window, the dimensions, the measures, and the grain. The job calculates exact values and applies your charging rules.
For every key of the job instructions, see Charger instructions.

Add a Charge job
- On the Build tab of a workflow, select Add job, then Charge.
- Enter a Table name and choose a Time grain, from Hour to Year.
- Under Cube, choose None for an intermediate result, Existing, or New with a New cube name.
- Select Add Charge job.
- On the new card, select Edit instructions.
You create a cube only from a Charge job: in this dialog, or later in the editor on the Configuration tab, under Cube publication (optional). After the first run of the published workflow, the cube of the job is fixed. See Linking producers.
The Charge job editor
| Part | What you set there |
|---|---|
| Fact table | The table that the job reads. Its columns are the choices for the time columns, dimensions, and measures. |
| Configuration | The time window, and Cube publication (optional) |
| Dimensions | The columns to group and filter by, with Add dimension |
| Measures | The values to calculate, with Add measure |
| Grain | Interval, Timezone, Week starts on, Month start day, and Identity dimensions |
| Rules | The charging rules that price the measures of this job. The tab shows only when charging rules are enabled for your organization. |
| Sources | The columns of the fact table. Select + beside a column, then Add as dimension or Add as measure. |
| Output | The result of the latest Preview |
The period and the identity dimensions together must identify one row. A Charge job does not repair duplicate rows. For how a cube uses the grain, see Source fields and grain.
| What you see | What to do |
|---|---|
| Fact table offers no table | Open the Transform job, complete it, and select Preview there. Then enter the table name and select Read from with the name of the Transform job, or select Check for tables. |
| The tables fail to load | Select Try again. |
| The saved fact table is not available | Select Edit saved instructions and correct the table. |
| You changed the fact table | The column names that you selected before stay. Check each of them. |
| Preview reports a duplicate grain | Add the dimensions that identify a row, or aggregate to one row for each grain in the Transform job. |
Set the time window
On the Configuration tab:
| Field | What to enter |
|---|---|
| Start timestamp, End timestamp | The period that a run charges: a timestamp with a time zone, such as 2026-09-01T00:00:00.000Z, or an input such as ${{ inputs.start }} |
| Start date column, End date column | The columns that hold the start and the end of each row. They must be timestamps with a time zone, not dates. |
| Start date matching, End date matching | Inclusive or Exclusive. A new Charge job has Inclusive for the start and Exclusive for the end. Keep these values. |
- Complete both timestamps before you select Preview or Publish.
- A run charges the rows from the start of the window up to, but not including, the end.
- The window must cover complete periods of the grain, in UTC. A partial period, an invalid date, or an end before the start stops the job before it runs.
- For a workflow that runs regularly, read the window from inputs. One published version then serves a daily refresh and a backfill. Use the same inputs in the SQL of the Transform job.
- With fixed timestamps, every run charges the same window, and validation warns about it. This is fine for one backfill.
- A Preview uses the defaults of the inputs. A restart of a run uses the inputs and the run time of the original run.
You can calculate a timestamp with an expression:
| You need | Write |
|---|---|
| A time relative to the run | ${{ date.addDay(date.toStartOf(now(), "day"), -30) }} is the start of the last 30 complete UTC days. now() gives the run time. |
| A date relative to an input | ${{ date_offset(inputs.as_of_date, -1) }}. The input must be a String with a date as YYYY-MM-DD, not a DateTime. |
| The run time as an input | Declare a DateTime input named run-time without a value or a default. A value that you supply, or the time of the schedule, comes first. |
An input expression cannot refer to another input expression. See Inputs and parameters.
What a run replaces
A successful run of the published workflow replaces the rows of this job for the complete periods in its window. Rows of other periods stay.
- A repeated or overlapping range replaces its periods and adds no duplicate rows.
- A period for which the new run finds no rows loses its earlier rows.
- A failed run replaces nothing.
| Change | What happens |
|---|---|
| You rename the job, or change prices, rules, or SQL | The same result continues. |
| The Transform job changes columns that this job does not use | The same result continues. |
| A column that this job uses changes its type or whether it can be empty, or the job reads another table | The run is refused before it replaces data. |
| You change the grain, the identity dimensions, or the kind or type of a field | You need a new Charge job. |
| An older published version runs for dates that a newer calculation already wrote | The run fails and names the dates. |
If a Transform job reads this Charge job, let one run finish before you start a run with another date range. Overlapping runs can fail.
Changes in how Hypermeter calculates charges are announced in the release notes before they take effect. You do not need to publish again.
Dimensions
On the Dimensions tab, select Add dimension. Enter a Dimension name and choose a Dimension source:
| Dimension source | Where the value comes from | Kind in the job instructions |
|---|---|---|
| Fact table column | A column of the fact table | Direct |
| Another table | A column of a reference table. You choose the Matching fact column that finds the row in that table | ForeignKey when the matching column has a declared relationship, Indirect when you name the reference table yourself |
| Fixed value | One fixed value | Literal |
- A dimension can read a number or a boolean column directly.
- A dimension cannot hold a calculation. Calculate the value in the Transform job, or use a measure.
- Remove dimension also removes the dimension from the grain while the cube is a draft without data and without another job that fills it. Otherwise you cannot remove a dimension that is part of the grain. Use a separate draft cube if this job needs another grain.
Read a table another workflow writes
A Charge job can read a transformed or charged production table that another workflow writes, for example a rate card. The steps are the same as for a Transform job: choose the table as the Fact table, then choose how fresh the table must be on the Review tab.
Measures
On the Measures tab, select Add measure. Enter a Measure name and choose a Measure source:
| Measure source | Result | Operation in the job instructions |
|---|---|---|
| Fact table column | The value of one column of the fact table | Copy |
| Another table | The value of a column of a reference table | Copy |
| Fixed value | One fixed value | Copy |
| Calculation with Add | Two or more operands added | Sum |
| Calculation with Subtract | The first operand minus each later one | Difference |
| Calculation with Multiply | Two or more operands multiplied | Product |
| Calculation with Divide | A numerator divided by a denominator | Ratio |
The rest of this page uses the names of the job instructions.
- Operands must be exact integers or decimals. An approximate value is refused. See Preserve exact money provenance.
- Every result is rounded to 12 decimal places, and a tie goes to the nearest even digit. You cannot change this.
- A version that you published before 11 November 2026 can round currency values to six decimal places, until you publish again.
- A zero denominator in a
Ratio, or a number that is too large, stops the job. Nothing is written.
Value type
Under Value meaning, the Value type is Number by default. For money, select Currency and a Currency source: Same for every row with a currency code, or Read from a dimension.
A currency does not convert the value. To convert, carry the amount and the exact rate through the Transform job and use Product. See Currency values and decimal precision.
Handle missing values
A Charge job never reads a missing number as zero. If a calculation, a pricing quantity, or an allocation weight needs a value that is missing, the job stops and writes nothing. The failed job names the measure, the operand, the column, and the rows. See A required Charge input was missing.
When you know what a missing value means, set a defaultValue on that operand in the job instructions:
- For a quantity, such as a token count,
0is correct: nothing was used. - For a rate or a price, set no default.
0bills nothing and1bills the quantity as the price, and both look like normal lines. Let the run stop, and fix the source data.
A default on an operand of a Product or a Ratio also needs acknowledgeRateDefault: true. A Copy measure cannot have a default: set the default where another measure reads the copy.
While you edit, a notice marks each operand that can be empty and has no default. It blocks nothing. See Operand defaults.
Calculation phases
pre_pricing, the default, runs before pricing. Use it for the values that pricing, adjustments, and allocation weights read.post_allocationruns after pricing, adjustments, and allocation. Use it for aDifferencebetween final amounts, or aRatiofor the final rate of a row. Its result cannot go back into pricing or an earlier measure.
Pricing and allocation
Labels on a measure connect it to charging rules. A rule matches only when its labels are exactly the labels of the measure. You add and edit the rules on the Rules tab. The labels of a measure and the pricing targets are part of the job instructions, and the editor has no form for them. See Charging rules and labels. A published version keeps the rules as they were when you published.
When a rule prices a group of rows as one amount, the Charge job divides that amount over the rows by a weight measure that you choose. The row amounts add up exactly to the group amount. See Rule targets and allocation.
Calculation evidence
A Preview and a run record how each amount was calculated: the operands, the tiers that applied, the versions of the rules, the value before and after each adjustment, the allocation, and the rounding.
- An owner can request the evidence of one run or one Preview, with at most 1,000 records in one request.
- A failed job gives no data and no evidence.
- The evidence does not show whether a value came from the source or from a default. Look at the
Copymeasure of the column in the result: it is empty in the rows where the default applied.