Named List MDX Composition
What this covers
Named lists (called named sets in the underlying OLAP model) define reusable groups of dimension members. The Report Builder offers four builder types — Fixed Members, Top N, Filter, and Advanced MDX. This page explains the MDX expression that each builder type produces, how to read and hand-edit it, and how the resulting set is consumed by Excel CUBE formulas.
How named lists become MDX
Every named list ultimately resolves to an MDX set expression stored in the expression field. The visual builders generate this expression automatically; Advanced MDX lets you type it directly.
| Builder type | What it does | Generated MDX pattern |
|---|---|---|
| Fixed Members | Enumerates specific members by key | {[Dimension].[Hierarchy].[Member1], [Dimension].[Hierarchy].[Member2], ...} |
| Top N | Picks the top or bottom N members ranked by a measure | TopCount([Dimension].[Hierarchy].Members, N, [Measures].[Measure Name]) or BottomCount(...) |
| Filter | Keeps members matching one or more conditions | Filter([Dimension].[Hierarchy].Members, [Measures].[Revenue] > 1000) |
| Advanced MDX | Freeform expression | Whatever you type — the engine validates it at save time |
A Fixed Members, Top N or Filter list is saved with its expression and its definition (the field, the measure, and the count or the conditions you chose in the builder). Fixed Members keeps the authored values. Calculated Top N and Filter lists are evaluated for the person asking, using their perspective and data restrictions. In a PivotTable, report filters also narrow the ranking or filter query before members are chosen. The preview, the Excel add-in formula TESSALLITE.LISTBYID and the add-in zones use the governed definition; Advanced MDX keeps its authored expression.
Tessallite does not save or import a list of one of these three types without its definition. The message names the list and says the definition is missing. This matters when a list is created by a script through the API or comes from an imported file: send the definition (builder_definition) with the list, or save the list as Advanced MDX if it is an expression only.
Reverting is not refused. If you revert a list, or the model, to a version that was saved before this rule and holds such a list without its definition, the revert succeeds. Model Health then shows an alert that names the list, and the list preview shows the same message instead of an empty result. To repair the list, open it in the list editor, complete its definition and save.
An Advanced MDX list has no definition. Its members show in a PivotTable and in CUBE formulas. The preview and TESSALLITE.LISTBYID cannot show them: the formula shows #CALC! and the add-in pane says the list has no members. The same is shown for a list that was saved without its definition, until it is repaired.
In a hand-written expression, name the hierarchy as well as the dimension: [Dimension].[Hierarchy].Members. For a plain dimension the hierarchy has the dimension's name, for example [Customer].[Customer].Members. The short form [Customer].Members puts no members on a PivotTable axis. A Top N or Filter list saved in the list editor before the builders wrote the full form keeps the short form in its expression: open it in the list editor and save it once, then save and deploy the model, and it works in a PivotTable.
Fixed Members
Fixed Members is the simplest builder. You pick dimension members from a list, and Tessallite wraps them in an MDX set literal.
Example: A named list called "Top Regions" containing three specific regions:
{[Geography].[Region].[North America],
[Geography].[Region].[Europe],
[Geography].[Region].[Asia Pacific]}
This expression is static — it always returns the same three members regardless of underlying data changes. Use Fixed Members when the list is curated by a human and should not change automatically.
Top N (Dynamic)
Top N selects the N highest- or lowest-ranked members by a measure. The result changes when the data changes — if a new region overtakes an existing one, it appears in the list on the next query.
A generated Top N list cannot use a dimension and measure with the same name. Tessallite refuses the ambiguous definition and names both fields. Rename one field, select its new name in the list, and save the list again. Save and deploy the model to publish the corrected definition.
Example: Top 5 products by revenue:
TopCount(
[Product].[Category].Members,
5,
[Measures].[Total Revenue]
)
For bottom-ranking (e.g. worst-performing stores), the builder uses BottomCount:
BottomCount(
[Store].[Name].Members,
10,
[Measures].[Profit Margin]
)
Filter
Filter keeps every member that satisfies one or more conditions. Use it when "top N" is too rigid — for example, "all products with revenue above $10,000" regardless of how many there are.
Example: Customers with order count above 50:
Filter(
[Customer].[Name].Members,
[Measures].[Order Count] > 50
)
Multiple conditions are combined with AND:
Filter(
[Customer].[Name].Members,
[Measures].[Order Count] > 50
AND [Measures].[Total Revenue] > 10000
)
Advanced MDX
Advanced MDX accepts any valid MDX set expression. Use it when the visual builders cannot express what you need — for example, a CrossJoin, an Except, or a time-relative calculation.
Common patterns:
Cross-join two dimensions:
CrossJoin(
{[Geography].[Region].[North America], [Geography].[Region].[Europe]},
[Product].[Category].Members
)
Exclude specific members:
Except(
[Product].[Category].Members,
{[Product].[Category].[Discontinued]}
)
Last 12 months:
LastPeriods(12, [Date].[Calendar].[Month].&[202605])
How named lists appear in CUBE formulas
When you insert a named list from the Report Builder, the add-in generates a CUBESET formula followed by one CUBERANKEDMEMBER per visible row:
| Cell | Formula |
|---|---|
| A1 | =CUBESET("Tessallite","{[Geography].[Region].[North America],[Geography].[Region].[Europe],[Geography].[Region].[Asia Pacific]}","Top Regions") |
| A2 | =CUBERANKEDMEMBER("Tessallite",A1,1) |
| A3 | =CUBERANKEDMEMBER("Tessallite",A1,2) |
| A4 | =CUBERANKEDMEMBER("Tessallite",A1,3) |
To add a measure column, use CUBEVALUE referencing the same dimension member:
| Cell | Formula |
|---|---|
| B2 | =CUBEVALUE("Tessallite","[Measures].[Total Revenue]",A2) |
| B3 | =CUBEVALUE("Tessallite","[Measures].[Total Revenue]",A3) |
The CUBESET recalculates on workbook refresh. For dynamic lists (Top N, Filter), the members returned may change each time.
Validation
The engine validates the MDX expression when you save a named list:
- Syntax check: The expression must parse as a valid MDX set expression.
- Member resolution: Referenced dimensions and hierarchies must exist in the deployed model.
- Evaluation: A preview query runs the expression and returns the first 100 members so you can confirm the result before saving.
If validation fails, the error message identifies the problematic portion of the expression.
Who can see a named list
A named list is offered to a user only when every dimension and measure its expression references is inside that user's perspective. A Top N list ranked by a measure a perspective does not include is therefore not listed for that perspective, and a query that names it is refused with a message saying so rather than returning an empty result.
When Excel runs a query, Tessallite matches names in that query to exact deployed named-list names before it checks access. Normal field names and Excel functions do not make it check unrelated lists. If one named list uses another, Tessallite checks both. If access cannot be checked, the query stops with a readable server error instead of returning empty or misleading data.