Skip to content

Saving, exporting and viewing the SQL#

What you change in a cube viewer stays on the screen until you save it. This page explains how to save the layout in the workbook, what is saved and what is not, how to calculate the cube again, how to export it to Excel, PDF, text or HTML, and how to see the query it has sent to the database.

Save the layout#

The layout is everything you have organized in the viewer: where each dimension is, its filters, its sorting and its totals, the collapsed groups, whether codes are shown, and how each metric is displayed (display, total type, name, format, width, indicator, groups and calculated metrics).

  1. Organize the cube the way you want it to open.
  2. Click Save layout in the header, or press Ctrl+S (⌘+S on a Mac).
  3. The status line says Saving… and, when it finishes, Saved at ….

From then on, the cube opens like this for everyone who can open the workbook, except for anyone who has another default bookmark (see Bookmarks).

Along with the layout, these are also saved if they have changed:

  • the definition, if you have used the Wizard…, changed a Date level or added a grouping;
  • Keep data, if you have changed it in ⋯ › Properties… (see Processing and keeping data);
  • the detail charts you have created or removed.

Unsaved changes#

While there are changes, the status line says Unsaved layout with a dot, and offers Discard changes, which asks Discard the unsaved layout? (“What has changed in the layout will be lost.”) and goes back to what was saved.

If you cannot save in the workbook#

Save layout only saves in the workbook if you can modify it. If you cannot, the main button of the header becomes Save as bookmark…: it saves what you see as a bookmark, a view of your own of the cube that you can apply again and share. The same happens if you have applied an additional segmentation with Filter with a segmentation…. With an applied bookmark that you manage, the main button is Save bookmark and, if you have changed something that belongs to the document (the detail charts, Keep data), Save layout appears next to it to save it. See Saving and applying bookmarks.

What changes the definition (the wizard, a date level, a new grouping) cannot be saved in a bookmark: “You have changed metrics or dimensions. That is saved in the document”. If you cannot modify the workbook, that change is only good for looking.

Note

If the workbook saves a layout with values you do not have in your data (for example, zones outside your universes), Empowerment Center delivers it to you without those values. Document information says so, in Trimmed to your data. Anyone who can modify the workbook always receives it whole, so saving from the viewer never loses what another person chose.

Process again#

Process (Ctrl+Enter) calculates the saved cube again with the current data, also if it keeps data, with whatever bookmark it has applied. If you have unsaved changes, it first asks Process without saving the changes?: Process without saving loses them and Keep editing goes back to the cube. While it calculates, the status line says Queued… or Processing…, and you keep seeing the previous cube until the new one arrives. If it fails, the status line gives the reason and the previous cube stays in view.

If the database estimates that the cube will return a huge amount of data, ECenter first asks Calculate the document?. See Processing and keeping data, which also explains Keep data.

Export#

Export downloads the cube as a file. The entire table is exported with the layout you see, not just the part that fits on the screen: all the rows and columns, with their totals, subtotals and metric groups.

  1. Organize the cube the way you want to export it (filters, sorting, totals, columns).
  2. Click Export and choose the format.
  3. While it is being prepared, the button says Exporting…. The browser downloads the file.
Format What it contains What for
Excel (.xlsx) A sheet with the table: the headers in bold and merged as in the viewer, the totals shaded and the headers frozen. The values go as numbers with the decimals of their format, and percentages with “%”. With two or more dimensions in the rows, the rows of each group collapse and expand with the Excel outline. Indicators go as conditional formatting. At the end, the Applied filters sheet. Keep working with the figures as they are shown, or send them.
Excel to work with in Excel (.xlsx) One row for each combination of the row and column dimensions that has some figure, with one column per dimension and another per metric. No totals or merged cells, with the first row frozen and the autofilter on. At the end, the Applied filters sheet. Filter, sort, build pivot tables or cross with other data in Excel.
PDF (.pdf) The table laid out on landscape A4. Each page repeats the title and the headers; if the columns do not fit, they are split into bands (“Columns 1-9 of 24”). The footer says when the data was calculated and “Page n of m”. Print or send the cube as it is.
Delimited text (.csv) The texts as they are shown, separated by semicolons (or by the last separator you chose in Text…), in UTF-8 with the mark Excel recognizes when opening it. Open the data in Excel or another spreadsheet.
Text… The EC7 text for other systems, delimited or fixed width, with the options you choose (see Export to text). Feed another system: a data warehouse, a load process.
HTML A table with a simple style sheet. Paste it into a web page or an email.

The file is named after the workbook and the cube. In Excel, the PDF, the delimited text and the HTML, the corner says what each axis is, as in the viewer.

Some details:

  • The cube's indicators go as Excel conditional formatting in the data cells (not in the total cells): the bar, as a data bar; the traffic light, as a three-color scale; the arrow, as an icon set; and the ranges, with their background color. A range with text applies its color, but the cell shows the figure: Excel cannot change the text of a cell according to its value.
  • If the cube is shown without some dimension or metric for security reasons, or if the calculation reached the maximum number of rows, Excel says so below the table and the PDF in the footer, in counts and without names.
  • In the delimited text, a text that starts with =, +, -, @, a tab or a carriage return is preceded by an apostrophe, so that the spreadsheet does not take it for a formula.
  • A table that is too large (by default, more than a million cells) is not exported: the viewer says how many cells it would have and what the maximum is. Filter or collapse the cube first.

The “Applied filters” sheet#

Both Excel files carry at the end the Applied filters sheet, which says where the file comes from and what it was calculated with:

Section What it says
Origin The workbook, the section and the document; the bookmark, if you have applied one; who exported it and from where (Session, Subscription, Data alert…); when the data is from (calculated now or kept) and when it was exported.
Segmentation The section's segmentation and the additional one, in words: “Zona es Norte y Año es 2026”. If there is none, None.
Viewer filters The filters of each dimension of the cube, with the chosen values (the first 50, and how many more), and the sorting calculated with only some values. If there are none, None.
What is not shown Only if something is missing: the dimensions and metrics that are not included because of your permissions, or the maximum number of rows, counted and without names.

What you cannot see is not named: a condition on a dimension you cannot see says “a dimension you cannot see”. The users' universes are never written.

The sheet, its labels and the PDF footer are in the language of whoever receives the file: that of whoever exports it or, in a subscription or a data alert, that of each recipient. The names of the dimensions and the values, as they are in the metadata.

In the file of a subscription or a data alert, the additional segmentation was chosen by whoever configured it: the sheet says Applied (its criteria are not shown here), without its conditions.

Export to text#

Export › Text… opens the Export to text dialog, with the options of the EC7 “Exportación a fichero de texto” dialog and a few more. It remembers what you last chose in this browser.

To have the files written by themselves after each scheduled recalculation of the workbook, in a folder that another system reads, use the workbook's file export, with these same options saved as a file format of the connection (see File export).

First choose the File type:

  • CSV for Excel (.csv): the delimited text above, with the Separator you choose: Semicolon (;), Comma (,) or Tab. It has quotes where needed and is always protected against Excel formulas. The chosen separator is also used by Delimited text (.csv) in the menu.
  • Text for other systems (.txt): the EC7 file, without quotes, with these options.
Option What it does
Dimension names on the first line The first line carries the names of the row dimensions and of the metrics. If there are dimensions in columns, each column is labeled with its value and the metric, for example “2025 / Ventas”. If a metric appears twice, as a value and as a percentage, the percentage one is followed by how it is displayed, for example “2025 / Ventas (% del total)”, so that the name is not repeated.
Export metrics Unchecked, only the row labels are written.
Repeat headers Unchecked, a label equal to the one on the line above is left empty, as in EC7.
Maximum number of records (0 = all) The most lines that are written, not counting the first one.
Method Tab-delimited, Separator-delimited (one character; by default, the vertical bar “|”) or Fixed width.
The separator also at the end of each line As EC7 wrote it: the separator also goes after the last field.

In More options:

Option What it does
Include the totals The total rows and columns. By default they are not written, as in EC7.
Shape As shown, or One line per combination: one line for each combination of values of the rows and the columns, with one column per metric. It is the most convenient shape for loading into another system and allows dimensions in columns.
Figures As shown, with the format of each metric, or Unformatted (decimal point, no thousands separator).
Encoding UTF-8, UTF-8 with BOM or Windows-1252, the one of EC7.
Line ending Windows (CRLF) or Unix (LF).
Protect against Excel formulas An apostrophe in front of the texts that a spreadsheet would take for a formula. Off by default: the file goes to another system, not to a spreadsheet.

Some rules of the text for other systems:

  • In Fixed width, each column takes the length of its dimension in the metadata, and each figure, what its mask with zeros takes (for example, “0000000,00”). A mask without zeros, such as “#.##0”, only allows one-position figures, as in EC7.
  • In Fixed width, a cell without data carries the zero with its mask (“0000000,00”), as in EC7, so that all lines have the same length; also a percentage that is shown empty in the cube. In the delimited ones, the cell without data is empty, as in the cube.
  • If two columns have the same name, the second is followed by a number in the title line: “Ventas” and “Ventas (2)”.
  • Since it has no quotes, the export fails if a label contains the separator or a line break, or if a value does not fit in the fixed width. The warning gives the line and the column; choose another separator or change the mask or the length in the metadata.
  • With Windows-1252, the export fails if a label contains a character that encoding does not have, and the warning says which one.

Printing

The viewer has no print option. Export the cube to PDF (.pdf) and print the file: it comes out laid out, with the headers repeated on each page.

To copy just a few cells to a spreadsheet, you do not need to export: select them and press Ctrl+C (see The cube viewer). To receive the cube by email regularly, subscribe to it (see Subscribing to a document).

Show SQL#

⋯ › Show SQL… opens the Cube SQL dialog with the query ECenter has sent to the database to calculate the cube. It helps to understand where the figures come from or to check them against another tool.

Part What it is
Warnings What the query engine wants you to know, for example that it has chosen a relationship path among several equally short ones.
The statement The SQL as it was sent. The values of the conditions are not written in it, but as parameters (?).
Parameters The values of those parameters, in order (“1: "N" · 2: 2026”).
Database plan Only with Metadata administration: asks the database for its execution plan, without running the query, with its cost and its estimated rows (“engine units; only comparable with other plans from the same engine”).

Copy SQL copies the statement to the clipboard (“SQL copied.”).

The query includes the workbook's segmentation and its universes, but not the viewer filters: those are applied afterwards, on the data already calculated (see Cubes).

Copy as an API query#

With the API and MCP access privilege, ⋯ › Copy as API query… opens the cube's query as the query API receives it: to take it to a notebook, to a process that loads data or to an AI assistant. The dialog shows:

  • a note that says what it is: what was saved in the document, with the applied bookmark if there is one. The changes in the viewer that you have not saved are not included;
  • the path it is sent to (POST /api/query/v1/connections/…/queries);
  • the query in JSON.

Copy JSON copies the query; Copy as curl copies a complete command for the terminal, with $ECENTER_TOKEN in place of your service credential (see Service credentials). It is only available in a saved document of the workbook.

See also#