Skip to content

Creating and modifying a list#

A list is created in a dialog in which you choose its table, define its content with a segmentation or with a SELECT and decide how it is refreshed and who sees it.

Before you start#

  • You need Workbook administration.
  • For an SQL list you also need Metadata administration.
  • The fact table has to accept lists. The metadata administrator decides it.

Create a list#

  1. Open Lists in the side bar and click New list…. You can also choose New › List on the top bar.

    The New list dialog opens.

  2. Type the Name.

  3. Choose the Fact table whose records the list keeps.
  4. Choose the Type: Segmentation or Key SELECT.
  5. Define its content:
    • With Segmentation, give its criteria in the segmentation editor of the dialog, just as in a segmentation of a workbook (see The segmentation editor).
    • With Key SELECT, type the query in SELECT that returns the primary key of the table.
  6. Check or uncheck Automatic refresh: it is refreshed each time it is used.
  7. Choose the List folder and the Access privilege.
  8. Click Create list.

    The list appears on the page, with Saved in its detail. It has no records yet: they are filled when it is refreshed, or by themselves the first time it is used (see Refreshing a list).

The New list dialog with the Segmentation type and the segmentation editor insideThe New list dialog with the Segmentation type and the segmentation editor inside
The New list dialog with the Segmentation type and the segmentation editor inside

The dialog options#

Option What it does
Name Up to 75 characters. It has to be unique in its fact table, ignoring case. A new list is called “New list” until you give it another name.
Fact table The table whose records it keeps. Only those that accept lists are offered. It cannot be changed after the list is created.
Type Segmentation or Key SELECT. Without Metadata administration, Key SELECT is disabled.
Segmentation editor The criteria of the list. The list itself is not offered: a list cannot use itself.
SELECT that returns the primary key of the table The query of an SQL list.
Automatic refresh: it is refreshed each time it is used Checked (the default), the list is refreshed before each query that uses it. Unchecked, it only changes when someone clicks Refresh.
List folder The folder of the dimension tree in which the list is shown when segmenting. None puts it in the first list folder of its table. If the table has no list folders, the dialog says that the list will be shown in “Lists of table”.
Access privilege Who can see and use the list: whoever has that privilege. It is chosen among yours; No level defined goes first.

Write an SQL list#

The SELECT of an SQL list has to:

  • be a single SELECT statement (without a ; separating another one);
  • return, in order, the columns of the primary key of the fact table.

For example, for a customer table whose key is its code:

SELECT c.COD_CLIENTE
FROM COMERCIAL.CLIENTES c
WHERE c.FECHA_ALTA >= DATE '2026-01-01'

The names of the tables and columns are those of the customer's database, not those of the metadata. The query is run as written, without the universes of whoever refreshes it: it decides exactly which records go in.

Important

The SQL lists of Empowerment Center 7 accepted any statement with [@] instead of the table name. In version 8.0 only a SELECT of the key is valid. The importer converts those from EC7 that have the form INSERT INTO [@] SELECT … and warns about the rest.

Whoever does not have Metadata administration sees the SELECT of an SQL list read-only (“Only whoever administers the metadata can change it.”) and can change the rest of its options.

Modify a list#

  1. In Lists, choose the list.
  2. In its detail, click Modify….

    The Modify the list “…” dialog opens with its definition.

  3. Change what you need. The fact table cannot be changed.

  4. Click Save.

When its definition changes, the list is left Pending refresh: it keeps the records of the last refresh until it is refreshed again.

Common errors#

Message (what it says) What to do
There is already a list with that name in that table Choose another name.
“The SELECT of the list is missing” Type the query or change the type to Segmentation.
An SQL list accepts a single SELECT statement Remove the other statements.
An SQL list has to be a SELECT that returns the primary key of the table (ECenter loads it: INSERT INTO [@] is no longer needed) Check that the query returns the key columns, in their order.
Lists cannot be used in a circle: … The segmentation uses a list that, directly or indirectly, uses this one. Remove that criterion.
You cannot give a list a privilege you do not have Choose one of your privileges.
Managing lists requires Workbook administration Ask your administrator for that privilege.

If the segmentation has a problem (a dimension that does not exist or cannot be used, a badly written condition), the dialog says so below, with the list of problems, and does not save.

See also#