Manage report data designer
The Report Data Designer List page displays all report data designs created. This list provides an overview of existing report definitions along with key identifying details such as code, description, and assigned report ID. From this page, you can create new report designs, edit existing ones, or open the card page to define detailed report structures, data items, and relationships.
To design reports, follow these steps:
- Select the Search icon
, enter Report Data Designer List, and then choose the related link.
The Report Data Designer List page opens. - On the action bar, select New to create a report data design. The Report Data Design Card page opens.
-
On the General FastTab, enter the required information to define the report in the following fields:
Field Description Code Enter the unique identifier for the report data design. Description Enter the purpose or content of the report. Report Name Enter the name of the report to be displayed when it is executed. Usage Category Select the purpose or usage type of the report. The available options are: None, ReportsAndAnalysis, Documents, Lists, Tasks, Administration. Application Area Enter the application area where this report design can be used. Modified At Specifies the date and time when the report design was last modified. Modified By Specifies the user who last modified the report design. -
Enter the required details of the extension and relevant version information in the following fields:
Field Description App ID Specifies the unique system-generated identifier for the extension. A design set imported from a .rdd file keeps the app ID from the file when no other design set in the environment has it, so that deploying a newer version upgrades the installed app. App Name Enter the name of the app that contains the report design. Publisher Enter the name of the user who created the app. Report ID Select the unique numeric identifier assigned to the report. ID Range From Enter the ID range to begin with the report objects used in the app. This value should be equal or greater than the Report ID field value. ID Range To Enter the ID range to end the report objects used in the app. This value should be greater than the ID Range From field value. Version Major Enter the major version number of the report extension. Version Minor Enter the minor version number of the report extension. Version Build Enter the build number, generally incremented during each build iteration. Version Revision Specifies the revision number, used for minor fixes or revisions to the same build. -
On the Report Design Tables Used FastTab, enter the required details to define the tables used to build the report data design and how they relate to one another in the following fields:
Field Description Table No. Select the ID of the table used in the report. Table Name Specifies the name of the table and and its fields used used in the report to display. Indentation Level Enter the number in the hierarchical level of the fields to be displayed in the report. You can also execute the Indent action to update the indent number in an incremental order. Parent Table Name Specifies the name of the parent, relevant to the Table Name field value. The system updates this field value when you execute the Indent action. Alias Enter the alias used for the table in the report design. Base Record Select this checkbox to define the corresponding Table Name field value as the base record for the report data structure. Filter String Specifies the filters to apply. You can select this field value or execute the Filter Fields action to filter fields on the Report Data Designer Fields page. Include in Report Select this checkbox to define whether data from the table is included in the report output. Group Rows Select this checkbox to print one row for each group of records instead of one row for each record. For more information, see Group rows and add up amounts. Sorting Specifies the sorting order of records to apply. You can select this field value or execute the Sorting Fields action to sort fields on the Report Data Designer Fields page. Request Filter Fields Specifies the list of the fields available for user-defined filters when running the report. You can select the field value or execute the Request Filter Fields action to filter fields on the Report Data Designer Fields page. Language Code Field Select the field of a table at the top level that holds the language to print in, such as Language Code. For more information, see Print reports in the language of the document. Format Region Field Select the field of a table at the top level that holds the format region to print dates and numbers in, such as Format Region. Custom Caption Enter a custom caption to override the default field caption on the Report Data Designer Fields page. Field Format Select the format to apply to the field value on the Report Data Designer Fields page. The available options are: - None: No special formatting.
- Date: Format as date.
- Time: Format as time.
- DateTime: Format as date and time.
- Decimal: Format as decimal number.
Sum When Grouped Select this checkbox on the Report Data Designer Fields page to add up an output field for each group when the table groups its rows. Only number fields that hold their own value can be added up. Sorting Direction Select the sorting order on the Report Data Designer Fields page. The available options are: - - Ascending: Sort from lowest to highest (A to Z, 0 to 9).
- - Descending: Sort from highest to lowest (Z to A, 9 to 0).
Select Fields Select the checkboxes for the fields you want to include on the Report Data Designer Fields page. -
On the action bar, execute the following actions as required:
Action Description Select Multiple Tables Opens the Select Tables for Report page and follow the instructions to select the tables you want to include in your report. Output Fields Opens the Report Data Designer Fields page to manage the output fields for the report table. Calculate Fields Opens the Report Design Calculated Fields List page to define calculated fields (example, for total or subtotal), calculation type, source field, and custom formula for this report table. Table Relations Opens the Report Design Table Relations page and to define the table relationships between the table and the base record. Outdent Updates the Indentation Level field value in the decremental order. Validate Relationships Validates the table relationships and indentation levels defined in the table. View Hierarchy Opens the Report Design Tables page and view the table in the order of indentation. -
On the App Dependencies FastTab, on the action bar, select Select Dependencies. The Select Dependencies for Report page opens.
-
Select the extensions on which the report depends and then select Close. The system updates the details of the dependent extensions in the following fields:
Field Description Dependency App ID Specifies the ID of an extension on which the report depends. Dependency Name Specifies the name of the dependent extension. Dependency Publisher Specifies the publisher of the dependent extension. Dependency Version Specifies the version of the dependent extension used in the report design. You have configured all the datasets required to generate the report.
Additionally, you can execute the following actions on the header:
| Action | Description |
|---|---|
| Validate Report Design | Validates the structure of the report data design to ensure it is completely set up. |
| Generate Report Code | Generates AL code for the report design based on defined tables and fields. |
| Build and Deploy App Package | Builds an app package from the report design and deploys it. |
| Build and Download App Package | Builds an app package from the report design and downloads it. Note that the downloaded app package can be used by others (by executing the Extension Deployment Status action and uploading it to their environment) to have the same report design in their environment. |
| Run Report | Runs the generated report in the current environment. You can then preview and print the report. |
| Extension Deployment Status | Opens the Extension Installation Status page to view deployment information and also uploads the downloaded app related to report. |
| Report Labels | Opens the Report Labels page to define fixed texts, such as Invoice or Total, that the layout prints in the language of the report. For more information, see Translate captions and labels. |
| Caption Translations | Opens the Caption Translations page with every translation of the captions and labels of the report data design. |
Group rows and add up amounts
A table in the report data design can print one row for each group of records instead of one row for each record. Records are in the same group when all their output fields have the same values, except the fields you add up. For each group, the report prints the values of the first record and adds up the fields marked Sum When Grouped.
To group the rows of a table, follow these steps:
- On the Report Data Design Card page, on the Report Design Tables Used FastTab, select the Group Rows checkbox on the table line.
- Select Output Fields and choose the output fields:
- The fields that decide the groups, such as VAT %.
- The fields to add up, such as Amount and Amount Including VAT. Select Sum When Grouped for each of them.
The groups are built from the records that the table line would otherwise print, so a table under the sales invoice header groups only the lines of that invoice.
The following examples use a sales invoice with the Sales Invoice Line table under the Sales Invoice Header table.
| What to print | How to set it up |
|---|---|
| One line per VAT rate under the invoice lines | Add the Sales Invoice Line table a second time with an alias, select Group Rows, and add VAT % as an output field, with Amount, Amount Including VAT and VAT Base Amount marked Sum When Grouped. To print the VAT amount of each rate, add a calculated field with the custom formula "Amount Including VAT" - "VAT Base Amount". |
| Each VAT clause once at the bottom of the invoice | Add the Sales Invoice Line table a second time with an alias, select Group Rows, and add only VAT Clause Code as an output field. Then add the VAT Clause table under it, linked by Code to VAT Clause Code, to print the clause text. Lines without a VAT clause form one group that has no VAT clause to print. |
In a table that groups its rows, a calculated field must be a custom formula that uses only the table's output fields and its other calculated fields, without functions that read several records, such as SUM or COUNT: each row is already a group, with its amounts added up. The output fields must hold their own value. FlowFields, BLOB fields and media fields can't be used. A table under a table that groups its rows must be linked to it on a field that decides the groups, such as VAT Clause Code in the example above: each row is the first record of its group, so a link on any other field would only find the records of that first record. Grouping isn't available for a design that reads its data from XML.
Create custom formulas
To create a custom formula for a calculated field, follow these steps:
- On the Report Data Design Card page, on the Report Design Tables Used FastTab, select the table line for which you want to add calculated fields.
- On the action bar, select Calculate Fields.
The Report Design Calculated Fields List page opens. - On the action bar, select New to create a calculated field.
- In the Field Name field, enter a unique name for the calculated field.
- In the Field Caption field, enter a descriptive label for the calculated field.
- In the Calculation Type field, select Custom Formula.
- In the Formula field, enter the custom formula using supported AL syntax.
- In the Field Format field, select the format to apply to the calculated value in the report output.
For example, select Currency: 2 decimals to always show the value with two decimals. - Select the Include in Report checkbox to include the calculated field in the report output.
- Select OK to save the calculated field.
The system validates custom formulas and displays errors if: - Invalid AL syntax is used. - Referenced fields do not exist or are not accessible. - Invalid operators are applied to field types (for example, multiplication on text fields). - Filter expressions contain invalid comparisons.
Choose between two values with the IF function
A custom formula can select one of two values based on a condition, which lets you print a default when a field is blank. Use the following format:
IF(condition, value when true, value when false)
- The condition compares one field with one value, for example
"Currency Code" = ''. - Each value is either a field name in double quotes or a text in single quotes.
- Two single quotes represent a blank value.
- The IF function must be the whole formula. Because it returns text, it cannot be combined with other fields or operators, and it cannot contain another IF function.
- The result is always text, so the Field Format field must be left as None. Selecting a numeric format such as Currency: 2 decimals is refused, because that format cannot be applied to a text value.
For example, on a sales order the Currency Code field is blank for the local currency. The following formula prints EURO for local currency orders and the currency code for all other orders:
IF("Currency Code" = '', 'EURO', "Currency Code")
The following table shows further examples.
| Formula | Result |
|---|---|
IF("Status" = Open, 'Not posted', 'Posted') | Replaces an option value with your own wording. |
IF("Amount" > 1000, 'Large order', 'Standard order') | Shows a different text depending on a numeric comparison. |
IF("Ship-to Name" <> '', "Ship-to Name", "Sell-to Customer Name") | Uses the ship-to name when it is filled, otherwise the sell-to name. |
To see the supported formats and syntax rules at any time, select Custom Formula Examples on the Report Design Calculated Fields List page.
Count different values with the COUNTDISTINCT function
A custom formula can count how many different values a field has, for example how many different pallets are on a warehouse shipment. Use the following format:
COUNTDISTINCT("Field Name")
- The count covers the same records as the other aggregation functions, for example all lines of the current document.
- Each different value is counted once.
- Blank values, such as an empty code or an undefined date, are not counted. Zero is a value, so it is counted.
- Values that differ only in upper and lower case, such as abc and ABC, are counted as one value.
- You can add a WHERE clause in the same way as for the other aggregation functions.
- The result is a whole number.
- COUNTDISTINCT cannot be used with BLOB, Media or MediaSet fields.
For example, on the sales line table the following formula counts how many different items are on the document:
COUNTDISTINCT("No." WHERE("Type"=Item))
Calculate with dates
A custom formula can calculate a date, or the number of days between two dates. You can use the following:
| Formula | Result |
|---|---|
TODAY() + 120D | The date 120 days from today. |
"Shipment Date" - 2W | The date two weeks before the shipment date. |
"Shipment Date" + "Shipping Time" | The shipment date plus the period in the Shipping Time field, which is a date formula field. |
"Order Date" + 14 | The order date plus 14 days. A whole-number field can be used instead of a number. |
TODAY() - "Order Date" | The number of days between the order date and today. |
YEAR("Order Date") | The year of the order date. MONTH, DAY, WEEKDAY and WEEKNUM work the same way, and each also accepts TODAY(). |
- Write a period as a whole number followed by a unit: D for days, W for weeks, M for months, Q for quarters or Y for years. For example, 30D or 3M.
- A date formula field, such as Shipping Time, can only be added to a date. To subtract a period, write it in the formula, for example
- 30D. - A date minus a date gives a number of days. A date plus or minus a period or a number of days gives a date, so you can select a date format in the Field Format field. YEAR, MONTH, DAY, WEEKDAY and WEEKNUM give a number, also when you add to them.
- HOUR, MINUTE, SECOND, DATEADD and DATEDIFF can't be used in a calculation yet.
- A formula can't calculate with the date of another calculated field yet. Use the date field of the table instead.
Define calculated fields with aggregation functions
To define calculated fields with aggregation functions, follow these steps:
- On the Report Data Design Card page, on the Report Design Tables Used FastTab, select the table line for which you want to add calculated fields.
- On the action bar, select Calculate Fields.
The Report Design Calculated Fields List page opens. - On the action bar, select New to create a calculated field.
- In the Field Name field, enter a unique name for the calculated field.
- In the Field Caption field, enter a descriptive label for the calculated field.
- In the Calculation Type field, select the aggregation function.
The available options are:- Sum: Calculates the total of values in the specified source field.
- Average: Calculates the average of values in the specified source field.
- Count: Counts the number of records.
- Count Distinct: Counts how many different values the specified source field has. Blank values are not counted. For more information, see Count different values with the COUNTDISTINCT function.
- Min: Finds the minimum value in the specified source field.
- Max: Finds the maximum value in the specified source field.
-
In the Source Field field, select the field to use for the calculation.
The Source Field field is not applicable for Count operations.
- In the Field Format field, select the format to apply to the calculated value in the report output.
- Select the Include in Report checkbox to include the calculated field in the report output.
- Select OK to save the calculated field. > [!Note] > You can repeat these steps to add multiple calculated fields to your report tables.
Print reports in the language of the document
A report can print each document in the language of its customer, as the standard Business Central documents do. For example, a French customer gets a French invoice and a Dutch customer a Dutch one. A document without a language is printed in the language of the user who runs the report.
To print a report in the language of the document, follow these steps:
- On the Report Data Design Card page, on the Report Design Tables Used FastTab, select the table line at the top level, such as Sales Invoice Header.
- In the Language Code Field field, select the field that holds the language, such as Language Code.
- Optionally, in the Format Region Field field, select the field that holds the format region, such as Format Region. Dates and numbers are then printed in the format of that region, for example 15. Januar 2026 and 1.234,5 for de-DE.
Each record of the table, and everything printed under it, is printed in its own language:
- Field values, such as dates, numbers and options.
- The captions of the output fields and calculated fields. An output field without a custom caption prints the caption that Business Central has for the field in that language.
- The report labels.
Business Central translates field captions and options with the translations installed in the environment. A caption that has no translation in a language is printed in English. To print your own text, add a translation as described in Translate captions and labels.
When you leave Language Code Field blank, the report prints in the language of the user, as before. A report data design that doesn't print in the language of the document and has no report labels or translations prints the same captions and dataset columns as before.
Translate captions and labels
Business Central doesn't translate the texts that you enter yourself. You can translate them in the report data design:
- The custom captions of output fields, and the captions of calculated fields.
- Fixed texts of the layout, such as Invoice or Total, which you define as report labels.
You can also translate the caption of any other output field, to print your own text instead of the caption that Business Central has for it.
To define report labels, follow these steps:
- On the Report Data Design Card page, on the action bar, select Report Labels.
- In the Label Name field, enter a name of letters, digits and underscores that starts with a letter, such as InvoiceTitle. The dataset column of the label is named RDDLabel_InvoiceTitle.
- In the Caption field, enter the text, such as Invoice.
- In the layout, use the RDDLabel_InvoiceTitle column instead of typing the text, so that one layout serves every language.
The labels are columns of the first data item of the report, so they are printed with each record of it, in the language of that record.
To translate a caption or a label, follow these steps:
- Select the output field on the Report Data Designer Fields page, the calculated field on the Report Design Calculated Fields List page, or the label on the Report Labels page, and then select Translations.
- In the Language Code field, select the language, such as NLD.
- In the Caption field, enter the text in that language.
To see every translation of a report data design, on the Report Data Design Card page, select Caption Translations.
The report reads the translations when it runs, so a changed translation or label text applies the next time the report runs, without building and deploying the report again. A caption that has no translation for the language prints its own text: the custom caption, the caption of the field in Business Central, the caption of the calculated field, or the caption of the label.
Build and deploy the report again in these cases:
- You add the first report label or translation to a report data design that doesn't print in the language of the document. Until then, the report prints its captions as fixed texts, as before.
- You add, rename or delete a report label or a calculated field, because each of them is a column of the report.
The translations and report labels are stored in the report data design, in the company where you enter them. A report only uses them when the report data design in the company where the report runs has the report's ID. In other companies, and in an environment where you install a downloaded .app file without importing the report data design, the report prints the captions and label texts that were built into it, without your translations. To use the translations in another environment, export the report data design and import it there. If you change the Report ID field of a report data design, build and deploy the report again.
Report labels and translations are included when you copy, export or import a report data design. A report data design that has them, or that prints in the language of the document, is exported in a newer .rdd file format, which earlier versions of the extension can't import. When you import into a company that doesn't have a language, the translations into that language are left out and listed on the Import Omissions page.