Skip to content

The metadata#

The metadata is the dictionary that describes, in business language, the database of a connection: which tables are analyzed, what you can segment and group by, what is counted or added up, how the tables are joined and who sees each thing. It is what makes Empowerment Center useful: users never write SQL, they choose dimensions and metrics, and ECenter generates the query from the metadata.

This part is for whoever designs the metadata. It explains its concepts, the editor (Administration › Metadata) and how to take the metadata from one environment to another.

Before you start#

  • The editor requires Metadata administration. System administration includes it.
  • The connection has to exist and have its catalog read. See Connections.
  • If you design a new connection, mark it as Only for metadata administrators so that users do not see it until it is ready.

The pieces of the metadata#

The pieces of the metadata Metadata model with the names of the demo: the fact table Facturas has the dimension Forma de pago, described by its auxiliary table, and the metric Importe total; it is related to Líneas; the universe Zona Norte limits its rows and is propagated through the relationship, and the folder Ventas shows the elements. limits its rows propagates through the relationship Relationship: one invoice with several lines relationship (master → detail) has has description of its codes shows them to users Universe: Zona Norte condition on Facturas Fact table: Facturas FACTURAS Fact table: Líneas LINEAS_FACTURA Dimension: Forma de pago Metric: Importe total Sum Auxiliary table: AUX_FORMAS_PAGO codes and descriptions Presentation tree: folder Ventas
The pieces of the metadata Metadata model with the names of the demo: the fact table Facturas has the dimension Forma de pago, described by its auxiliary table, and the metric Importe total; it is related to Líneas; the universe Zona Norte limits its rows and is propagated through the relationship, and the folder Ventas shows the elements. limits its rows propagates through the relationship Relationship: one invoice with several lines relationship (master → detail) has has description of its codes shows them to users Universe: Zona Norte condition on Facturas Fact table: Facturas FACTURAS Fact table: Líneas LINEAS_FACTURA Dimension: Forma de pago Metric: Importe total Sum Auxiliary table: AUX_FORMAS_PAGO codes and descriptions Presentation tree: folder Ventas
The pieces of the metadata View full size View full size
Piece What it is Example from the demonstration
Fact table A table or view of the database that is analyzed. It has an alias, which is the name users see, and its dimensions and metrics. FACTURAS, with the alias “Facturas” (invoices)
Auxiliary table A table of codes and descriptions (zones, families, payment methods) that gives a dimension the description of its values and their order. It needs a primary key. AUX_ZONAS
Dimension One or more columns of a fact table by which you segment and group. It can have an SQL function, an auxiliary table and an upper level. “Forma de pago” (payment method), “Año” (year), “Zona › Provincia › Municipio” (zone › province › municipality)
Metric An aggregate calculation on a fact table: a count, a sum, an average, a minimum, a maximum, an SQL expression or a formula on other metrics. “Importe total” (total amount), “Margen” (margin), “Peso en la zona (%)” (weight in the zone)
Relationship How a master fact table is joined with a detail one: by which columns, whether it is one-to-one or one-to-many, and whether the join is inner or outer. “Facturas” with many “Líneas” (lines)
Presentation tree The folders in which users find the dimensions and metrics in the wizards and in the segmentation editor. “Clientes › Geografía” (customers › geography)
Privileges They protect dimensions and metrics (who sees them), editing in forms (who changes records) and rows (universes). “Datos confidenciales (costes y márgenes)” (confidential data: costs and margins)
Universe A condition that limits the rows of a fact table seen by whoever has a privilege. It propagates to detail tables. Whoever has “Zona Norte” (North zone) only sees the customers of the North

The demonstration's metadata is in Spanish, as in the screenshots; the names are given with their meaning.

The same database table can be a fact table and an auxiliary table at the same time. In the demonstration, PRODUCTOS is the fact table “Productos” (products, with its list price and its family) and the auxiliary table of the “Producto” dimension of the invoice lines, which gives its description.

How ECenter uses the metadata#

When a user calculates a cube with “Importe total” by “Zona” and “Año”, ECenter:

  1. Takes the fact table of the first metric (FACTURAS) as the base of the query.
  2. Joins the other fact tables needed by the shortest path of relationships; among equally short paths, the one that goes through more preferred relationships.
  3. Joins the auxiliary tables of the dimensions to bring their descriptions, without losing the records whose code has no description.
  4. Applies the section's segmentation and the user's universes, including those of the master tables.
  5. Checks that the user has the access privilege of each dimension and metric that is named.
  6. Writes the SQL in the dialect of the connection's engine, with the values always as parameters, and runs it.

That is why each design decision shows in the results: one relationship too many or a wrong cardinality changes the figures. The editor helps to see it before saving (see Usage and validation).

Where it is stored#

The metadata is stored in ECenter's own database, per connection. It never changes the structure of the client database: creating or deleting a fact table only changes its description in ECenter.

Each element carries an internal exchange key that does not change when it is renamed. With it, a metadata exported from one environment is recognized in another (see Export and import the metadata).

What users create#

Part of the metadata is not designed by the administrator:

  • External data. When integrating a file, the user creates a fact table (and its auxiliary tables) in the work schema. They are marked as User-defined, can be edited in the editor, but are deleted from External data, with their data.
  • EC7 user metrics. The Empowerment Center 7 importer brings them as metrics marked User-defined. In ECenter 8.0 users no longer create metrics: whoever administers the metadata creates and changes them, and is asked for them.
  • Groupings. They distribute the values of a dimension into buckets (by values or by ranges) and are used as one more dimension. They are created by those who have Workbook administration and Access to Empowerment Center, in Groupings; the metadata editor only shows them. See Groupings.

How to start the metadata of a connection#

There are three ways, offered in the Structure tab of a connection without metadata:

Way When
New fact table… To design it from the catalog. See Fact tables.
Import a package… You already have it in another connection, of this installation or another. See Export and import the metadata.
Import from Empowerment Center 7 It comes from an EC7 installation. See Migration from EC7.

A working order that works:

  1. Register the fact tables, with one dimension per column and the count metric.
  2. Register the auxiliary tables and link the code dimensions with them.
  3. Build the hierarchies.
  4. Create or review the metrics: types, totals and formats.
  5. Create the relationships between fact tables and mark the preferred ones.
  6. Arrange the presentation tree.
  7. Set the access and edit privileges and the universes.
  8. Review with the presentation tree preview and with a test workbook.

In this part#

See also#