Define Hierarchies
What this covers
The Hierarchies panel defines ordered drill paths such as Year > Quarter > Month, Country > Region > Store, or Segment > Category > Product. Hierarchies give Tessallite enough structure to generate time variants, guide drill-through, and expose business navigation paths to downstream consumers.
This is different from the Dimensions panel. Dimensions expose individual attributes; hierarchies declare how attributes roll up.
Levels and members
A hierarchy has the standard (All) summary item used by BI tools, followed by only the levels you declare. Country > City > Channel has three data levels. Tessallite does not add a fourth raw-data level beneath Channel.
A member is one distinct value at a level. For example, London is one member of the City level even if thousands of source rows contain London. When Excel expands a hierarchy, Tessallite returns the distinct members needed for that level and applies the signed-in person's security rules.
Low-cardinality fields from a fact table, such as status or channel, can be useful flat dimensions. They do not become a hierarchy unless a modeller creates a declared drill path from them.
Member captions: the level Display Attribute
A level can name a Display Attribute in the level dialog. Excel and other XMLA clients then show that attribute's value as each member's caption, while the level's key stays the member's identity, so cells and filters still use the key. For example, a Product level keyed on product_code with product_name as its Display Attribute shows "Premium Card" for member P001.
Only hierarchy levels pair a caption with a key. A flat dimension always shows its own values; to see a name, add the name as its own dimension. Tessallite decides from the declared level only, never from column names. A Display Attribute must be a physical column; when several levels keyed on the same column name different Display Attributes, members show their keys.
If a friendly name is empty, unavailable, or restricted for your persona, the member list and pivot show the key instead. Values and filters still use that key. Selecting a restricted display field explicitly in a query remains refused.
Hierarchy types
| Type | Use it when |
|---|---|
| Explicit | You already know each level and want to add them manually. |
| Date embedded | A date column can generate levels such as year, quarter, month, week, or day. |
| Segment | A code or text field contains multiple levels that can be split by delimiter or position. |
A generated segment hierarchy creates calculated fields for its levels. Before previewing it, open Dimensions and add those fields as dimensions. The preview lists the fields to publish. An unavailable preview shows its reason; a successful empty preview means the query returned no members.
Preview a hierarchy as a tree
Select a hierarchy in the Hierarchies drawer. Tree preview is the primary view, above the level editor. Choose a sample size and run it. Preview settings contains the persona, fact group and leaf attribute controls. The query uses the deployed hierarchy and dimension metadata and goes through the normal query path, so that persona's row and column security still apply.
Enter a positive whole-number sample size. It limits the model rows read before the hierarchy fields are grouped. Counts beside leaf members show rows from that sample; they are not full-model member counts. The tree uses each level's declared key and Display Attribute. It shows all returned display values when one key has conflicting captions.
Members are ordered naturally within their own parent branches. Use Find a member, Expand all and Collapse all to review the returned sample without running another query. Arrow keys move through the tree; Right expands and Left collapses or returns to the parent. Show details reveals keys, descriptions, display attributes and complete paths. An optional caption that is unavailable or blank uses the admitted key. A missing required key still prevents the preview.
Errors give one actionable explanation. Technical details opens the diagnostic when needed; denied access, empty samples and cancelled requests stay distinct.
The declared terminal key is the default leaf for an explicit hierarchy. A date or segment hierarchy can use its declared source attribute as an additional leaf. If that leaf is not available in the published persona surface, choose a published dimension for this preview; the choice does not edit the hierarchy definition. The tree is the hierarchy review surface. Health status remains visible in the hierarchy list; open Health details for the full diagnostic explanation.
Time hierarchy fields
For time hierarchies, set the dimension kind to time and choose the calendar type when period calculations matter. Fiscal and ISO calendars change the meaning of year, week, quarter, and period-to-date variants.
Time units on levels are what let measures support variants such as YTD, prior year, moving windows, and period-to-date calculations.
The default time hierarchy
What it is. A model usually has several time fields: one or more dates, and for each of them one or more calendars (a standard calendar, a fiscal calendar, a week calendar). Excel and other OLAP clients group all of them under one Time node, and the model tells the client which one of them is the default. A client uses the default when a report or a formula refers to "time" without naming a hierarchy.
Who decides. The modeller. Open a time hierarchy for editing and tick Default time hierarchy of the model. The hierarchy then shows a Default time hierarchy marker in the panel.
- A model has one default time hierarchy. Ticking the box on another hierarchy moves the choice; you do not have to untick the first.
- Only a time hierarchy can be chosen. If you later change the hierarchy's kind to something other than time, the choice is cleared.
- Deleting the chosen hierarchy clears the choice.
- The choice is part of the model: it is saved with a version, takes effect for report users when the model is deployed, and travels in exports and imports.
When nothing is chosen. Tessallite uses the first date dimension: a single date field (not a hierarchy), first by name, which is the order the field list shows them in. If the model has time hierarchies but no single date field, the first time hierarchy by name is used. This fallback is fixed and does not change from one request to the next, but it follows names, not meaning. Choose a default yourself whenever the model has more than one date.
Which hierarchy to choose. Pick the calendar your users report by most often, on the date most of the model's measures work from. For a finance model that reports by fiscal year on the posting date, that is the fiscal calendar of the posting date, not the standard calendar of the load timestamp.
Worked example. A payments model has business_date, settlement_ts and created_at, each with a calendar hierarchy, and a fiscal hierarchy on business_date. Nothing is chosen, so the default is business_date, the first date field by name. Finance reports by fiscal year, so the modeller edits business_date Fiscal April, ticks Default time hierarchy of the model, saves a version and deploys. Excel now receives business_date Fiscal April as the default of the Time node.
Pitfalls.
- Leaving the choice empty on a model with several dates. The fallback then depends on how the date fields are named; renaming one can change the default.
- Expecting the default to change the numbers. It does not: a time-comparison measure always works from its own date (see Configure Time Variants). The default only tells a client which hierarchy to offer first.
- Expecting the change to appear before the model is deployed.
Period key format
The agent answers whole-month questions ("March 2025", "the last 13 months") by filtering on the level keys instead of the raw date when it knows exactly how each key stores its period. On a time hierarchy, choose a Period date: the date the periods come from. Generated date hierarchies already have one. Then each year or month level can declare a Key format:
| Key format | Example key |
|---|---|
| Year and month as a number | 202609 |
| Year and month as text | '202609' |
| Year-month text, padded | '2026-09' |
| Year-month text, unpadded | '2026-9' |
| Month number within its year | 9 |
| Month number as text, padded | '09' |
| Month number as text | '9' |
| English month abbreviation | 'Sep' |
| English month name | 'September' |
| Year as a number | 2026 |
| Year as text | '2026' |
A key format is available only on the standard calendar, for a level whose time unit and key type fit it. A month-within-year format is used only together with the year level of the same hierarchy. The agent writes the exact keys of the months asked for and never a range on text. A partial month, such as "this month so far", still filters on the date. Changing the level's key or time unit, or the hierarchy's calendar, kind or period date, clears the key format; declare it again if it still applies. Without a key format the agent keeps filtering on the date or on numeric year and month levels.
Ranges written in SQL. A range on a text key with a declared format (month_key >= '2025-9') is answered as a calendar range, not as a text comparison. It means the same with the value written first ('2025-9' <= month_key). In HAVING on a query grouped by the key, the grouping is kept as written. The rule applies where the column is the model's field: read from the model directly, or from a sub-query that passes the field through unchanged. A sub-query column that only shares the name (another column renamed to it) keeps its own meaning. An open-ended range over a sub-query needs the period date in that sub-query; the error says so. Without a declared key format a range on a text period key is refused, and the message says to declare the format or to filter by the year and month fields.
Making the data match is your responsibility. A key format states that every row's key is the period of its date, written in that format. Tessallite trusts the declaration when it answers. The health check below finds rows that break it, but only in the rows it read; it cannot vouch for data loaded later.
A month level's key format also tells time comparisons which month of the year each key is, so 2026-01 matches 2025-01 for a prior-year figure. See Configure Time Variants.
Comparison value
What it is. A level's comparison value is a field that holds the same value for matching periods in different years: the month number 1 to 12 for months keyed 2025/01, the day of the month for days keyed by the full date, the quarter number for quarters keyed 2025-Q1. A prior-year figure uses it to know which period of last year matches this one. Prior-quarter, prior-month and prior-week figures use it to place each period inside its parent.
When to set it. When the level's key does not repeat every year and no key format fits it: keys such as 2025/01, fiscal periods such as FY25-P01, week codes, or a Day level keyed by the full date. A generated date hierarchy, a calendar-table hierarchy and a level with a key format already match, so they need none.
How to set it.
- Make a field that holds the matching value, on the level's table. Use a column, or a calculated field (user-defined attribute) such as
EXTRACT(MONTH FROM order_date). If the value is in a separate table that lists each period key with its month, join that table to your data and key the level on its period key, so the value is on the level's table. - Publish the value as a field of the model. It can be hidden.
- Open the level in the Hierarchies panel and choose the field under Comparison value (optional).
- Save, then deploy the model.
Worked example. Months are keyed 2025/01, 2025/02 and 2025/05 in 2025, and 2026/01 and 2026/07 in 2026. The comparison value is a calculated field that gives the month number. The prior year of January 2026 is now January 2025. July 2026 is empty, because there is no July 2025. Without the comparison value, Tessallite cannot tell that 2026/01 matches 2025/01, so the prior-year figures of 2026 are empty and the answer carries a note.
Pitfalls.
- Two periods of one parent with the same comparison value, such as two 2025 months that both give 1. Tessallite cannot tell which of the two is meant, so every comparison that needs one of them is empty with a note: their own prior-year figures, and the prior year of January 2026. Other years are not affected: January 2027 still matches January 2026.
- A period whose comparison value is empty, or differs between its rows. That period cannot be matched.
- A persona that cannot use the field. Its time comparisons that need the field are refused with a message, as for a level the persona cannot use.
Generated attributes are managed for you
When a date hierarchy generates levels such as year, quarter, month, or week, Tessallite also creates the matching attributes on the table for you. These are generated attributes: their formula is written and kept up to date by the hierarchy itself, so you do not edit it by hand.
If you open such an attribute in the table editor, the expression box is locked and the formula-building tools are hidden, with a note explaining that the attribute came from a date hierarchy. You can still rename it, change its description, or adjust its output type — only the formula is protected. This is deliberate: it stops a later change to the hierarchy from colliding with a hand edit, which would otherwise silently drift the two apart. To change what the formula does, edit the hierarchy, not the attribute, and the generated attributes update with it.
Health checks
The panel checks whether hierarchy levels still point to valid attributes, whether required time metadata is present, and whether generated levels can be interpreted by the query compiler. Modellers also see member-integrity details from the source probe: orphan-member and multiple-parent counts, affected levels, bounded sample keys, and truncation or failure reasons. Read-only users receive metadata-only health without triggering a source probe. If a model-specific viewer binding rejects a probe, the panel retries metadata-only and does not expose sample keys. Unprobed and failed checks remain visible. Resolve hierarchy warnings before relying on time variants or drill paths.
Each health check also records its errors and warnings for the model's alert count. A metadata finding is cleared when a later check no longer finds it. A member-integrity finding (orphan members, multiple parents, or a failed probe) is cleared only by a member probe that scanned every level pair, so a metadata-only check never hides an unresolved member problem. Sample member keys are shown in the panel but are not stored with the recorded finding.
With members probed, each declared key format is also checked: the panel reads the distinct key and date pairs of that level, as you, with your persona and row security, and reports Keys do not match the declared key format with a count and a few sample pairs when a key is not its date's period in that format, or when the key or the date is empty on only one side. Key format not checked means the check could not read every pair (row security hides all rows, the query failed, too many pairs) or that the key or the period date is not published as a dimension. A pass covers only the rows you could read at that moment; it is not proof for other personas or future loads.
Time hierarchies also get the warnings Level has no counterpart in another period, History starts part-way through a period and Periods cannot be matched with the previous year. They are explained in the Day level and Short history sections of Configure Time Variants.