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
- The report starts from the issued invoices of 2026-10.
- Net revenue adds quantity × unit net: FCT-2026-00415 and FCT-2026-00436 give RON 119,455.50.
- BRR-2026-00127 brings it to RON 202,798.50, without tax.
- The draft FCT-2026-00456 is left out: only issued invoices count.
- Revenue by product and the Management dashboard read the same definition: RON 202,798.50 in both.
- CRM cannot be reached when the figure is refreshed. The last result stays and the figure does not change.
- On Monday at 08:00 the same figure goes to management by e-mail.
- 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.
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
Show data as a table
| Period | Revenue |
|---|---|
| Jul | 169,050.5 |
| Aug | 182,548 |
| Sept | 191,902.5 |
| Oct | 202,798.5 |
| Target | 220,000 |
| Metric | 2026-10 | Previous period | Change |
|---|---|---|---|
| Net revenue | RON 202,798.50 | RON 191,902.50 | RON 10,896.00 |
Question
Question
- Source
- Issued invoices
- Filter
- 2026-10 · All companies · All departments · All products
- Summarise
SUM(quantity * unitNet)by product line- Sort
- Product line · ascending
| Product line | Net revenue | Actions |
|---|---|---|
| Food | RON 142,063.00 | |
| Household | RON 60,735.50 |
Press Enter to open the record.
Query text
Source: issued-invoices Filter: period=2026-10; company=all; department=all; productLine=all Summarise: SUM(quantity * unitNet) BY productLine Sort: productLine asc
Metric
Net revenue
Net total of issued invoice lines in the selected period, excluding tax and drafts.
- Source
- Issued invoices
- Filters
- 2026-10 · All companies · All departments
- Formula
SUM(quantity * unitNet)- Dimensions
- Month · Week · Product line · Department
- Owner
- Ana Rusu
- Last change
- 2026-11-16 09:00 UTC
- Used by
- Revenue by product · Management dashboard
- Lineage
- Issued invoices
- Net revenue
- Question
- Dashboard
- Schedule
- Mondays at 08:00 · Europe/Bucharest · Management
- Last delivery
- 2026-11-16 06:00 UTC · Delivered
- Alert
- Net revenue below RON 190,000.00
- ERP connection
- 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.
-
Choose a product line
Open the food bar to see the invoice lines that make its total.
Show it: Choose a product line -
Read the rows
Each amount keeps the identifiers of the invoices behind it.
Show it: Read the rows -
Group by week
Keep the same filters and change only the grouping dimension.
Show it: Group by week -
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
| Product line | Net revenue |
|---|---|
| Food | RON 142,063.00 |
| Household | RON 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.
| Source | Last sync | State |
|---|---|---|
| ERP | 2026-11-22 06:00 UTC | Fresh |
| CRM | 2026-11-20 06:00 UTC | Failed · The source connection could not be reached. |
| Treasury | 2026-11-22 02:00 UTC | Running |
| e‑Factura Gateway | 2026-11-22 05:30 UTC | Fresh |
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.
- Source systems, your software
- Sync, your software
- Metric, your software
- Question, your software
- Dashboard, your software
- Scheduled e-mail, outside the company
The Monday report
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
Sync, your software
Refresh the dataset
Keep the successful source revision with the invoice lines.
- Source revision
- Revision 1
- Dataset revision
- Revision 1
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
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
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
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
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
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
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
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
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
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
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
| Step | Record created or changed |
|---|---|
| 1 Read the source records | Source revision |
| 2 Refresh the dataset | Dataset revision |
| 3 Apply the definition | Net revenue |
| 4 Run the saved question | Result rows and invoice identifiers |
| 5 Update the dashboard | Dashboard result |
| 6 Deliver the Monday report | Delivery time and recipients |
| Step | Record created or changed |
|---|---|
| 1 Read the source records | Source revision |
| 2 Keep the last result | Failure reason; previous revision retained |
| 3 Retry the same source | Source and dataset revision |
| 4 Apply the definition | Net revenue |
| 5 Run the saved question | Result rows and invoice identifiers |
| 6 Update the dashboard | Dashboard result |
| 7 Deliver the Monday report | Delivery 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 -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
}
}'const response = await fetch(`${process.env.RDC_BASE_URL}/bi/v1/questions/revenue-by-product/runs`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "41800000-0000-4000-8000-000000000001",
"expectedRevision": 1,
"runId": "41800000-0000-4000-8000-000000000002",
"filters": {
"period": "2026-10",
"companyId": null,
"department": null
}
}),
});
const result = await response.json();import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/bi/v1/questions/revenue-by-product/runs',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '41800000-0000-4000-8000-000000000001',
'expectedRevision': 1,
'runId': '41800000-0000-4000-8000-000000000002',
'filters': {
'period': '2026-10',
'companyId': None,
'department': None,
},
},
)
result = response.json()<?php
$body = <<<'JSON'
{
"operationId": "41800000-0000-4000-8000-000000000001",
"expectedRevision": 1,
"runId": "41800000-0000-4000-8000-000000000002",
"filters": {
"period": "2026-10",
"companyId": null,
"department": null
}
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/bi/v1/questions/revenue-by-product/runs');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/bi/v1/questions/revenue-by-product/runs");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "41800000-0000-4000-8000-000000000001",
"expectedRevision": 1,
"runId": "41800000-0000-4000-8000-000000000002",
"filters": {
"period": "2026-10",
"companyId": null,
"department": null
}
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response202 Accepted
{
"operationId": "41800000-0000-4000-8000-000000000001",
"status": "accepted",
"aggregateRevision": 1
} | Product line | Net revenue | Issued invoices |
|---|---|---|
| Food | RON 142,063.00 | FCT-2026-00415, BRR-2026-00127 |
| Household | RON 60,735.50 | FCT-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.