Dimensions are the shared business axes you slice metrics by - Department, Region, Product, Customer. A single dimension can connect related fields from different data tables, even when those fields are named differently, as long as they carry the same meaning and values. Defined once, a dimension can be reused across every metric whose source table contains a matching field.
This article walks through creating and managing dimensions. For how dimensions are used inside a metric, see Creating a base metric and Creating a calculated metric.
Before you start
- Permission to manage dimensions. The minimum role required to create, edit, and delete dimensions is Data Manager. Roles are assigned by your Datarails admin.
- Access to the source tables whose fields you want to include in the dimension. You can only map fields from tables you have access to.
Open the Dimensions tab
- From the left navigation, open the Setup section and select Metrics & dimensions.
- Switch to the Dimensions tab.
The Dimensions tab lists every dimension defined in your workspace, with the source tables it’s mapped to and the metrics that use it. Filter by Source tables or Used in metrics, or search by name to find a specific dimension.
Create a dimension
Open the Create dimension form
- On the Dimensions tab, click + New dimension.
- The Create new dimension dialog opens with three parts: a Name field, a Tables & fields mapping section, and a VALUES PREVIEW panel on the right.
Name the dimension
Enter a Name that your team will recognize. Use the business name (Department, Region, Product), not a technical column name. Names must be unique across the workspace - if you reuse a name, the dialog shows the inline error “This name is already in use. Please choose a different name.” and the Create button stays disabled.
Map fields across tables
In the Tables & fields section you tell the Semantic Layer which column in each table represents this dimension. The same dimension can connect fields from different tables - even when those fields have different names - as long as they carry the same business meaning and values.
- From the Table dropdown on the first row, select a source table - for example, Financials.
- From the Field dropdown, select the column in that table that represents the dimension - for example, Cost Center for a Department dimension.
- Click + Add table to map the dimension to another table.
- On the new row, pick the next table (for example, Headcount) and the column that represents the same dimension there (for example, Dept). The fields don’t have to share a name - only their meaning and values.
- Repeat for any additional tables that contain a matching field. To remove a row, click the trash icon on the right.
Review the values preview
As soon as a Table and Field are mapped, the VALUES PREVIEW panel populates with a sample of distinct values the dimension contains. Each value carries a badge indicating where it comes from:
- Source-table badge (e.g., Financials, Headcount) - the value exists in only that table.
- All tables - the value exists in every table the dimension is mapped to.
Use the preview to sanity-check your mapping before saving. If you see unexpected values, missing values, or a different distribution than you expected, double-check that you picked the right field on each table.
Save the dimension
- Once the Name is set and at least one Table+Field row is fully mapped, the Create button becomes active.
- Click Create. The dialog closes and the new dimension appears in the Dimensions list, ready to be used in any metric whose source table contains a matching field.
Edit a dimension
You can update a dimension’s name and mappings at any time. Changes apply immediately to every metric that uses the dimension, so be deliberate when removing or replacing field mappings.
- On the Dimensions tab, click the three-dots menu (⋮) next to the dimension and choose Edit.
- Update the Name, add or remove rows in the Tables & fields section, or change the field selected for any table.
- Click Save.
Delete a dimension
- On the Dimensions tab, click the three-dots menu (⋮) next to the dimension and choose Delete.
- Confirm the deletion.
Related articles
- Key concepts and terminology
- Creating a base metric
- Creating a calculated metric
- Permissions and access
© Datarails Ltd. All rights reserved.
Updated
Comments
0 comments
Please sign in to leave a comment.