Skip to content

Integrating files#

The Integrate files wizard turns a file into Empowerment Center tables: it uploads the file, chooses its tables, describes them (key, dimensions, metrics and privilege), links them with the tables that already exist and puts them in a folder. When processing, it creates the tables with their data and their metadata in a single operation: if something fails, nothing is left half done.

Before you start#

  • You need Workbook administration and Access to Empowerment Center (see External data).
  • Check the file: one header per table, no total rows at the end and the same codes as the tables you want to cross it with (the same customer codes, product codes…). Preparing the file explains how ECenter reads it.
  • Think about which existing table you are going to link it with and through which column. Without a link, the new table can only be analyzed on its own.

Opening the wizard#

Click Integrate files… on the External data page, or choose + New › External data integration. If you already uploaded the file and it is in the pending uploads, click Integrate… in its row: the wizard starts at the Tables step.

The wizard takes up the page and has six steps, shown on the left: File, Tables, Configure, Links and relationships, Folder and Process. Move from one to another with Next and Previous, or by clicking the step. A step with something pending is marked, and the footer says what is missing.

The “Integrate files” wizard at the “Configure” step, with the dimensions and metrics of the table “Campaña de fidelización”The “Integrate files” wizard at the “Configure” step, with the dimensions and metrics of the table “Campaña de fidelización”
The “Integrate files” wizard at the “Configure” step, with the dimensions and metrics of the table “Campaña de fidelización”

1. File#

  1. Choose the file in File (Excel, CSV, DBF or Access).
  2. If it is a CSV, check the Delimited text options; if it is a DBF, add its Memo file.
  3. Click Upload and analyze.

ECenter uploads the file (“Uploading …”), analyzes it on the server (“Analyzing …”) and moves on to the next step. The analysis reads each sheet or table, its columns, its types and a sample of its first rows. With large files it can take a while; you can keep working on another page and come back: the file stays in the pending uploads.

2. Tables#

The step shows the tables of the file, with their rows.

  1. Check the tables you want to integrate.
  2. In Type, choose for each one:
    • Fact table: the records that are analyzed (participants, targets, sales…). It provides dimensions and metrics.
    • Auxiliary table: a table of codes and descriptions (the results of the campaign, the categories…). It lets a dimension of a fact table show the description of each code.
  3. Click View sample to check that the columns and the values are as expected.
  4. In an Excel sheet whose header is not in the first row, or with several tables, use Header and range… (see Preparing the file).

A table that could not be read appears without a checkbox, with the reason (“No contiene datos”, it contains no data; “Tiene más de 1000 columnas”, it has more than 1000 columns). The warnings of each table (a memo that has not been read, for example) are shown under its name.

3. Configure#

Each checked table is configured in its tab.

A fact table#

Option What it does
Fact table name The name everyone will see it by. It must be different from that of the other fact tables of the connection.
Primary key The columns that identify each row. It is optional, but without a key the table only accepts the full load when it is refreshed. Check the key counts duplicates and empty values: “Valid key in 120 rows” or “The key has …”.
Dimensions One row per column (below).
Metrics The figures calculated with the table (below).
Access privilege of its dimensions and metrics Who will be able to see the table. You can only choose No level defined (no restriction) or a privilege you have.

The dimensions are configured in their table:

Column What it does
Checkbox Whether the column is a dimension. The key and the columns of the links always are.
Column The name of the column in the database.
Type Text, Integer, Decimal, Date or Date and time. Changing it reads the table again; values that are not converted are loaded empty and you are warned beforehand (see Preparing the file).
Name The name of the dimension. The one from the header of the file is proposed.
Auxiliary table Which auxiliary table it is linked with: one From this file or one Already existing in the connection. With it, the dimension shows the description of each code. Checkboxes makes its values be chosen with checkboxes in the segmentation editor, instead of with the dual list.
Upper level Which other dimension of the table it hangs from, to form a hierarchy (Zona › Provincia).

The metrics are configured in their table:

Column What it does
Checkbox Whether the metric is integrated.
Name The name of the metric.
Operation Sum, Count, Average, Minimum or Maximum.
Column The column that is aggregated. In a count, (rows) counts the records. Sum and average only accept numeric columns.
Format The mask of the numbers, such as #.##0 or #.##0,00.

Add metric adds another one.

What the wizard proposes#

So you do not start from scratch, the wizard proposes:

  • all the columns as dimensions, with the name of their header;
  • the metric “Nº de registros” (number of records), which counts the rows;
  • a sum for each numeric column that is not part of the key or of a link, with format #.##0 if it is an integer and #.##0,00 if not;
  • in an Access file, the primary key of each table.

When you mark a column as a key its metric is removed: it makes no sense to add up codes.

An auxiliary table#

An auxiliary table needs its Primary key (required: the code) and its Description column (what is shown instead of the code). It also has its access privilege. It has no dimensions or metrics of its own: it is used from a dimension of a fact table.

Auxiliary tables that already exist#

In Auxiliary table, the group Already existing offers the auxiliary tables of the connection used by dimensions you see. That way a “Zona” column of the file shows the same zone names as the rest of the documents.

The key of the auxiliary table must fit the dimension: as many columns as it has and of the same type (text, number or date). If it does not fit, the wizard says so (“The auxiliary table of “…” has a key of another type”).

Hierarchies#

A hierarchy is a dimension that hangs from another one, like Provincia from Zona. To form it:

  1. Give an auxiliary table to both dimensions.
  2. In the lower dimension (Provincia), choose the upper one (Zona) in Upper level.

The key of the auxiliary table of each level has the columns of its upper levels and its own: the one of the provinces, the zone and the province. If something is missing, the wizard says so (““Provincia” is part of a hierarchy: choose its auxiliary table”).

4. Links and relationships#

A link joins the new table with a fact table that already exists. With it you can analyze the new table by the dimensions of the existing one: the points of the campaign by the customer's zone, for example. A relationship joins two new tables of the same file.

  1. In New link or relationship, choose From: an existing table or a new one.
  2. Choose the Source column of that table.
  3. Choose the new table in With the new table and its column in Column of the new table.
  4. Choose the Relationship: One-to-many (each source record has several in the new table) or One-to-one.
  5. Choose the Join: Only the matching rows or All of the first table's.
  6. Click Add.

In a link with an existing table, click Check to find out how many rows match: “Records: 120 · found: 118 · wrong: 2”. The wrong ones are rows of the file whose code is not in the existing table: check the file if you do not expect them. Remove removes a link.

From an existing table, only the columns of the dimensions you see are offered. If the column of the file is of a different type from that of the existing table (a numeric code versus a text one), the column of the file takes the type of the existing one; if some value is not converted, the wizard says so and you have to change the type of the column in Configure.

The “Links and relationships” step with the link from Clientes to “Campaña de fidelización” checkedThe “Links and relationships” step with the link from Clientes to “Campaña de fidelización” checked
The “Links and relationships” step with the link from Clientes to “Campaña de fidelización” checked

5. Folder#

Choose in Folder the folder of the tree the tables will hang from (or (root)) and, if you want, type a New folder that will be created inside it.

In it, each fact table will have its folder, with its name, its dimensions and a “Métricas” folder. This is what users will see in the tree of the wizards.

6. Process#

The last step summarizes what is going to be created: the file, the tables (fact or auxiliary), the links and the folder. If something is missing, it lists it under “Before processing:”, with a Go to “…” link to the step where it is fixed.

Click Process. ECenter creates the tables, copies the data and registers their metadata (“Integrating…”). When it finishes it goes back to the External data page, with the new table chosen and the notice “Integrated “…”.”.

The table is now in the document wizards, in the chosen folder. To start analyzing it, create a cube with its metrics (see Cubes).

Leaving before finishing#

Cancel, or leaving the page, asks first: “Leave without integrating the file?”. The file stays in the Pending uploads of the page, but what you had configured is lost. To continue with it, click Integrate… in its row before it expires (24 hours).

See also#