Build a report
Updated
Reports lets anyone assemble a report from the stand's data without a developer: pick what to count, drag in the fields — including fields of linked records — group, filter, add formulas and charts, then save it, share it and get it by mail. Every report is computed with the rights of the person who opens it, so sharing a report never shares data someone may not see.
Note
A report stores settings, not data. Two people opening the same report can see different numbers when their roles restrict different records.
How to#
Open Reports: the chart button in the top bar (next to Reload data), or Reporting → Reports → Reports on the Developer ribbon.
- Press New report. What do we count? lists every document, document line, dictionary and register you may read. One report row is one record of what you pick — for sales by item, pick the sale's lines.
- The builder opens. On the left are the fields. A field that links to another record has an arrow: expand it to reach that record's fields (a line → its document → the customer → the customer's region).
- Drag fields into the layout, or use a field's menu:
- Group rows — the groups and their subtotals. A date groups by month; change the step on the chip. By age, days groups a date by how old it is on the period's last day (today when there is no period): 0–30, 31–60, 61–90 and 91+ days — the aging of debts or of stock. A field that points at a hierarchical list — the chart of accounts, item groups — gets Hierarchy on its chip: each record then sits under its parent records, at any depth, every parent with the totals of everything below it. Folders only shows the parents alone, each with those totals; a record outside any parent keeps its own line. The list button on a chip adds Extra fields: fields of the group's value shown on its own lines, not on every row — a customer's code and status on the customer's line. Each goes With the name («Customer — code, status») or into an Own column that only the grouping's lines fill.
- Group columns — turns the report into a matrix.
- Columns — the values. A number is summed; change the total in the column's settings (pencil). There, Show groups where keeps only the groups whose value meets the condition — items with no sales, sales with a negative margin. It works on the lowest grouping unless At the level of names another one, and the groups above and the total then count only what is shown; an empty value counts as 0. Its For the reader puts the condition on the panel, keeps it in the settings or locks it.
- Formula adds a calculated column:
- Formula per row is computed for every record before totalling —
[Quantity] * [Price]gives sales. - Formula per group works on other columns' totals —
([Sales] - [Cost]) / [Sales]gives the margin of each group.PARENT([Sales]),TOTAL([Sales])andPREV([Sales])read the parent group, the grand total and the previous group. - A formula per group may return text:
IF([Paid] = 0, "Not paid", IF([Paid] >= [Planned], "Paid", "Partly paid"))gives an order's payment state. List the texts under Texts it returns; Show groups where then ticks them instead of comparing a number, and on the panel the reader gets one tick per text. A condition above the lowest level is judged by what passed below it: a customer's state is worked out again over the orders shown.
- Formula per row is computed for every record before totalling —
- On the right, set the Period (this month, last month, last 30 days…), add filters by dragging fields in, and combine them with Filter logic such as
1 AND (2 OR 3). The tick in front of a filter switches it off without removing it: it then imposes nothing, and the filter logic reads as if it were not there. For the reader under the period and each filter decides what the person who opens the report may do with it: On the panel (they change it above the result), In settings (it stays as you set it) or Locked. A filter On the panel left without a value is kept switched off: it waits for the reader, and the value they choose switches it on — the account of an account card, say. A reference to a directory kept as a tree (accounts, product groups) also compares in the group and not in the group: a chosen group takes in everything under it, at any depth. Related lists under the fields count or sum linked rows, or keep only records with or without them. For a document they include its own lines, the documents made from it (an invoice's Source order), the debt settled against it (Basis) and its movements in every register. - The Live preview under the layout rebuilds as you change things. Generate opens the full view. A heavy report can wait for a button: under For the reader, Generate the report is On every change (the default), On opening, then on Generate or Only on Generate.
To put other data next to these — stock or a credit limit next to sales — press + next to the source names above the fields and pick another object. Each source is totalled on its own and joined by the same groups, so neither multiplies the other:
- With the new source selected above the fields, double-click its fields to add them as columns. Its columns are always totals and carry the source's name.
- Under each group chip — row and column groups alike — ↳ source shows the source's field for that group. The builder picks the field that links to the same directory, and the source's date for a date group; change it there, or with Group by it as in the field's menu. A group left not split shows the source only on the levels above it and in the total.
- On the right, under Additional sources, choose which of the source's dates the report period applies to, and its own filters (drag its fields onto Filters). For a register, What to read picks Movements within the period, Balance at the start of the period (every movement before the period) or Balance at the end of the period (every movement up to its end). Two sources of the same register — one at the start, one at the end — give the opening and closing balance of a trial balance.
- A Formula per group can mix sources —
[Credit] / [Sales]. A group that exists in one source only, such as a customer with stock and no sales, still gets its row. When the report is about its own records — orders, with their debts beside them — switch on Groups of the report's own object only under Additional sources: a group only a source has, such as the debt of an order the filters left out, is dropped, and the totals leave it out too. With it on, a source may also map a deeper grouping without the ones above it — the order, not the order's agent, which a debt register does not keep: its figures are then read per order and added up through the agents.
Several sources work in a summary and in a matrix, and in charts: a chart with Own grouping shows a source's values when that grouping is one of the report's groups mapped for the source. Show records under groups lists the main data's records only.
A balance can be shown on two sides, the way a trial balance shows it. In a summed column's settings (pencil) — a number field or a Formula per row such as [Debit] - [Credit] — set Debit / credit to Debit balance or Credit balance. Each lowest-level group nets its balance and puts it on one side by its sign: a positive one under Debit balance, a negative one, as a positive number, under Credit balance. The groups above and the total add the sides up instead of netting them. Expand by (up to four fields) splits the balance further than the report's groups: grouped by account and expanded by customer, a customer that owes 1 000 and another that prepaid 300 show 1 000 on the debit side and 300 on the credit side, not 700. The debit and credit columns of one source expand by the same fields.
A summed column can also run: switch on Running balance in its settings. Each record — or each group of a report with one grouping — then shows the balance before the period plus everything up to and including it, in date order, and the total line shows the balance at the end of the period. The balance before the period is shown above the table. The format Balance (Dr / Cr) writes a balance as an amount and its side: 1 200.00 Dr, 300.00 Cr.
Example
The standard Trial balance report (Reports, under Standard) has two more sources of the ledger: one reads the balance at the start of the period, one at the end. Each gives a Debit balance and a Credit balance column expanded by account and legal entity — and by customer and supplier on the accounts marked Expanded balance in the chart of accounts — around the debit and credit turnover of the period. Its accounts are grouped with Hierarchy, so every group account shows the totals of its sub-accounts. The standard Account card is a table of one account's ledger entries with a Running balance column.
Balances and turnovers. A register is offered twice under What do we count?: Movements (one row per movement) and Balances and turnovers, the way 1C reads a register's balances and turnovers. The second gives, for every resource, the opening balance, income, outcome, closing balance and turnover for the report period — add the ones you need as columns — by the register's dimensions and analytics. Two more fields put the lines in time order: Period (group it by day, week, month, quarter or year) and Recorder, the document that made the movements. Along them each line opens where the line before it closed: grouped by item and month, March opens with February's closing balance, and a month total carries everything left that month, also what did not move in it. Under a recorder the first line, Opening balance, brings the balance from before the period. A line where nothing is left and nothing moved is not shown. A new report on it starts on this month. Its figures are totals, so it has no Table format and no records under the groups; filter it by the dimensions, and by a balance with Show groups where. Rows behind the number opens the movements behind the figure: those of the line's month for a turnover, everything before the month for an opening balance, everything up to its end for a closing one. A register opened from its menu opens on its own report in this window: its balances and turnovers by its first dimension for this month, with the register's saved layouts as its variants, and a document behind a line opens with Open.
Data sets in code. Under What do we count? the list also offers Data sets in code, each under the standard report it belongs to: rows a developer's code builds — figures no single table holds, such as balances by batch or write-offs priced at the standard in force on their day. Build a report on one as on a register: group, filter, total, export and mail it, and a reference in it reaches the record's fields (an item's group). The code runs when the report does, for its period, with your rights.
How the result looks:
- Header over columns in a column's settings (pencil) puts a title over several columns. Type the same text — «Payment» — on planned, remaining and prepaid, and «Payment» spans the three of them. Clear the text to take a column out. The header shows in View, in the builder's preview, on the dashboard tile and in the XLSX, CSV and mail.
- Conditional appearance (under Display on the right) paints a cell or The whole row when a condition holds. A rule reads any column: «paint the row bold when Remaining > 0», «a yellow background on Remaining when it is above 0». A text column is compared with a list of values (is one of, is none of). The first rule that matches wins; a rule on a cell wins over a rule on its row. The quick colour in a column's settings still works as before.
- Negative numbers in red (under Display) shows every negative number in red, in View and in the exports.
- Totals of the selected cells: in View, click a cell, then Shift-click another to select the block between them, or Ctrl-click (⌘ on a Mac) to add single cells. The bar under the table shows the sum, count, average, minimum and maximum of the numbers selected. The author can switch it off under For the reader.
Drill-down in View — double-click, or right-click a line:
- Rows behind the number opens, in a new tab, the records that make up the figure: the same data filtered by the line's groups (a month group by its whole month), with what identifies each record — a document's date and number, a register movement's date and document. A column of an additional source lists that source's records.
- Decode by… groups the line's figures by a field you pick, in a new tab: a customer's sales by manager, then a manager's by month. Repeat it as deep as you like.
- Open opens the record behind a group (the customer) or behind a cell of a record (its document).
- Filter by this narrows the current view, as a click on a group name does.
- The reports named under Lines open in reports (for the reader, on the right of the builder) open narrowed to the line: the line's groups and the report's filters go into the other report's filters, the period comes along, and it is built at once. In the Trial balance, an account opens its Account card or Account analysis.
A line of a tree (Hierarchy) stands for itself and everything under it: the rows behind a group account are those of all its subaccounts.
Double-click on a number opens the first report under Lines open in reports, or its rows when there is none; on a group name, its record when it has one, otherwise Decode by…. A tab opened this way is a new report: Save keeps it.
The three formats:
- Table lists the records one by one, with the totals underneath. Use it for a register of documents or lines.
- Summary groups the records: drag fields into Group rows (customer, then month) and every group gets a subtotal. Switch on Show records under groups to open the records inside each group.
- Matrix is a summary with one more group across: drag a field into Group columns (for example the month) and each value is split into a column per month, with a total column on the right. Drag a second field there (up to three) and the groups nest: the region over its customers, the year over its months. The headers nest the same way, and every group above the last one gets a Total column after its own columns — where the figures add up (sums, counts, smallest, largest; an average or a count of different records is left empty). Subtotal columns of the column groups under Display switches those columns off. In Customize… → Groupings the column groupings can be added, reordered and removed too.
To add charts, open Charts. Pick a type from the gallery (indicator, columns, stacked, bars, combo, line, area, donut, funnel, gauge, scatter, heat map), then set its values, size and look on the right. Suggest charts fills an empty page with indicators and a chart over the first group. A chart uses the report's groups, or Own grouping with the same filters. A heat map shows the categories across the top and the split down the side; under Appearance, Swap rows and columns turns it round (each category gets a line of its own, the split runs across the top) and Vertical column captions writes the captions across the top vertically, so many narrow columns, such as twelve months, stay readable. A map taller than its chart size scrolls, and its captions stay in view. A plain table has no groups, so its charts group the records themselves: pick Categories (the builder suggests the first text column), and a number column the table lists record by record is shown as its sum — any other column as its count.
In View, the charts sit above the table. The panel above the result holds the period and the filters the author put On the panel: tick a filter on or off, change its comparison or value, and the result follows. Typing in a list of values searches the whole dictionary, not only the first page of it. Click a column, a slice or a group name to filter the view to it; the chips above remove those filters again. The table scrolls under its header and works like any list: click a header to sort (groups are ordered among themselves at every level, the total stays last), use the funnel on a header or the quick search to narrow it (a group stays when it or something under it matches), and print or export what is shown.
Save keeps the report as a draft visible to you only. In Access, switch Published on and add people or roles: Can view opens it, Can edit changes its layout. Mailing sends it on a schedule — daily, weekly or monthly, for a relative period such as last week, to users, roles and external addresses, as a table in the mail and as XLSX or CSV. With Send only if the mail goes out only when a total or any group meets a condition, for example margin below 20 %.
Example
- New report → document lines of a sale
- Group rows: customer → region, then customer → manager
- Columns: Formula per row
[Quantity] * [Price]named Sales, the cost summed, Formula per group([Sales] - [Cost]) / [Sales]named Margin- Period: Last month
Charts → Suggest charts, then Mailing every Monday at 08:00 to the sales managers' role.
Tip
Export downloads the current report as XLSX (groups become outline levels; the headers of a matrix nest as merged cells; the header is framed, a band is a strip over its columns, a long caption wraps, the table is drawn in light lines, the header and the groupings stay in view and the sheet prints one page wide), CSV (a matrix column is named by the groups above it, «North / Alpha») or PDF. In View, the export follows the filters you clicked.
The PDF is an A4 sheet: the title, the period, the variant you have open and the filters on top, then the table as you see it — nested headers, bands, subtotals, the total, the rules of Conditional appearance and negative numbers in red. The header rows come back on every page, a line is never cut across two pages, and a wide table turns the sheet to landscape (a very wide one is set smaller). A report with more than 5 000 lines is cut there, and the PDF says so — use Excel for all of it. The PDF is drawn by the same service as a printed document; if your administrator has not set it up, PDF says so and Excel still works.
A saved report belongs to its user, not to a model: it is not exported with the model and does not travel to another stand on its own. Two ways to move it:
- Download as a file (the report's ⋯ menu) saves the layout as a
.userreport.jsonfile; on the other stand, From a file on the Reports page makes it your draft there. The fields the other stand lacks show up as problems in the builder. - Include in a model… — for those who may change a model — puts a copy of the report into the chosen model. It is then model content: the workspace export writes it to
Reports/Standard/<Name>.userreport.json, and it is imported and deployed with the model. Everyone sees it under Standard, computed with their own rights; whoever may write the model edits it in place or removes it, everyone else opens it read-only and presses Make a copy to change it for themselves. A developer can put a standard report on the menu (Developer → Menu, catalog typeStandardReport).
To see a report's charts on the dashboard, add the Report tile there (Add a widget).
Analyze (the chart button on a document journal or a dictionary list) opens what the list shows as a new report over the same object: its columns, the journal's period and document states, the menu's fixed filters and the column filters a report reads the same way. A list filters a reference or an enum by the text it shows, so those filters, «ends with» and the quick search stay behind — the message names them. Group, total and chart the report as any other; Save keeps it.
A report can sit on a record's card. Under For the reader, On the card of names the card: the report's object itself, or any record a reference field of the report points at — a report over orders, set to Customer, goes on the customer's card. That card's Reports button (next to Print) lists every such report and variant you may open; each opens filtered by the record, and the reader cannot widen it past the record.
Variants and your settings#
What you change in View — the period, a filter's tick, comparison or value — is yours: it never changes the report, and the report opens with it next time, in any browser. Your settings next to the variant name shows that you changed something; click it, or Reset my settings in the ⋯ menu, to go back to the report as its author made it.
A variant is the same report with other settings under a name. The list left of the period offers the report's own layout (Main), the Standard variants that ship with a model, the Shared ones and Mine. The report opens with the variant you had open last.
- Save settings… in the ⋯ menu keeps what you see now as a new variant of yours, or replaces one you may change. Those who may change the report can tick Everyone who opens the report sees it to share it. After saving, the variant you came from goes back to its own settings.
- Delete this variant in the same menu removes a variant of yours, or a shared one of a report you edit.
- A report whose author switched off May save variants offers no Save settings… to its readers.
- A mailing sends the variant chosen in its Variant field, with the recipients' rights and without anyone's own settings.
Customize… next to the variant list opens all of the variant's settings in one dialog:
- General: the period, the totals and the display switches, Negative numbers in red, and which columns show. A header over several columns ticks all of them at once.
- Groupings: the row groupings in their order. Add one, move it up or down, remove it, change a date's step, or show a directory as a hierarchy. A matrix also has its column grouping.
- Filters: every filter with its tick, comparison and value, the ones on the panel too. Add a filter picks any field; a reference opens to its own fields. Below them, the conditions on totals.
- Extra fields: per grouping, the fields shown with its value, with the name or in a column of their own.
- Sort: what orders the lines of each grouping, its own value or a total, ascending or descending.
- Conditional appearance: the rules that paint a cell or a whole row.
What the author locked shows a lock and stays as it is. OK keeps the values as your settings: the period, the ticks, comparisons and values, the columns and the switches. Groupings, the order, extra fields, new filters and appearance are the report's structure, which your settings do not hold: OK then asks for a name and saves them as a variant of yours. Generate does the same and builds the report at once. Open the builder is there for those who may change the report. In a report not saved yet, such as one opened by Analyze or a drill-down, the dialog changes the report itself.
Some standard reports have code of their own, a report module:
- Its fields — checkboxes such as Not paid and Partly paid, a date, a number — sit at the top of the panel above the result. What you set there is part of your settings, like a filter's value; the report turns it into its filters before every run, and an export or the assistant reads it the same way.
- Its commands are buttons next to Customize…. A command works on the report as you see it and on the lines you have selected, and may create documents and open them.
- A red The report module has an error badge means its commands are not available until the module is fixed; the report still builds.
When the author set the report to build Only on Generate, the view waits for Generate; after a change the old result greys out until you press it again. A report that takes more than two seconds shows how long it has been building and a Cancel button.
Example
A sales report filters on Product = Nails and shows 40. Untick the filter: the view shows every product, 210, and Your settings appears. Save settings… → As a new variant «All products». Switch the list back to Main: 40 again. Close the tab and open the report in another browser: «All products» opens, at 210.
If the command refuses#
| What you see | What to do |
|---|---|
| The report cannot be built yet with a list of problems | Each line names what is wrong — an unknown field, a formula with a typo, a filter without a value. Fix it in the builder; the preview rebuilds on its own. |
| No access to … | The report walks into data your role may not read. Ask an administrator, or remove that field. |
| The report is not in the list of someone you shared it with | It is still a draft. Open Access and switch Published on. |
| The report's object is not on this stand when importing a file | The document, list or register the report is about does not exist here. Deploy its model first. |
| Include in a model… is not in the menu | Only those who may change a model see it. Download the report as a file and hand it to a developer. |
| A mailing ran but nothing came | Open the mailing's Run history: skipped means the conditions were not met, failed carries the reason. |
| Report variant not found | The variant was deleted, or it is someone else's own. Pick another one in the list. |
| You can use this variant but not change it | It is a shared variant of a report you may only view. Save settings… as a new variant of yours. |
| Only those who may change the report share its variants | Save the variant for yourself, or ask the report's owner to share it. |
| Customize… shows only General and Filters, without Add a filter | The author switched off May change groupings and columns, or May save variants. Change the values there, or ask the author for a variant. |
A group or a cell reads <object not found> (…) |
The record it refers to is gone: deleted, or never imported. The end of its id follows in brackets. Correct the reference on the record the line comes from. |
Same topic for other readers: Developer