Skip to main content

Linking producers

A producer is a Charge job that feeds a cube. You link a producer by choosing the cube in the Charge job. The cube page lists its producers on the Producers tab, but you cannot add a producer there.

This page shows how to link the first Charge job, how to add more, and when the choice of cube becomes fixed.

The Producers tab of a cube, with one producer.
The Producers tab of a cube, with one producer.

Before you start​

You need a workflow in which a Transform job produces a fact table. The Charge job reads that table. See Transformers.

  1. Open the workflow. On the Build tab, select Add job, then Charge.
  2. Enter a Table name and select the Time grain.
  3. Under Cube, select Existing and choose the cube. Draft cubes are listed too. To create the cube now, select New and enter the New cube name.
  4. Select Add Charge job.
  5. In the Charge job editor, select the Fact table. Then set the time window on the Configuration tab, and fill in the Dimensions, Measures, and Grain tabs. See Chargers.
  6. Open the Review tab and select Publish. This also publishes a Draft cube.
  7. Open the Operate tab and select Execute. The run produces the data for the cube.

For a Charge job that already exists, choose the cube on its Configuration tab, under Cube publication (optional).

The dimensions and measures of the Charge job become the source fields of the cube. You do not keep a second list. See Source fields and grain.

What the cube page shows​

What you seeWhat it meansWhat to do
The Producers tab says that there are no producers and links to WorkflowsNo Charge job feeds the cube yet.Link a Charge job as described above.
A producer with the status DraftYou saved the link, but the workflow is not published yet. A Draft link does not count toward the health of the cube.Publish the workflow.
A producer rowA Charge job that feeds the cube.Select the row to open the Charge job.

When the cube of a Charge job becomes fixed​

Choose the cube before the first Production run.

SituationResult
The Charge job had its first successful Production runThe cube is fixed, even when the run produced no rows. None is fixed in the same way. To report into another cube, add another Charge job and run the dates that it must cover.
The Charge job ran only in PreviewThe cube is not fixed.
A Production run or series of the workflow is still in progressWait for it or cancel it before you change the cube.

Add more producers to one cube​

Several Charge jobs can feed one cube. Their outputs add together in the cube, even when their names and dates match. Use this when one fact comes from more than one source. For example, a "Cloud Cost" cube can have one Charge job per cloud provider.

Each extra Charge job must:

  • Define exactly the same grain as the cube.
  • Map every identity dimension of that grain.
  • Use the same kind, dimension or measure, for a field key that another Charge job also uses.

To add the producer, follow Link a Charge job to a cube in the other workflow and select Existing. Hypermeter checks the result. See Producer compatibility.

After the cube is published, you can still add producers.

Use one Charge job for many date ranges​

Read the time window from inputs, so that each run supplies its own dates. In the Charge job, enter an input reference in Start timestamp and End timestamp:

${{ inputs.start }}
${{ inputs.end }}

Every run of the job writes to the same output. A successful run replaces the data of this job for the dates that it covers. Other dates keep their earlier results. See Inputs and parameters.