Working with the table
The Documents generation supports working with tables and enables the use of tags inside a table, as well as displaying multiple data tables and data lists. Depending on the type of data, tables may contain different numbers of columns or rows. For working with tables, mainly the tags Iteration, Breaker and Table are used, and for building cross-tabulated tables (with data on the column and row axes) the Pivot table tag (see: Pivot table tag). Inside the tables, you can apply other tags and insert field values from the structure. The Condition tag can also be applied to tables.
Iterating rows
The Iteration tag is used to iterate table rows (see: Iteration), which is placed on the entire row. All Value tags that are placed on the row on which the iteration was established must come from the same table / relation that is indicated as the data element for the Iteration tag.
In the example below, the row is iterated based on the Vehicle table. All Values in the row where the Iteration is assumed also come from the Vehicle table.

In the generated document, the table row is repeated for each Brand, Model, and Production year data set passed in the Vehicle table.
Iterating columns
The Iteration tag is used to iterate table columns (see: Iteration), which is placed in each row of a given column that is to be repeated. All Value tags that are placed inside the Iteration tag must come from the same table / relation that is indicated as the data element for the Iteration tag.
In the example below, in each row of the table in the second column, an Iteration tag has been inserted, inside which the fields to be displayed in a given row of a given column are placed. Both Iteration tags are based on the same Vehicle table, so Brand and Model are from the Vehicle table.

In the generated document, the car model and price column is repeated for each Brand and Model data set passed in the Vehicle table.
The Breaker Tag
If there is a concern that the number of data sets transferred to the document will be large, you can define how many columns should be displayed for a given row. To do this, use the Breaker tag. This tag is placed on the table row.
- In the tag attributes, define the number of header columns and the number of header rows, i.e. those that are column and row headings and should not be duplicated.
- In the Maximum number of columns field, define the number of columns after which the table should be split. The remaining columns for the remaining datasets will be displayed in the subsequent rows of the table.
In the example below, the Break tag has been created on the first row of the table. The first column of the table is the header, so in the Number of header columns field, the value 1 was inserted. The table does not have a row that would be a header, so the value 0 was entered in the Number of header rows field. The value 6 has been inserted in the Maximum number of columns field, which means that for the data of the Brand and Model rows, a maximum of 6 columns with the Brand and Model data sets passed into the document can be displayed. The remaining data sets must appear on the following Brand and Model lines.

In the sample document, 8 Model and Brand data sets were transferred. In the generated table, columns are repeated in given rows for 6 data sets. The remaining data sets are displayed in the following lines.

The Table tag
In the event that you need to repeat a range of columns in a more complex table, you can use the Table tag, where you can define in detail the table range to be duplicated. The Table tag is placed on the entire table and a table or a relation from the data structure is indicated as a data element for this tag. All tags used inside a table must come from the same table / relation in the data structure that is indicated as a data element in the Table tag attributes.
In the example below, the Table tag is placed on the entire table and based on the Settlement from data structure table. All values inside the table also come from the Settlement table. In the Table Tag Attributes window, in the Ranges section, you define the table range that you want to duplicate. Rows 2-6 and columns 2-3 are to be repeated.
Note! Both rows and columns are numbered from 1.

The range defined in the Table tag will be repeated in the generated document.

In order for the table in the generated document to have columns of equal width, it should be formatted in the same way as a typical table in MS Word using the options available from the ribbon Tools>Layout.
The Table tag also allows you to hide empty columns. This option lets you better tailor the data presentation to the user’s needs and the document’s context—for example, when you know that empty columns may be generated in the table.
- Go to the tag attributes and select the Ignore columns containing empty cells option.

The Pivot table tag
The Pivot table tag turns a flat list of records into a two-dimensional table. Below you will find how to insert it, its attributes, the configuration window, and the formatting and generation rules.
What the tag is for
The pivot table turns a flat list of records from the data into a two-dimensional table. The template author indicates which attribute defines the rows, which one the columns, and which one is the value in the cell. The rest, i.e. the number of rows and columns, the headers and merged cells, is determined by the tag itself based on the data.
The most important feature: a cell is determined by attribute values (e.g. "North" × "Q2"), not by the position of a record on the list. If there is no data for a given pair, the cell stays empty and the rest of the row does not shift.
Example. Sales records:
| Region | Quarter | Amount |
|---|---|---|
| North | Q1 | 100.50 |
| North | Q2 | 120.00 |
| North | Q3 | 140.25 |
| South | Q1 | 200.00 |
| South | Q3 | 210.75 |
Configuration: rows Region, columns Quarter, value Amount.

Result in the document:
| Q1 | Q2 | Q3 | |
|---|---|---|---|
| North | 100.50 | 120.00 | 140.25 |
| South | 200.00 | 210.75 |
The missing "South × Q2" record produces an empty cell.
Columns and rows are created only from the values that occurred in the data. The tag does not create a column for a value that is not present in any record, so you cannot get an empty "spare" column this way.
Quick start
You can build your first pivot table in a few steps. The details of each step are described in the sections below.
- Insert the Pivot table tag in a separate paragraph (see: Inserting the tag).
- In the properties panel choose Edit configuration and indicate the record source (see: Record sources).
- Drag attributes to the Columns, Rows and Values zones. The Values zone must contain exactly one field (see: Zones).
- Click Edit test data, fill in the data and check the table preview and the messages (see: Preview and messages).
- Set the value types, sorting and formats (see: Settings of the selected field), click OK and optionally insert a sample table to format the look of the table (see: Sample table).
Inserting the tag
- On the archITekt ribbon, click Pivot table.
- The tag must be placed in a separate paragraph. A tag inserted in the middle of text will not allow inserting a sample table and will not pass the template check (see: Document validation; message: "The pivot table tag must be in a separate paragraph.").
- In the tag properties panel, click Edit configuration and configure the table (see: Configuration window).
- Optionally: click Insert sample table and format it in Word (see: Sample table).

Other tags cannot be placed inside the pivot table tag. During generation, the entire content of the tag is replaced with the generated table, so nested tags would disappear anyway. The template check reports this as an error.
Configuring the tag
- To configure the pivot table, select the tag and, in the properties panel, in the Data section, choose Edit configuration.
- The configuration window opens. Changes are saved to the tag only after clicking OK, while Cancel leaves the tag unchanged.
- In the configuration window you indicate the record sources, place attributes in columns, rows, values and the footer, set sorting, aggregation and formats, and define the properties of the whole table.
- At the bottom of the window you can check the look of the table and the messages in a preview based on test data. The individual settings are described below.
In the properties panel you can additionally give the tag a Name and a Description. The name appears in error messages, so it is worth setting when the template contains several pivot tables.

Record sources — "RECORDS FROM"
A source is a table or relation in the data structure from which the pivot table records come. Each item of the list under this path is one record.
- To insert a source, click + Another source.
- The RECORDS FROM field with a drop-down list appears, where you choose a table or relation from the data structure, or type its path manually.

The source path is required. The list suggests all tables and relations from the data structure, e.g. Sales\Periods. You can also type the path manually, e.g. when the structure changed after the template was created. Letter case does not matter.
The ✕ button removes the source from the list, and + Another source adds another one (see: Several sources). Sources without an entered path are skipped when saving. The first source is also saved as the data path of the tag, which is used by the template check.
After the sources are changed, the attribute list is rebuilt immediately.
Several sources — source labels
You use several sources when the records that are to appear in one table are located in different relations. In the example below, reported and forecast data are stored separately, in the Sales\Periods and Sales\Forecast relations. The records have no field saying where they come from, because this information is carried only by the relation name. A source label adds such information to each record.
- To add another source, click + Another source and choose a relation from the list.
- Next to each source the label in header as field appears, where you enter a constant value appended to each record from this source (in the example:
Reported dataandForecast data). This value will appear in the table header as an axis value. - The Labels go into attribute field also appears next to it (
Sourceby default), which is the name of the attribute that collects the labels.

The labels attribute appears first on the attribute list, with a dashed border. To separate the sources, you have to drag it to the Columns or Rows zone. Without this, the records of both sources will end up in the same cells. Fields present in all sources (in the example Quarter and Amount) are on the list in the Shared across sources group.
Rules:
- Each source should have a different, non-empty label. Otherwise the preview reports the Indistinguishable sources warning.
- With the default sorting (Order of occurrence), the labels on the axis appear in the order of the sources on the list. To change their order in the table, change the order of the sources.
- The name of the labels attribute is set once, when the second source is added, and does not change afterwards, even after the interface language is changed. When the data already has a field with the same name, the source label wins and the preview warns Constant overrides field. In that case it is best to give the attribute a different name.
- Removing sources down to one does not delete the labels. As long as the remaining source has a label, the label fields are still visible and the labels attribute still works.
Example. The labels attribute Source (level 1) and Quarter (level 2) are in the Columns zone, Region is in the Rows zone, and Amount in the Values zone. Quarterly data was entered as the corner label.

- To check the table preview, you first have to enter test data.
- Click Edit test data, fill in the fields in the editor that opens (in the example: two regions, with records in the
PeriodsandForecastrelations under them) and save them. - After saving, the preview refreshes automatically. Without test data the preview is empty.

Result:
| Quarterly data | Reported data | Forecast data | |||
|---|---|---|---|---|---|
| Q1 | Q2 | Q3 | Q1 | Q2 | |
| North | 100.50 | 120.00 | 140.25 | 130 | 150 |
| South | 200.00 | 210.75 | 210 | 220 |
The "Reported data" header is merged over the quarters Q1–Q3, and "Forecast data" over the quarters Q1–Q2. Quarters are arranged separately under each label, so each source can have a different number of them. The missing "South × Q2" record in the reported data produces an empty cell (hatched in the preview).
Attribute list
The left column, "Attributes from sources", contains the attributes that can be placed in the table.

Attributes are grouped by their location in the data structure:
- Fields of the record itself are in the source path group (in the example
DateToin theSales\Periodsgroup andDatein theSales\Forecastgroup). - Fields of parent records are in the parent path group (in the example
Regionin theSalesgroup). - Fields shared across sources: with several sources, a field present in all sources goes to the Shared across sources group. It also contains the source labels attribute (
Source) and theQuarterandAmountfields. Such attributes have a dashed border.
You can filter the list by attribute name in the Search field.
The badge next to an attribute shows where the attribute already is:
- ROW – rows,
- COL – columns,
- VAL – values,
- FTR – footer.
In the example, Source and Quarter have the COL badge, Amount VAL, and Region ROW.
You can add an attribute to the table in two ways:
- drag it onto the selected zone,
- double-click it to add it to the Rows zone.
One attribute, one role. An attribute can be in only one zone. Dragging an attribute that is already in the table moves it instead of creating a copy. Attribute names are not case-sensitive.
Fields of parent elements
In a pivot table you can use not only the fields of the record itself, but also the fields of the elements under which this record lies in the data structure. This is often where the information needed to arrange the table is located.
Example. A report contains a list of periods, and each period has its own list of indicators:

The source is Report\Periods\Indicators, so the record is one indicator. An indicator has only the Name and Value fields and does not know which year it concerns. The date is one level up, at the period. Nevertheless, on the attribute list, in the Report\Periods group, the period fields appear: Date and Rating.
In the test data the report has two periods, each with two indicators:

Each indicator receives the values of these fields from the period under which it lies. The pivot table therefore sees the records as if the period data had been appended to them:
| Name | Value | Date (from period) | Rating (from period) |
|---|---|---|---|
| Revenue | 1200.00 | 10/14/2026 | A |
| Net profit | 85.40 | 10/14/2026 | A |
| Revenue | 1350.00 | 10/9/2025 | A+ |
| Net profit | 97.10 | 10/9/2025 | A+ |
It is now enough to place the attributes in the zones:
Datein the Columns zone (type Date, label formatyyyy),Namein the Rows zone,Valuein the Values zone.

Result in the preview:
| 2026 | 2025 | |
|---|---|---|
| Revenue | 1200.00 | 1350.00 |
| Net profit | 85.40 | 97.10 |
The order of the years results from the order of occurrence in the data. You can change it in the field's sorting settings (see: Sorting).
The value of a parent field is always taken from the indicator's own period, never from another one. Revenue from 2026 will not get the date from 2025, even if both periods lie next to each other in the data. Fields from higher levels work in the same way, e.g. a field of the report itself (the Report group). Each record receives it from its own report.
On the attribute list, such a field is displayed under a short name (Date), while the full path (Report\Periods\Date) is shown in the group header and in the tooltip after hovering over the field.
Zones
The zones in the middle part are arranged like the future table: the corner in the top left, columns above the values, rows to the left of the values, the footer at the bottom.

In the screenshot, colored frames mark the zones and the corresponding parts of the preview:
- Red – CORNER LABEL. Text in the top left cell of the table, above the row labels. Each line of the entered text (Enter) is a separate line in the cell (in the example
QuarterandDate). An empty field gives an empty corner cell. The corner exists only when the table has both columns and rows. - Purple – COLUMNS (level 1 → n). Attributes whose values create the column headers. There can be 0 or more of them, and each field is one header row (in the example
QuarterandDateTo). - Green – ROWS (level 1 → n). Attributes whose values create the row labels. There can be 0 or more of them, and each field is one column of labels on the left side (in the example
Region). - Teal – VALUES. Exactly one attribute whose value goes into the cells (in the example
Amount). Without it the table has nothing to show (the Missing value error). Two fields give the Multiple values error. - Blue – FOOTER. An optional summary row under the table with a value that depends only on the column (in the example
RegionBranchwith the footer label Region Branch, see: Footer). There can be 0 or 1 field. Two fields give the Multiple footer values error.
The TABLE → Table properties zone is not a field. Clicking it shows the properties of the whole table in the settings panel (see: Table properties).
Operation:
- A field is dragged between zones or within a zone to change its place.
- The ✕ button on a field removes it from the zone. Dragging a field back to the attribute list does not remove it.
- The empty space under the fields shows what dropping will do: in the axis zones a hint about creating the next level, and in the empty Values zone a hint about defining the value source.
Axis levels. The order of the fields in the Columns or Rows zone is the level in the header. The level is not set manually, because it results from the order of the fields.
- The first field (at the top of the zone) is level 1, i.e. the outermost one. In columns it is the highest header row, in rows the leftmost column of labels.
- Each following field is closer to the cells with values.
- Headers of the outer levels are merged over the groups of values of the inner levels. In the example below, the quarter header "Q3" (level 1) is merged over two dates (level 2), while "Q1" and "Q2" have one date each.
- The merge depends on the entire header path, not on the text alone. If the same date occurred under "Q1" and under "Q2", they would be two separate cells.
Example. In the screenshot, the Columns zone contains Quarter (level 1) and DateTo (level 2), and the Rows zone contains Region. The "Q3" header is merged over two dates, because in the data the Q3 quarter occurs with two different dates:
| Quarter Date | Q1 | Q2 | Q3 | |
|---|---|---|---|---|
| 24.02.2026 | 24.06.2026 | 11.11.2026 | 24.09.2026 | |
| North | 100.50 | 120.00 | 140.25 | |
| South | 200.00 | 210.75 | ||
| Region Branch | Branch 1, Headquarters | Headquarters | Headquarters | Branch 1 |
Swapping the order (DateTo at level 1, Quarter at level 2) groups the quarters under the dates. The dimension by which the reader is supposed to compare values should be closer to the cells, i.e. lower in the zone.
An axis zone can be empty. With no fields in Columns, the table has a single column of values without a header row. With no fields in Rows, it has a single row of values without a column of labels.
Settings of the selected field
Clicking a field in a zone shows its settings in the right panel. The panel header contains the attribute name and its position in the table (e.g. the axis level, or information that the field is a value or a footer row). The set of options depends on the zone in which the field lies and on the value type.

In the screenshot, the DateTo field from the Columns zone (level 2 of 2) is selected. The panel shows its value type (Date), sort order (Order of occurrence), an empty sort key and the label format (dd.MM.yyyy).
Corner label
The corner label has no settings panel. You enter the text directly in the zone (see: Zones).
Columns and Rows
A field on an axis has four settings: Value type, Sort order, Sort key and Label format.
Value type
The value type is set for each field, also in the Values and Footer zones. You choose the type from the drop-down list in the field settings panel:

There are three types to choose from. The type determines how values are sorted and whether a format is available:
- Text (default for a new field) – the value is treated as text. Alphabetical sorting, format not available.
- Number – the value is treated as a number. Numeric sorting, number format available, e.g.
N2(see: Label and data format). - Date – the value is treated as a date. Chronological sorting, date format available, e.g.
dd.MM.yyyy.
The type therefore affects, among other things, the order on the axis. Month numbers 1…12 as Text are arranged as 1, 10, 11, 12, 2, 3…, and as Number as 1, 2, 3….
Fields in the Columns and Rows zones have no When several records option. There, the value type affects only sorting and the label format. Aggregations are available only for fields in the Values and Footer zones, and their list depends on the value type (see: When several records).
Reading text values. When the data provides a number or a date as text, the tag reads it in a format independent of regional settings. A number has a decimal point and no thousands separator (1234.56). A date is in ISO format (2024-01-31). A value that cannot be read (e.g. 0,0345 with the Number type) gives the Invalid value error. A value is never silently converted to zero.
Empty values and letter case. An empty value (missing, empty text, only spaces) gives the (none) label on the axis. Spaces at the beginning and end of the text are ignored. Letter case in values matters: North and north are two different rows.
Sorting
You set sorting only for fields in the Columns and Rows zones:
- Sort order (default Order of occurrence) – the order of values at a given axis level: Order of occurrence, Ascending or Descending.
- Sort key (instead of by label) – the attribute by which to sort instead of the displayed value. You choose it from the attribute list or type it. It matters only with the Ascending or Descending sort order.

How each sort order works:
- Order of occurrence: values arranged in the order in which they first appeared in the data. The order is calculated for the entire axis, so it is the same under each parent header.
- Ascending / Descending: by the sort key. Without a key, sorting goes by the value itself, taking its type into account (see: Value type).
- Sorting is hierarchical: level 1 first, then level 2 within it, and so on. Header groups always remain consistent.
When a sort key is needed. When the displayed label does not sort correctly. Example: month names January, February, … sorted ascending as text give alphabetical order (April, August, December…). Set Sort key = MonthNo, Sort order = Ascending. The key type (number, date, text) is recognized automatically.
The same axis value must always have the same key. If two records with the label "January" have different MonthNo values, the preview reports the Conflicting sort keys error.
Label and data format
Label format (a field in Columns or Rows) defines the format of the values displayed in the headers or labels of a given level. A field in the Values or Footer zone has the analogous Data format, which defines the format of the values in cells (or in the footer). By default the formats are empty.
The format is visible only for the Number or Date type and is not available with the Join aggregation.
In the screenshot, the DateTo field (type Date) has the label format dd.MM.yyyy set:

Standard .NET formatting patterns are used, and decimal separators, thousands separators and month names come from the regional settings of the generated document. Examples (results for en-US):
N2(number 1234.5) → 1,234.50,0.00(number 1234.5) → 1234.50,#,##0(number 1234.5) → 1,235,0.0%(number 0.0345) → 3.5%,dd.MM.yyyy(date 2024-01-31) → 31.01.2024,MMMM yyyy(date 2024-01-31) → January 2024,yyyy(date 2024-01-31) → 2024.
Without a format, a number is written without a thousands separator (1234.5), and a date together with the time (1/31/2024 12:00:00 AM). It is therefore worth always setting a format for dates.
An invalid format (one that cannot be applied to the value) is reported by the preview as the Invalid data format error. In the preview the value is then shown without the format, and document generation will fail.
Choosing Zero in the No record option (see: Empty cells) writes zero using the format of the Values field, so the zero is aligned with the neighboring numbers.
Values
A field in the Values zone has the settings: Value type (see: Value type), When several records, Separator and Data format (see: Label and data format).
When several records — aggregation
The When several records option is available only for fields in the Values and Footer zones. It decides what to do when more than one record ends up in a single cell. The list in the window shows only the aggregations available for the selected value type:
- Text – available aggregations:
- Error (default) – more than one record in a cell is an error and generation fails. The preview points to the attribute that differentiates these records (Missing dimension),
- Single value – when all non-empty values in the cell are equal, shows that value. When they differ, reports the Different values in cell error,
- Join – all non-empty values joined with a separator, sorted ascending, including repetitions.
- Number – available aggregations: Error, Single value and Join (as for the Text type) and the arithmetic aggregations:
- Sum – sum of values,
- Average – average of values,
- Min – the smallest value,
- Max – the largest value.
- Date – available aggregations: Error, Single value and Join (as for the Text type) and:
- Min – the earliest date,
- Max – the latest date.
In the screenshot, the Join aggregation was chosen for the RegionBranch field in the Footer zone, which is why the Separator field appeared in the panel (a comma in this example). In the preview, the footer cell under the "Q1 24.02.2026" column joins two values: "Branch 1, Headquarters":

To get a sum, first set the value type to Number. Changing the type to one that does not support the selected aggregation (e.g. from Number to Text with the Sum aggregation) switches the aggregation to Error.
The default Error is intentional. Summing, for example, a percentage indicator gives an arithmetically correct result that makes no sense in terms of content. The aggregation is meant to be a conscious decision of the author. An error in a cell usually means the table is missing a dimension: the axis lacks an attribute that distinguishes the records (e.g. Product). In that case add it to the axis or consciously choose an aggregation.
Example: missing dimension. In the test data, North has two records in quarter Q1 that differ only in the Sales\Periods\DateTo field. The table is set up as follows: Columns: Quarter, Rows: Region, Values: Amount. The DateTo field is not in any zone, so both records land in the same cell, and the Error aggregation does not choose between them. In the preview the North × Q1 cell shows "records: 2", and the message list contains the Missing dimension error, which points to the differentiating attribute DateTo:

To fix the error, give the DateTo attribute a role on an axis: drag it to the Columns zone at level 2, under Quarter. The records then land in separate columns, the cells contain single amounts, and the message list is empty:

The other way is aggregation. When the records are meant to add up in one cell, set the aggregation of Amount to Sum (the value type must be Number, as in the screenshot).
Empty values are skipped in calculations, not counted as zero:
- 10 and (empty) with the Average aggregation → 10,
- (empty) and (empty) with the Sum aggregation → an "empty value" cell (see: Empty cells), not 0,
- 10 and (empty) with the Single value aggregation → 10,
- 10 and 12 with the Single value aggregation → Different values in cell error,
- 10 and (empty) with the Error aggregation → error, because the cell contains two records.
Separator (default , , i.e. comma and space) is the text inserted between the joined values. The field is visible only with the Join aggregation.
Footer
The footer is an additional row under the table in which each column has one value, independent of the row. The footer value is calculated from all records of a given column.
A field in the footer has the settings Footer label, Value type, When several records, Separator and Data format. They are independent of the field in the Values zone. The settings for empty cells (see: Empty cells) are shared.
Footer label (empty by default) is the text in the first column (under the row labels) of the footer row, e.g. Rating. It appears only when the table has a column of row labels.
Typical use. A value that belongs to a column and repeats in every record of the column. Example: the records are financial indicators in periods, and Report\Periods\Rating is a period field. The settings are visible in the screenshot:
- Columns:
Report\Periods\Date(type Date, formatyyyy). - Rows:
Name. Values:Value(type Number, formatN2). - Footer:
Report\Periods\Rating, Footer label =Rating, When several records = Single value.

Result in the preview:
| 2026 | 2025 | |
|---|---|---|
| Revenue | 1,200.00 | 1,350.00 |
| Net profit | 85.40 | 97.10 |
| Rating | A | A+ |
The "Rating" text in the first column of the footer row comes from the Footer label field. When the field is empty, this cell stays empty.
For a constant value in a column, the Single value aggregation is the right choice. It reports an error when the values in the column differ, instead of picking one of them at random.
The footer is not used to sum the column of a field from Values. The same attribute cannot have two roles (the Attribute in multiple roles error). Subtotals and grand totals are not supported.
Table properties
The panel opens after clicking Table properties in the TABLE zone. It has three sections: EMPTY CELLS, APPEARANCE and LIMITS.

EMPTY CELLS
An empty cell can have one of two causes, and each has a separate setting:
- No record: for this row × column pair the data has no record at all.
- Empty value: the record exists, but its value is empty.
For each of them you choose what to write in the cell:
- No record (default Empty):
- Empty – the cell stays empty,
- Replacement text – the cell gets the text entered in the Replacement text field, e.g.
n/aor—(the field is visible only with this choice), - Zero – the cell gets zero, written using the format of the Values field.
- Empty value (default As no record):
- As no record – applies the setting of the No record option,
- Custom text – the cell gets the text entered in the Text for empty value field, e.g.
no data(the field is visible only with this choice), - Leave empty – the cell stays empty.
The settings apply both to the value cells and to the footer row.
The default Empty instead of Zero is intentional: zero looks like data, although it means "unknown".
Example. Settings: No record = Replacement text, Replacement text = -; Empty value = Custom text, Text for empty value = no data. Result in the preview:

- Cells hatched in the preview are cells without a record (e.g. "North × Q1 20.05.2026"). They got the replacement text
-. - In the "South × Q1 20.05.2026" cell the record exists, but has no amount, so it got the text for an empty value
no data.
APPEARANCE
In this section you set the column width and, optionally, the splitting of a wide table into parts:
- Column width (default Equal) – how the width of the value columns is determined.
- Split the table into parts (default off) – splits a wide table into several parts with a limited number of columns.
- Data columns per row (integer > 0, default
3) – how many columns with values one part has. The field is visible after enabling the split. - Separator between table parts (default Empty paragraph) – what separates consecutive parts. The field is visible after enabling the split.
Column width. The number of columns is known only after the data is read, so the widths from the sample table cannot be carried over one to one:
- Equal – the row label columns have the width from the sample table, and the value columns share the remaining table width equally. The table width is taken from the sample table (when given in absolute units), otherwise 16 cm is assumed.
- From pattern – each value column has the width of the value cell from the sample table. With many columns the table may extend beyond the page margin.
- Auto fit – widths are determined by Word based on the content.
Splitting the table. Each part is a complete table: it has its own column headers and repeated row labels. A header of a parent level cut by the border of a part appears in both parts. The columns of all parts are aligned, also in the last, shorter part. The parts are separated by the selected separator:
- None - merge the tables – the parts are consecutive blocks of rows of one table. The shorter last part is padded with empty cells. Repeating header rows on subsequent pages works only for the first part, because Word allows it only at the beginning of a table.
- Empty paragraph – separate tables divided by an empty paragraph.
- Page break – separate tables, each starting on a new page.
Example. Settings: Column width = Equal, Split the table into parts on, Data columns per row = 3, Separator between table parts = Empty paragraph. Result in the preview:

The table has four columns with values (two dates in Q1, one in Q2 and one in Q3), so two tables are created. The first has three columns with values (Q1 and Q2), and the second the remaining one (Q3). Each part has its own column headers (including the corner label), repeated row labels and its own footer row. Here the border of the parts falls between the quarters, so no header is repeated. A header of a parent level cut by the border (e.g. a quarter with two dates split between the parts) would appear in both parts.
A number of columns ≤ 0 with the split enabled is the Invalid table split error in the preview. Until it is corrected, the table is not split.
LIMITS
Limits protect against generating a huge table because of a wrong configuration or unexpected data. Exceeding a limit is an error and the document will not be generated.
When the Set limits for the table checkbox is off, default values apply. After turning it on you can enter your own:
- Cell limit (number > 0, default 5,000) – number of value rows × number of value columns (without headers and labels).
- Column limit (number > 0, default 50) – number of value columns in the whole table, counted before splitting into parts.
- Record limit (number > 0, default 200,000) – total number of records from all sources.
There are three limits because each measures something different: one cell can collect many records, and a table that fits within the cell limit can have too many columns to be printed.
A value ≤ 0 is the Invalid limits error in the preview. Until it is corrected, the default value applies. Turning the checkbox off keeps the entered values in the window, but saves the default values to the tag.
Example. After entering 0 in the Cell limit and Column limit fields, the preview reports the Invalid limits error with the message: "Every limit must be a whole number greater than zero - until it is, its default value is used."

Limit-exceeded messages give the number of columns or cells in the table and the limit in force, and suggest a solution: narrow the source data or aggregate an outer level of an axis.
Example. After setting the Cell limit and Column limit to 2, the preview reports two errors: Too many columns ("The table has 4 columns, the limit is 2. Narrow the source data or aggregate an outer level of the column axis.") and Too many cells ("The table has 8 cells, the limit is 2. Narrow the source data or aggregate an outer level of one of the axes.").

Splitting the table (see: Appearance) does not bypass the column limit, because the limit applies to the whole table before the split. A wide table that is to be printed in parts must be split and have its column limit raised.
Preview and messages
The Preview button on the bottom bar expands the "Grid preview and validation" section. Expanding it recalculates the preview.
| Element | What it does |
|---|---|
| Preview grid | A table built from test data (the template's .vdd file) according to the current configuration, exactly as generation will do it: the same cells, merges, formats and empty-cell texts. The preview shows the structure and content, not the look of the page (fonts and widths are determined by Word). Cells without a record are hatched. Cells with a record collision are highlighted and show e.g. "records: 2". Parts of a split table are separated by a gap. |
| Message list | Columns: Title, Message, Row, Column. The color of the dot next to the title distinguishes an error from a warning. Clicking a message highlights in the preview the cell it concerns. |
| Refresh preview | Recalculates the preview and messages without closing the window. The window does not recalculate them automatically after each change. |
| Edit test data | Opens the test data editor narrowed to the fields read by the table's sources. After the data is saved, the preview refreshes automatically. The button is inactive until a source is indicated. |
Without test data the preview is empty, because columns and rows are created only from the records that occurred in the data.
The configuration window with the preview expanded. On the left you can see the preview grid (here a table split into two parts), and on the right the message list, which is empty when the configuration is correct ("No diagnostics."):

OK saves the configuration to the tag even when the preview shows errors. The errors will then surface during document generation, so before closing the window it is worth expanding the preview and checking the messages.
Sample table — formatting
The configuration contains no options for fonts, borders, shading or alignment. All formatting comes from the sample table drawn in Word inside the tag. Without it, default formatting is applied.
Without a sample table (default formatting)
- The table has 100% width, with single borders on all cells.
- Column headers are bold, centered horizontally and vertically.
- The corner, the footer label and the footer values are bold.
- Values are centered, row labels are left-aligned.
This is how the tag looks without a sample table (top left) and the document generated from it with default formatting. The table is split into two parts, as in the table splitting example:

Inserting the sample table and its shape
The Insert sample table button in the properties panel inserts a table with a shape resulting from the configuration. A question appears before inserting, because the entire existing content of the tag will be deleted.
Shape of the sample table:
- rows = number of fields in Columns (one header row per level) + 1 value row (+ 1 footer row when there is a field in the Footer);
- columns = number of fields in Rows (one label column per level) + 1 value column.
The cells contain hints about which role a given cell formats. The hints do not go into the generated document.
Example. For the columns Quarter and DateTo, the row Region, the value Amount and the footer RegionBranch, a table with four rows (two header rows, a value row and a footer row) and two columns (a row label column and a value column) is created. The top left cell contains the hint Corner, and the other cells contain Column: Quarter, Column: DateTo, Row: Region, Value: Amount, Footer label and Footer: RegionBranch:

Which cell formats what
| Sample table cell | Formats in the result |
|---|---|
| first cell of the first row | the corner |
| last cell of a given header row | all column headers of that level |
| label cell in the value row (next column = next row level) | all row labels of that level |
| last cell of the value row | all cells with values |
| first cell of the footer row | the footer label |
| last cell of the footer row | all footer values |
Example. In the screenshot, a formatted sample table is shown at the top, the document generated from it below, and the configuration and preview at the bottom:
- the corner cell (the first cell of the first row) has a purple bold font on a light blue background. The Quarter / Date corner gets the same formatting,
- the last cell of the first header row (Column: Quarter) has a red bold font on a green background. The Q1, Q2 and Q3 headers are formatted this way,
- the last cell of the second header row (Column: DateTo) has no formatting, so the dates are written in a regular font,
- the Row: Region cell has a blue bold font on a gray background. The row labels North and South are formatted this way,
- the last cell of the value row (Value: Amount) has a brown bold font. All values are formatted this way,
- the first cell of the footer row (Footer label) has a bold font on a pink background. The footer label Region is formatted this way,
- the last cell of the footer row (Footer: RegionBranch) has a white bold font on a blue background. All footer values are formatted this way.

Only formatting is carried over:
- table properties: table style, width, borders;
- row properties: e.g. height, "Repeat as header row". Selecting this option in the header rows of the sample table repeats the header on each page;
- cell properties: shading, cell borders, vertical alignment;
- paragraph and text properties from the first run in the cell: alignment, font, size, bold, color.
The content of the sample table and its merged cells are not carried over. Merges result from the data.
The sample table is read from the bottom: the last row is the footer (when there is a field in the Footer), the row above it is the value row, and the rows higher up are the consecutive header levels.
Sample table consistency with the configuration
When you change the configuration after inserting the sample table (e.g. add a second column level), the table will stop matching. The template check will then report an error, which appears in the Validation panel:

The content of the message depends on what is missing:
- Too few rows. The message gives the tag name, the number of rows in the sample table and the number of rows the configuration requires (in the screenshot, 2 rows instead of 4).
- Too few cells. The message gives the tag name, the number of cells in the data row of the sample table and the number of cells the configuration requires.
In both cases the message also says what to do: insert a new sample table or delete the existing one.
Solution: insert a new sample table (and format it again) or delete the existing one to return to default formatting.
Document generation
- The tag reads records from all sources, builds the table and inserts it in place of the tag content.
- When there is no record at all in the data, the tag inserts nothing and the table disappears from the document. A source path that is absent from the data is not an error.
- Every error stops generation and the document is not created partially. The message contains the name and identifier of the table, the error title, its description and a code. The code is for support requests.
- Warnings (e.g. Constant overrides field) do not stop generation. They are only written to the log.
- Values are formatted according to the regional settings of the generated document. True/false values are written as Yes / No.
Best practices
- Start with test data. Without it the preview is empty, and columns and rows are created only from the records that occurred in the data (see: Preview and messages).
- Check the messages before closing the window. The OK button saves the configuration even when the preview shows errors. They will surface only during document generation.
- Always set a label format for dates. Without a format, a date is written together with the time (see: Label and data format).
- Set the value type first, then the aggregation. The list of aggregations depends on the type. Only the Number type gives a sum or an average (see: When several records).
- Sort month numbers as numbers. As text they are arranged as
1, 10, 11, 12, 2…. Month names are ordered by a sort key, e.g. the month number (see: Sorting). - Choose the aggregation consciously. The default Error indicates that the table is missing a dimension. Before summing right away, check whether the records differ by an attribute that should be added to an axis.
- Place the dimension used for comparison closer to the cells. That is, lower in the axis zone (see: Zones).
- With several sources, give each a different label and drag the labels attribute to an axis. Without it the records of the sources will end up in the same cells (see: Several sources).
- Show a constant value in a column in the footer with the Single value aggregation. When the values differ, you get an error instead of a random result (see: Footer).
- Give the tag a name when the template contains several pivot tables. The name appears in error messages (see: Configuring the tag).
- Split a wide table into parts and raise the column limit. The split alone does not bypass the limit (see: Limits).
- Format the sample table after the configuration is settled. Changing the number of axis levels or adding a footer makes the existing table stop matching (see: Sample table consistency).
Messages — what they mean and how to remove them
Messages appear in the preview (see: Preview and messages). Errors also appear during generation.
Configuration
| Title | When | What to do |
|---|---|---|
| Missing value | The Values zone is empty. | Drag an attribute to the Values zone. |
| Multiple values | There is more than one field in the Values zone. | Leave one field. |
| Multiple footer values | There is more than one field in the Footer zone. | Leave one field. |
| Attribute in multiple roles | The same attribute has several roles (e.g. from a manually changed configuration). | Leave the attribute in one zone. |
| Unknown attribute | No record has such an attribute (typo, structure change, manually entered sort key). | Correct the name or remove the field. |
| Unavailable aggregation / Unavailable footer aggregation | The aggregation does not match the type (e.g. Sum with the Text type). | Change the value type or the aggregation. |
| Invalid data format | The format cannot be applied to the value. | Correct the format (see: Label and data format). |
| Invalid table split | The split is enabled and the number of columns is ≤ 0. | Enter a number greater than zero. |
| Invalid limits | One of the custom limits is ≤ 0. | Enter numbers greater than zero. |
Sources and test data
| Title | When | What to do |
|---|---|---|
| Indistinguishable sources (warning) | Several sources have empty or identical labels, or the labels attribute name is missing. | Give each source a different label and place the labels attribute on an axis. |
| Constant overrides field (warning) | The source labels attribute has the same name as a field in the data. | Rename the labels attribute. |
| No test data | The template has no test data file. | Prepare test data (Edit test data). |
| No records | There are no records under the source path in the test data. | Complete the test data or correct the path. |
Data
| Title | When | What to do |
|---|---|---|
| Missing dimension | Several records end up in one cell, and they differ by an attribute that is not in the table (the message names it). | Add this attribute to an axis or set the aggregation (see: When several records). |
| Indistinguishable records | Several records end up in one cell and nothing distinguishes them (duplicates). | Correct the data or set the aggregation, e.g. Single value. |
| Multiple records in cell | Several records in a footer cell with the Error aggregation. | Set the footer aggregation, usually Single value. |
| Different values in cell | With the Single value aggregation, the records in the cell have different values. | Check the data or choose a different aggregation. |
| Invalid value | The value does not match the declared type (e.g. 0,0345 as Number). | Correct the value type or the data. |
| Conflicting sort keys | The same axis value has different sort keys in different records. | Correct the data or choose a different key. |
| Sum overflow | The sum exceeds the range of the number. | Check the data. |
Limits
| Title | When | What to do |
|---|---|---|
| Too many records | The number of records exceeds the Record limit. | Narrow the data or raise the limit. |
| Too many columns | The number of columns exceeds the Column limit. | Narrow the data, change the axis layout or raise the limit (also when the table is split). |
| Too many cells | The number of cells exceeds the Cell limit. | Narrow the data, change the axis layout or raise the limit. |
Troubleshooting without a message
The table below describes problems for which the preview and generation show no message. If a message appears, its description and how to remove it are in the Messages section.
| Symptom | Possible cause | What to do |
|---|---|---|
| The table preview is empty. | The template has no test data, or there are no records under the source path. | Click Edit test data, fill in the data and refresh the preview (see: Preview and messages). |
| The table does not appear in the generated document. | There is no source record at all in the data. In that case the tag inserts nothing. | Check the data and the source path (see: Document generation). |
| A column or row you expect is missing. | Columns and rows are created only from the values that occurred in the data. | Add a record with such a value to the data. The tag does not create empty "spare" columns (see: What the tag is for). |
Month numbers are arranged as 1, 10, 11, 12, 2…. | The field has the Text type. | Change the type to Number or set a sort key (see: Sorting). |
| Dates in headers include the time. | No format is set for the field. | Enter a label format, e.g. dd.MM.yyyy (see: Label and data format). |
| Empty cells contain a different text than you expect. | The empty cells settings. | Change the No record and Empty value options (see: Empty cells). |
| The table is too wide and extends beyond the page. | Many columns, widths from the pattern, or no split. | Enable splitting the table into parts or change the column width (see: Appearance). |
What the tag does not do
The tag does not support the following functions:
- no subtotals and grand totals (the footer row shows a separate attribute, not a column sum);
- no filtering of records in the table configuration. The table shows all records of the source;
- one value field per table (plus an optional footer). You cannot show several measures side by side;
- no columns or rows for values that are not in the data (e.g. the full list of months when data is missing);
- no conditional formatting dependent on the value;
- no swapping of axes (transposition) without changing the configuration. To swap rows with columns, you have to drag the fields between zones.
See also
Style validation – The sub-template tag