Skip to content

Tabular

Where: Context › Tabular
Who can use it: Admins and Owners can edit. Users can view but not change anything. Viewers don't see the Context page.

The Tabular menu on the Context page shows the semantic model as editable tables. Where the graph in Visualization suits one change at a time, these tables let you scan every column of a query table, fix names in bulk, and decide which joins Tursio may use. Your corrections keep answers consistent with how your organization names and relates its data.

Open the Tabular menu

  1. Open Context in the left navigation and pick a database in the selector at the top of the page.
  2. Open Tabular and pick Dimensions, Simple Measure, Custom Measure, or Join Relationships. The tab label changes to the table you picked.
  3. Pick a query table in the table selector. Use Search to filter the rows.

Tabular menu open over the Simple Measure table (1) Tabular menu, (2) Edit and Delete for the selected rows.

The Tabular menu isn't available when All Databases is selected. To link tables across databases, see Cross-Dataset Links.

Dimensions

Dimensions are the columns of a query table and how Tursio reads them when it turns a question into SQL. The Dimension Vocabulary table lists each column with its Display Name, Aliases, Data Type, Value Type, Ontology, Column Description, and business rules (Enforce, Priority, Hierarchy, Simplify). For the business rules, see Annotations.

Edit dimensions

  1. Open Tabular › Dimensions and pick a query table.
  2. Select Edit Semantics (the pencil icon). The table becomes editable.
  3. Change the fields you need, such as Display Name, Aliases, Value Type, or Ontology.
  4. Select Save (the check mark). Tursio shows "Changes saved for dimensions." Select Cancel (the cross) to discard your changes.

Dimension Vocabulary table in edit mode (1) Query table, (2) Add Alias, (3) Display Name, (4) Save.

The fields you can edit:

  • Display Name: a readable name, such as Customer Name instead of cust_nm. It must be unique. See Unique display names.
  • Aliases: other words people use for the column, such as buyer, client, or shopper. Up to 20 per column. Letters, numbers, and spaces only.
  • Value Type: how the column behaves in queries.
    • Continuous: numbers you aggregate, such as Age or Salary.
    • Description: text you filter on or display, such as Name or City.
    • Identifier: values that identify an entity, such as Employee ID or Order ID.
  • Ontology: extra meaning for the column. The options depend on the column's data type and value type.
    • Metric Name: a text column that holds metric names, for tables that store metrics as name and value rows.
    • Metric Value: a numeric column that holds the values for those metric names.
    • Uncountable Identifier: an identifier that should not be counted.
    • Timeseries: a date column that represents time.
    • None: the default, when no special meaning applies.
  • Column Description: what the column holds, in plain words.

Table aliases and description

Aliases help Tursio recognize a query table when people call it something else. For example, an Orders table could have the aliases Purchases or Transactions.

  1. Select Add Alias next to the table selector.
  2. Type the aliases separated by commas. Up to 20 per table. Letters and spaces only.
  3. Save the aliases.

To change the Table description, select Edit above it, change the text, and select Save.

Unique display names

Each display name must be unique across the database. Tursio rejects a display name that is already used by another column in the same table, by a column in another table, or by a table name, a table alias, a measure name, or an alias. The check ignores case and treats spaces and underscores as the same, so Order Date and order_date clash.

When a name clashes, Tursio doesn't save and tells you which name clashes and what already uses it. For example: "Duplicate display names within the same table: Order Date", or "Display name 'Region' conflicts with the display name of 'region_cd' on table 'sales'." Pick a different name and save again.

Tursio runs the same check when you edit a dimension from Visualization and when you import a context file. An imported file with a clashing display name is rejected, and the message names the clash. See Tune context.

A display name can contain only letters, numbers, underscores, and spaces, up to 256 characters. It can't be a reserved keyword.

Simple measures

Simple measures are numeric columns that Tursio can aggregate with sum, average, minimum, and maximum.

During training, every column marked as a measure in the query table becomes a simple measure. To remove a simple measure for good, edit the query table and unmark the column as a measure. See Query tables.

The Simple Measure table shows each measure with its Aspect, Disabled Aggregator, Alternate, Aliases, Column Description, and business rules.

Edit simple measures

  1. Open Tabular › Simple Measure and pick a query table.
  2. Select one measure and select Edit Measure (the pencil icon). The Update simple measure dialog opens.
  3. Pick an Aspect Name, and set Aspect Currency and Precision if the aspect uses them.
  4. Pick a Disabled Aggregator for any aggregation that doesn't make sense for this measure.
  5. Type an Alternate, the name people use for the measure.
  6. Add Aliases if needed. Type each one and select Add.
  7. Select Save. Tursio shows "Successfully updated the simple measure."

Update simple measure dialog (1) Aspect Name, (2) Disabled Aggregator, (3) Alternate, (4) Save.

The fields:

  • Aspect Name: what the numbers mean.
    • UNKNOWN: the default. Allows precision only.
    • UNIT: raw values. No precision or currency.
    • PERCENT: percentages. Set Precision, such as 2 decimal places.
    • COST: money. Set Aspect Currency ($, £, €, or ₹) and Precision.
  • Disabled Aggregator: aggregations Tursio must not use for this measure (SUM, AVG, MIN, MAX). Keep at least one enabled.
  • Alternate: a unique name for the measure, distinct from the column name.
  • Aliases: other words for the measure. Letters, numbers, and spaces only, up to 20.

To delete simple measures, select them and select Delete Measures (the bin icon).

Custom measures

Custom measures are calculated metrics that don't exist as columns in the database. Each one has a SQL expression in the dialect of your database.

During training, Tursio adds a custom measure for each ID column with the expression COUNT(DISTINCT <column>). You can't delete these system-generated measures. To stop Tursio from generating one, set the column's ontology to Uncountable Identifier, or its value type to Continuous or Description, in Dimensions, then retrain.

Custom Measure table with its toolbar (1) Query table, (2) Upload vpax, (3) Add Measure, (4) Status.

Add or edit a custom measure

  1. Open Tabular › Custom Measure and pick a query table.
  2. Select Add Measure (the plus icon), or select one measure and select Edit Measure (the pencil icon).
  3. Fill in Measure Name and Aspect Name. Set Aspect Currency and Precision if the aspect uses them.
  4. Type the Expression, for example (Revenue - Cost) / Revenue for a profit margin.
  5. Add Aliases if needed. Type each one and select Add so it shows as a chip.
  6. Select Save. Tursio shows "Successfully updated the custom measure."

Update Custom Measure dialog with an alias typed (1) Expression, (2) Aliases and Add, (3) Save.

The Status column shows ACCEPTED, PENDING, or REJECTED. A measure you add shows PENDING, and so does a measure you added after you edit it. When training runs, Tursio checks pending expressions against the table's columns and marks the ones it can't validate REJECTED. Tursio doesn't use rejected measures.

To delete custom measures, select them and select Delete Measure (the bin icon), then confirm.

Import from Power BI

If you already have measures in a Power BI report, you can bring them into Tursio instead of rebuilding them. For a live sync from a Power BI connection, see Tune context.

Step 1: Export from Power BI with DAX Studio

  1. Open your Power BI report and connect DAX Studio to it.
  2. Select Export Metrics in DAX Studio.
  3. Save the file with the .vpax extension.

DAX Studio Export Metrics button Export Metrics in DAX Studio.

Step 2: Upload the VPAX file

  1. Open Tabular › Custom Measure and pick a query table.
  2. Select Upload vpax (the upload icon). The Upload VPAX File dialog opens.
  3. Select the .vpax file. One file, up to 2 MB.
  4. Select Upload.

Upload VPAX File dialog Upload VPAX File dialog.

Tursio converts the DAX measures into custom measures on the matching query tables, with the status PENDING. Review each one: select it, select Edit Measure, and set Expression Status to ACCEPT or REJECT. A rejected imported measure disappears from the table.

Step 3: Review skipped measures

If some measures can't be imported, the dialog shows how many were skipped. Select Download skipped for a CSV with the reason for each one.

Upload result with skipped measures Upload result with Download skipped.

A measure is skipped when:

  • Table not found: its Power BI table doesn't match any table in your Tursio data model.
  • Column not found: it uses a column that doesn't exist in the matching Tursio table.
  • Multiple tables: it uses more than one table.

After the import, retrain the database so the measures can be queried. Upload the file again whenever your Power BI measures change.

Join relationships

Join relationships tell Tursio how tables connect, for example how a fact table links to its lookup tables. Each row shows the Fact Table, Foreign Key, Join Type (LEFT or INNER), Join Table, Primary Key, and Status.

Status is one of:

  • Accept: Tursio uses the join when it builds queries.
  • Pending: Tursio keeps the join for review but doesn't use it.
  • Reject: Tursio ignores the join, and the row disappears from the list.

When you train with join inference on, the joins Tursio infers appear as Pending. See Join inference.

Join Relationship table (1) Row checkbox, (2) Add Relationship, (3) Edit Relationship, (4) Status.

Accept, keep pending, or reject a join

  1. Open Tabular › Join Relationships.
  2. Select one join with its checkbox.
  3. Select Edit Relationship (the pencil icon). The Update Join Relationships dialog opens. You can't change the fact table or join table here.
  4. Change the Foreign Key, Join type, or Primary Key if the join is wrong.
  5. Pick a Status: Accept, Pending, or Reject.
  6. Select Save.

Update join dialog with Status set to Pending (1) Foreign Key, (2) Join type, (3) Status, (4) Save.

Rejecting a join can't be undone here

A rejected join disappears from the Join Relationships list, and you can't restore it from this view. If you aren't sure, set the join to Pending instead.

Add a join

  1. Open Tabular › Join Relationships and select Add Relationship (the plus icon).
  2. Pick the Fact table and Join Table.
  3. Pick the Foreign Key and Primary Key columns. You can pick more than one column for a composite key.
  4. Pick a Join type: LEFT or INNER.
  5. Pick a Status: Accept or Pending.
  6. Select Save.

Tursio allows one accepted join between the same two tables. It also rejects a change that would make the accepted joins circular, with the message "Circular references found in joins. Please review join configurations."

Tips and limits

  • Changes on the Tabular tables take effect after you retrain. After a change, the page shows a banner asking you to re-run training from the Settings page. See Training.
  • You can't edit while the database is training. Tursio shows "Training is in progress for this connection."
  • If someone else changed the same item, Tursio shows "Content is already updated. Please refresh the page and try again." Refresh and redo your change.
  • Type each alias and select Add (or press Enter). Text left in the alias box without Add isn't saved.
  • Join Relationships is disabled for Cassandra databases.
  • Add aliases for the words your team actually uses.
  • Set value types carefully. A wrong value type can confuse query generation.
  • Use an ontology only where the column has a special meaning.
  • Use the COST aspect only for money. Keep alternate names unique across all measures.
  • Give custom measures clear, descriptive names, and don't reuse a name that a simple measure already uses.
  • Keep custom measure expressions simple. Deeply nested expressions can slow queries down.