modellerUpdated 2026-10-02

User-Defined Attributes

What a user-defined attribute is

A user-defined attribute (UDA) is a new column you compute from the columns a table already has, without changing the source database. You write a small expression — for example, join a region code and a branch code into one label, or turn a raw amount into a rounded figure — and Tessallite stores that expression on the model. From then on the computed value behaves like any other column on that table: you can build a dimension or a measure on top of it.

Think of it as a spreadsheet formula column that lives inside the model instead of inside one analyst's workbook. Define it once, and every dimension, measure, KPI, and BI tool that uses it reads the same definition.

Where UDAs live (this trips people up)

UDAs are not in the left Toolbelt next to Measures and Dimensions. You author them on the table itself:

  1. On the canvas, click a table node, or find the table in the Sources panel.
  2. Click the Edit (pencil) button to open the table editor.
  3. Open the Attributes tab.

The Attributes tab lists every column on the table and marks each one as physical (it exists in the source) or computed (a UDA you added). This is the only place UDAs are created and edited.

UDA vs calculated measure vs plain column

Pick the right tool so the model stays simple:

You want…UseWhy
A value that lives in a source columnA plain column / plain measureNothing to compute
A new value computed row by row from other columns on the same tableA user-defined attributeThe result is a column; you can group or aggregate by it
A number derived from other measures (e.g. gross-margin % from two measures)A calculated measureThe result is an aggregate, not a row-level column
The same measure shifted across time (YTD, prior year)A time variantTime intelligence, generated per query

The rule of thumb: if the value makes sense on a single row before any grouping, it is a UDA. If it only makes sense after aggregation, it is a calculated measure.

Before you start

Step-by-step: add a user-defined attribute

  1. Open the table editor and go to the Attributes tab (see above).
  2. In Add computed attribute, enter a Name. Use a business-readable, lowercase identifier — for example region_branch — because BI tools surface this name to end users.
  3. Enter the Expression. It is a row-level formula over the table's physical columns, for example: CONCAT(region_code, '-', branch_code). Use the Function picker and Insert to drop a supported function into the expression if you are unsure of the exact name. Date parts work the way the date hierarchy writes them, for example EXTRACT(YEAR FROM business_date), and CASE WHEN ... THEN ... ELSE ... END is available too. Byte literals such as b'abc' are not supported; use CAST('...' AS BINARY) or a hex function of the source. The expression can also use another computed attribute of the same table by its name, for example business_date_year * 100 + business_date_month. Tessallite puts that attribute's own formula in its place, so a later change to it carries through. A name that is also a physical column means the physical column, and an attribute cannot use itself, directly or through others.
  4. Set the Output type (for example text, number, or date) to match what the expression returns.
  5. Optionally add a Description. It is copied to the dimension or measure you build on the attribute, so it reaches the assistant and BI tools. Changing it later updates that dimension or measure too, unless you wrote a description of its own there.
  6. Click Validate. Tessallite checks the expression against the real source and returns Validation passed or a specific error. Fix any error before saving — an invalid UDA is a wrong-numbers risk downstream.
  7. In Use as, choose how the attribute is used: Dimension (the default), Date key, Measure, or Classify later. This is the same step as the Classification tab, done for you.
  8. Click Add. The new attribute appears in the list marked computed, with its dimension or measure ready to use.

Use a UDA as a dimension or a measure

A UDA is only a column definition — on its own it does not appear in queries. Use as on the Attributes tab (step 7 above) does this for you when you add it. To classify an existing attribute, or change its use, open the Classification tab, or:

Both pick the UDA from the same table column list a physical column would appear in.

Security: a UDA follows the columns it reads

A UDA is computed over the persona's model, which holds only the columns that column security leaves. If a column it reads carries a tag the persona is restricted from, the UDA cannot be computed for that persona: it is left out of the persona's field lists, and a query that names it is refused like a field that does not exist. If salary is tagged and restricted for a persona, a UDA such as salary_band built from salary is not available to that persona.

Data tags apply only to physical columns, so a UDA itself cannot be tagged. To keep a persona from seeing a UDA that reads only untagged columns, leave the dimensions and measures built on it out of that persona's allow-list (see Configure Personas). See Column-Level Security.

Tips and pitfalls

Related

See the supported-function reference for complete lists, worked examples and the rules for each expression type.

The channel comparison explains how to publish an attribute-backed dimension for JDBC, native Excel/XMLA and Agent use, even when a client cannot write the attribute's formula directly.