Cube Logo0.33.23

Generate data models

In this step, you will generate data models using the connected data source from the last step.

Cube's data models provide a declarative way to define important facts about your data and relationships between them. You can create data models from scratch or let Cube generate an initial version for you.

Start by selecting the database tables to generate the data models from, then click Measures and Dimensions:

Cube Cloud Generate Models Screen detected tables from data source for selection

Next, you'll see all detected measures and dimensions from the data source. Click Primary Keys to progress to the next step:

Cube Cloud Generate Models Screen showing detected measures and dimensions

Review the detected primary keys for each cube and click Joins to move to the next step:

Cube Cloud Generate Models Screen showing detected primary keys

Once again, review the detected joins and relationships and click Review:

Cube Cloud Generate Models Screen showing detected joins

The last screen allows you to review all the detected cubes and their corresponding measures, dimensions, and joins. If everything looks good, pick either YAML (recommended) or JavaScript format and click Confirm & Generate:

Cube Cloud Generate Models Screen showing review screen

Cube Cloud will now generate the models and spin up your Cube deployment, and in a few moments you should see the following screen:

Cube Cloud Deployment Overview Screen

You're now ready for the next step, querying the data.

Did you find this page useful?