Skip to content

One figure, its definition and invoices

The definition comes first, so two reports no longer give two totals.

Same figure in both

Revenue by product
RON 202,798.50
Management dashboard
RON 202,798.50
What the animation shows:
  1. The report starts from the issued invoices of 2026-10.
  2. Net revenue adds quantity × unit net: FCT-2026-00415 and FCT-2026-00436 give RON 119,455.50.
  3. BRR-2026-00127 brings it to RON 202,798.50, without tax.
  4. The draft FCT-2026-00456 is left out: only issued invoices count.
  5. Revenue by product and the Management dashboard read the same definition: RON 202,798.50 in both.
  6. CRM cannot be reached when the figure is refreshed. The last result stays and the figure does not change.
  7. On Monday at 08:00 the same figure goes to management by e-mail.
  8. The next report starts from the same definition.

One filter changes every figure

Period, company and department narrow the same invoice lines. Revenue, margin and receivables recalculate together; open orders use those same filters.

All companies

Dashboard

Dashboard

Net revenue
RON 202,798.50
Change: +5.7%
Gross margin
32.2%
RON 65,248.00
Overdue receivables
RON 72,063.00
2 invoices · oldest 33 days
Open orders
2
RON 91,983.00

Net revenue · Product line

2026-10

Food RON 142,063.00
Household RON 60,735.50

2026-09

Food RON 134,885.50
Household RON 57,017.00
Net revenue · Month
Show data as a table
Net revenue · Month, RON
PeriodRevenue
Jul169,050.5
Aug182,548
Sept191,902.5
Oct202,798.5
Target220,000
Change
Metric2026-10Previous periodChange
Net revenueRON 202,798.50RON 191,902.50RON 10,896.00
Last sync:

From a bar to the invoices in it

Grouping changes how the rows are divided, not the revenue definition. Invoice identifiers stay attached to each amount, including after grouping by week.

  1. Choose a product line

    Open the food bar to see the invoice lines that make its total.

    Show it: Choose a product line
  2. Read the rows

    Each amount keeps the identifiers of the invoices behind it.

    Show it: Read the rows
  3. Group by week

    Keep the same filters and change only the grouping dimension.

    Show it: Group by week
  4. Open the invoice

    Read quantity and unit net for FCT-2026-00415.

    Show it: Open the invoice

A question, written as steps you can read

Read the source, filters and grouping before you use the result.

Source
Issued invoices
Filter
2026-10 · All companies · All departments · All products
Summarise
SUM(quantity * unitNet) by product line
Sort
Product line · ascending

Query text

Source: issued-invoices
Filter: period=2026-10; company=all; department=all; productLine=all
Summarise: SUM(quantity * unitNet) BY productLine
Sort: productLine asc

2 of 2 rows

Question
Product lineNet revenue
FoodRON 142,063.00
HouseholdRON 60,735.50

How fresh each source is

Last sync is the time of the last successful read, so a failed source shows an older time than the others. Compare these times before reconciling results from different sources.

Last sync
SourceLast syncState
ERP2026-11-22 06:00 UTCFresh
CRM2026-11-20 06:00 UTCFailed · The source connection could not be reached.
Treasury2026-11-22 02:00 UTCRunning
e‑Factura Gateway2026-11-22 05:30 UTCFresh

From the source systems to Monday’s e-mail

The Monday report passes through sync, the metric definition and the saved question before it is e-mailed. If a source fails, the steps already done stay valid and the retry starts at the connection.

Step 1 of 6

  1. Source systems, your software
  2. Sync, your software
  3. Metric, your software
  4. Question, your software
  5. Dashboard, your software
  6. Scheduled e-mail, outside the company

The Monday report

  1. Source systems, your software

    Read the source records

    ERP, CRM, Treasury and e‑Factura Gateway supply the records for the report.

    Source revision
    Revision 1
  2. Sync, your software

    Refresh the dataset

    Keep the successful source revision with the invoice lines.

    Source revision
    Revision 1
    Dataset revision
    Revision 1
  3. Metric, your software

    Apply the definition

    Sum issued invoice lines without tax or drafts.

    Source revision
    Revision 1
    Dataset revision
    Revision 1
    Net revenue
    RON 202,798.50
  4. Question, your software

    Run the saved question

    Group the permitted rows by product line for October.

    Source revision
    Revision 1
    Dataset revision
    Revision 1
    Net revenue
    RON 202,798.50
    Result rows
    Food RON 142,063.00: FCT-2026-00415, BRR-2026-00127 · Household RON 60,735.50: FCT-2026-00436
  5. Dashboard, your software

    Update the dashboard

    Use the same period and company filters for every figure.

    Source revision
    Revision 1
    Dataset revision
    Revision 1
    Net revenue
    RON 202,798.50
    Result rows
    Food RON 142,063.00: FCT-2026-00415, BRR-2026-00127 · Household RON 60,735.50: FCT-2026-00436
    Dashboard
    RON 202,798.50 · +5.7% · RON 72,063.00
  6. Scheduled e-mail, outside the company

    Deliver the Monday report

    The management schedule delivers the completed result at 08:00.

    Source revision
    Revision 1
    Dataset revision
    Revision 1
    Net revenue
    RON 202,798.50
    Result rows
    Food RON 142,063.00: FCT-2026-00415, BRR-2026-00127 · Household RON 60,735.50: FCT-2026-00436
    Dashboard
    RON 202,798.50 · +5.7% · RON 72,063.00
    Delivery
    2026-11-16 06:00 UTC · Management

A source fails to refresh

  1. Source systems, your software

    Read the source records

    ERP, CRM, Treasury and e‑Factura Gateway supply the records for the report.

    Source revision
    Revision 1
  2. Sync, your software

    Keep the last result

    The source connection could not be reached.

    Source revision
    Revision 1
    Dataset revision
    Revision 1 retained
    Reason
    source_unavailable
  3. Sync, your software

    Retry the same source

    A later successful connection updates the source revision without changing the metric definition.

    Source revision
    Revision 2
    Dataset revision
    Revision 2
  4. Metric, your software

    Apply the definition

    Sum issued invoice lines without tax or drafts.

    Source revision
    Revision 2
    Dataset revision
    Revision 2
    Net revenue
    RON 202,798.50
  5. Question, your software

    Run the saved question

    Group the permitted rows by product line for October.

    Source revision
    Revision 2
    Dataset revision
    Revision 2
    Net revenue
    RON 202,798.50
    Result rows
    Food RON 142,063.00: FCT-2026-00415, BRR-2026-00127 · Household RON 60,735.50: FCT-2026-00436
  6. Dashboard, your software

    Update the dashboard

    Use the same period and company filters for every figure.

    Source revision
    Revision 2
    Dataset revision
    Revision 2
    Net revenue
    RON 202,798.50
    Result rows
    Food RON 142,063.00: FCT-2026-00415, BRR-2026-00127 · Household RON 60,735.50: FCT-2026-00436
    Dashboard
    RON 202,798.50 · +5.7% · RON 72,063.00
  7. Scheduled e-mail, outside the company

    Deliver the Monday report

    The management schedule delivers the completed result at 08:00.

    Source revision
    Revision 2
    Dataset revision
    Revision 2
    Net revenue
    RON 202,798.50
    Result rows
    Food RON 142,063.00: FCT-2026-00415, BRR-2026-00127 · Household RON 60,735.50: FCT-2026-00436
    Dashboard
    RON 202,798.50 · +5.7% · RON 72,063.00
    Delivery
    2026-11-16 06:00 UTC · Management

What each step writes

The Monday report
StepRecord created or changed
1 Read the source recordsSource revision
2 Refresh the datasetDataset revision
3 Apply the definitionNet revenue
4 Run the saved questionResult rows and invoice identifiers
5 Update the dashboardDashboard result
6 Deliver the Monday reportDelivery time and recipients
A source fails to refresh
StepRecord created or changed
1 Read the source recordsSource revision
2 Keep the last resultFailure reason; previous revision retained
3 Retry the same sourceSource and dataset revision
4 Apply the definitionNet revenue
5 Run the saved questionResult rows and invoice identifiers
6 Update the dashboardDashboard result
7 Deliver the Monday reportDelivery time and recipients

Run a saved question from your code

Send the saved question, the revision you read and explicit filters. The 202 response only accepts the request: read the operation until it completes, then read the run for the rows below.

curl

curl -X POST "$RDC_BASE_URL/bi/v1/questions/revenue-by-product/runs" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "41800000-0000-4000-8000-000000000001",
  "expectedRevision": 1,
  "runId": "41800000-0000-4000-8000-000000000002",
  "filters": {
    "period": "2026-10",
    "companyId": null,
    "department": null
  }
}'

Response202 Accepted

{
  "operationId": "41800000-0000-4000-8000-000000000001",
  "status": "accepted",
  "aggregateRevision": 1
}
Result of the run: first rows returned
Product lineNet revenueIssued invoices
FoodRON 142,063.00FCT-2026-00415, BRR-2026-00127
HouseholdRON 60,735.50FCT-2026-00436

Questions about figures and definitions

What is counted as net revenue?

Issued invoice lines contribute quantity multiplied by unit net. Tax and draft invoices are excluded.

Why can two people see different totals?

Company permissions restrict the rows before the question runs. Period and department filters then apply to that permitted set.

Can a chart explain its total?

Open a product line to read its contributing invoices. Group those rows by week without changing the definition.

What happens when a source fails?

The last successful result stays visible with its refresh time and the failure reason. A failed refresh does not replace it with zero.

Can another application use the same question?

Run the saved question with explicit filters through the API. Read the completed operation before retrieving the result rows.

Proposal for BI

Tell us which figures you reconcile, where their records live and who needs the Monday report.

Request a proposal