Skip to main content

Tutorial: build a pipeline from scratch

In this tutorial you build all three layers of Hypermeter once: a workflow that produces data, a cube that holds the reporting contract, and a view that reports on it. It takes about 30 minutes.

The data is a sample file with two months of daily cloud cost. The steps are the same for your own data.

Before you start​

Required permissions

You need the owner role in an organization. See Create or join an organization.

The sample file is public, so you do not need credentials:

https://public-docs-hypermeter.netlify.app/samples/cloud-cost-sample.csv

It has 549 rows, one for each day, account, and service, from 1 September to 31 October 2026:

ColumnsContent
usage_dateThe day of the cost
provider, account_id, account_name, service, region, teamWhat the cost is for
usage_unit, usage_quantityHow much was used
cost, currencyWhat it cost

What you build​

StageYou makeWhere
1A workflow with four jobsWorkflows, Build tab
2A published version of the workflow, and one runReview and Operate tabs
3The fields that people report onCubes
4A space that can use the cubeSpaces, Access tab
5A view with a first chartThe same space

Stage 1: Build the workflow​

  1. Open Workflows on the rail and select New workflow.
  2. Enter a name, for example Cloud cost, and select Create.
New workflow asks for a name and a description.
New workflow asks for a name and a description.

The workflow opens on the Build tab. You now add four jobs. Each job reads the result of the job before it.

JobWhat it does here
ExtractFetches the sample file
LoadPuts the rows in a table with typed columns
TransformUses SQL to shape the rows
ChargeSets the dimensions, measures, and grain, and fills the cube
Wait for your changes to save

Each job saves by itself. Wait until the toolbar shows Saved before you go to the next step.

1a. Extract job: fetch the file​

  1. Select Add job, then Extract.

    Add job lists the four kinds of job.
    Add job lists the four kinds of job.
  2. On the new card, select Edit instructions.

  3. Select Add request, then Http.

  4. Enter a name for the request, for example Daily cloud cost.

  5. Leave Method on GET, paste the address of the sample file into Request URL, and select Done.

    An Http request with its name, method, and URL.
    An Http request with its name, method, and URL.
  6. Select Preview, then Confirm and run. The result shows 200 OK · CSV · 549 items.

    The preview of the Extract job shows the rows of the file.
    The preview of the Extract job shows the rows of the file.

For sources that need a login, pagination, or one request for each account, see Extractors and Connections and authentication.

1b. Load job: put the rows in a table​

  1. In the toolbar of the Extract job, select +. The dialog proposes a Load job. Enter a name and select Add job. The Load job opens.
  2. In Table, enter docs_demo_cloud_cost.
  3. Select Preview. The Response tab shows the rows of the file.
  4. On the Response tab, select each of the 11 values of the first row. Each value becomes a column.
  5. Check the Type of the columns: DATE for usage_date, DECIMAL for usage_quantity and cost, and TEXT for the others.
  6. Select Key for usage_date, account_id, and service. Together these identify one row.
  7. Under When the key is already in the table, select Change, then Update to the newest data, then Done. You can now run the workflow again without an error for rows that are already loaded.
  8. Select Preview. The Output tab shows the typed table.
The Load job with its table name, key columns, and types. The Output tab shows the result.
The Load job with its table name, key columns, and types. The Output tab shows the result.

See Loaders.

1c. Transform job: shape the rows​

A Charge job needs a start and an end for each row, as timestamps with a time zone. The file has only a date, so the Transform job makes both.

  1. In the toolbar of the Load job, select +. The dialog proposes a Transform job. Enter a name and select Add job.

  2. On the SQL tab, replace the content with this statement:

    CREATE TABLE {{transformed}}.docs_demo_cloud_cost AS
    SELECT
    CAST(usage_date AS TIMESTAMP) AT TIME ZONE 'UTC' AS usage_start,
    CAST(usage_date + INTERVAL 1 DAY AS TIMESTAMP) AT TIME ZONE 'UTC' AS usage_end,
    provider,
    account_name,
    service,
    region,
    team,
    usage_unit,
    usage_quantity,
    cost,
    currency
    FROM {{loaded}}.docs_demo_cloud_cost
  3. Check that the header shows Reads 1. If it shows Reads 0, select it and select the Load job.

  4. Select Preview. The Output tab shows usage_start and usage_end.

{{loaded}} stands for the tables of Load jobs, and {{transformed}} for the table that this job creates.

The Transform job with its SQL. The Output tab shows the new start and end columns.
The Transform job with its SQL. The Output tab shows the new start and end columns.

See Transformers.

1d. Charge job: define the result and the cube​

  1. Select Workflow in the toolbar to go back to the Build tab.

  2. Select Add job, then Charge, and fill in the dialog:

    FieldValue
    Table namedocs_demo_cloud_cost
    Time grainDay
    CubeNew, with the name Docs demo cloud cost
    New Charge job, with a table name, a time grain, and a new cube.
    New Charge job, with a table name, a time grain, and a new cube.
  3. Select Add Charge job, then Edit instructions on the new card.

  4. In Fact table, enter docs_demo_cloud_cost, then select Read from Transform job.

  5. On the Configuration tab, set the time window:

    FieldValue
    Start timestamp${{ inputs.start }}
    Start date columnusage_start, matching Inclusive
    End timestamp${{ inputs.end }}
    End date columnusage_end, matching Exclusive
  6. On the Sources tab at the bottom, select + beside a column to add it:

    • Add as dimension: provider, account_name, service, region, team
    • Add as measure: usage_quantity, cost
    The Charge job with its dimensions. The Output tab marks each column as start, end, dimension, or measure.
    The Charge job with its dimensions. The Output tab marks each column as start, end, dimension, or measure.
  7. On the Grain tab, check that Interval is Day, and select Select all under Identity dimensions. One row of the cube is now one day for one provider, account, service, region, and team.

  8. Select Inputs. A run charges the period between start and end. Set the defaults to the period of the sample file, and select Save inputs:

    InputDefault
    start2026-09-01T00:00:00.000Z
    end2026-11-01T00:00:00.000Z
    The Template Inputs dialog of the Charge job, with a default for start and end.
    The Template Inputs dialog of the Charge job, with a default for start and end.
  9. Select Preview, and check the result on the Output tab.

Go back to the Build tab. The four jobs are connected from left to right, and the Charge job shows its cube.

The finished workflow on the Build tab.
The finished workflow on the Build tab.

See Chargers and Charging rules.

Stage 2: Publish and run the workflow​

Workflow execution

A workflow runs only the version that you published.

  1. Open the Review tab. It lists the four changed jobs and shows Ready to publish.

    The Review tab of a draft that is ready to publish.
    The Review tab of a draft that is ready to publish.
  2. Select Publish, and confirm with Publish. This also publishes the cube. It does not start a run.

  3. Open the Operate tab and select Execute. The run starts at once, with the defaults of the inputs.

  4. Wait until the run shows Completed. This takes about half a minute.

A completed run on the Operate tab, with one row for each job.
A completed run on the Operate tab, with one row for each job.

If the Review tab does not show Ready to publish, open Issues, correct the job, and come back. To run the workflow regularly, add a schedule. See Running and scheduling.

Stage 3: Add the fields of the cube​

The cube now holds data, but it has no fields to report on yet.

  1. Open Cubes on the rail and select Docs demo cloud cost.
  2. On the Fields tab, select Add 7 unmapped fields.
  3. Check the title and the type of each field, and select Add 7 fields.
The cube with five dimensions and two measures. The side panel shows the status, the producer, and the grain.
The cube with five dimensions and two measures. The side panel shows the status, the producer, and the grain.
Cube grain is locked after publishing

You cannot change the grain of a published cube. If it is wrong, create a replacement cube and rebuild. See Publishing and evolving.

Stage 4: Grant the cube to a space​

People report in spaces. A space can use a cube only after you grant the cube to that space.

  1. Open Spaces on the rail and select New space (the + in the panel).
  2. Enter a Space name, for example Docs demo, and select Create space.
  3. Open the Access tab of the space and select Add grant.
  4. Select Docs demo cloud cost and select Create grant.
The Access tab of the space, with one cube grant.
The Access tab of the space, with one cube grant.

To hide fields from a space, select Edit policy on the grant. See Managing space access.

Stage 5: Create a view​

  1. Open the Home tab of the space and select Create view.

  2. Check that the Source cube is Docs demo cloud cost, enter a Name, and select Create view.

  3. Select Start from a chart, then Bar.

    A new view offers three ways to start: a question, a chart, or a template.
    A new view offers three ways to start: a question, a chart, or a template.
  4. Under Data, set Group by to Provider and Value to Cost.

  5. Select Apply to draft, then Save changes.

The view shows the cost for each provider in the latest month of the data. Use the time range at the top to select another period.

The saved view, with one bar for each cloud provider.
The saved view, with one bar for each cloud provider.

See Creating a view and Visualizations.

What you built​

  • A workflow that fetches, loads, transforms, and charges data.
  • A published cube with a fixed grain and seven fields.
  • A space that can use the cube.
  • A view that reads from the cube.

Next steps​