farseer-cli 1.20.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commands/dimensions.js +20 -4
- package/dist/commands/dimensions.js.map +1 -1
- package/dist/commands/sheets.js +200 -15
- package/dist/commands/sheets.js.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/tools/modelTools.js +17 -6
- package/dist/mcp/tools/modelTools.js.map +1 -1
- package/dist/operations/model.js +6 -2
- package/dist/operations/model.js.map +1 -1
- package/dist/operations/sheets.js +368 -30
- package/dist/operations/sheets.js.map +1 -1
- package/dist/pipeline/generated-reference.json +10 -10
- package/dist/utils/dimensionMembers.js +54 -0
- package/dist/utils/dimensionMembers.js.map +6 -0
- package/dist/utils/entityResolver.js +2 -0
- package/dist/utils/entityResolver.js.map +1 -1
- package/docs/cli-guide.md +17 -3
- package/docs/pipeline-reference.md +126 -18
- package/package.json +2 -2
- package/skills/farseer-dashboards/SKILL.md +222 -20
- package/skills/farseer-dashboards/cards.md +59 -0
- package/skills/farseer-dashboards/charts.md +245 -0
- package/skills/farseer-dashboards/check.md +91 -0
- package/skills/farseer-dashboards/measures.md +88 -0
- package/skills/farseer-dashboards/page.md +99 -0
- package/skills/farseer-dashboards/reporting-period.md +82 -0
- package/skills/farseer-dashboards/standard-set.md +182 -0
- package/skills/farseer-dashboards/tables.md +174 -0
- package/skills/pipeline-authoring/SKILL.md +3 -3
- package/skills/pipeline-authoring/practices.md +2 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# The reporting period and the month-end close
|
|
2
|
+
|
|
3
|
+
How a page knows which year, forecast and months it shows, so that nobody retags a tile at a close or a new year. Read it for any page that compares the current year with a plan or follows the close; a single chart of fixed periods can name its members directly.
|
|
4
|
+
|
|
5
|
+
## 1. The period comes from a filter
|
|
6
|
+
|
|
7
|
+
- **Pages of flows** (P&L, revenue, costs, cash flow) carry a single-select dashboard filter on the system table `Year to date`, defaulting to the last closed month (M8 after the August close), placed last in the filter bar with `displayColumns: []` ([`page.md`](page.md) §1). A column is then just `[Versions=Actual, Reporting period=Current year]`: the filter makes it January to the picked month, and the PY column gets the same months.
|
|
8
|
+
- **Pages of states** (balance sheet, headcount) filter one month of `Months` instead: a year-to-date window would read as a sum. Their cost tiles read that month ("Personnel costs in the month").
|
|
9
|
+
- **No month on any column, card or table**, and no month (MTD) columns: a window can't give one month. The month is in the monthly charts.
|
|
10
|
+
- **Balances need no month either.** With rollup `Closing State` a balance shows the last month of the window (opening cash `Beginning State` the first). Check the rollup of every balance before you leave its month off.
|
|
11
|
+
- **Monthly charts always show the whole year** and ignore the filters; sparklines follow them ([`cards.md`](cards.md) §2).
|
|
12
|
+
- **Always default to the last closed month.** Under an open month AC stops at the close while PL runs on, so the variance is wrong and balances are empty.
|
|
13
|
+
|
|
14
|
+
## 2. Last closed month and the period flags
|
|
15
|
+
|
|
16
|
+
The controller closes a month by hand, on every model: the member `Last closed month` of the table `Reporting period` points at a member of `Year to date`, and is moved on the Reporting setup page at the close.
|
|
17
|
+
|
|
18
|
+
- **Why by hand.** Never derive the close from the data: early actuals, accruals booked before the close, a part load, seeded zeros or stray rows in a later month all close a month nobody closed. A forgotten close leaves the month on FC, which is safe. Closing a month before its actuals land is not: ΔPL shows the whole plan as the variance.
|
|
19
|
+
- **Why a member and not an input of 1s per month.** Models lock closed periods, the lock covers a variable without a version dimension whole, and a lock rule can't exempt one variable. A member formula is not a cell, so locks don't touch it.
|
|
20
|
+
- An input in the model replaces Last closed month only when it records the controller's close per month and is current. A forecast-setup flag, a version marker or a stale date is evidence for the close, not the close.
|
|
21
|
+
|
|
22
|
+
The flags are stored variables on `Years, Months`, read with a condition (`if(hasValue(...))`), never multiplied:
|
|
23
|
+
|
|
24
|
+
| Flag | Formula |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `Period anchor` | `sum(<PNL>) * 0 + 1`, on a stored input variable, never a measure |
|
|
27
|
+
| `Period is closed` | `if(hasValue(sum("Period anchor", "Reporting period">"Last closed month", "Reporting period">"Current year")), "Period anchor", if(hasValue(sum("Period anchor", "Reporting period">"Prior year")), "Period anchor"))` |
|
|
28
|
+
| `Period is open` | `if(not(hasValue("Period is closed")), "Period anchor")` |
|
|
29
|
+
| `Period is last closed or open` | `if(not(hasValue(delay("Period is closed", -1))), "Period anchor")` |
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
farseer variables create --readonly --folder-path "Variables/Dashboards" --name "Period is open" \
|
|
33
|
+
--dimensions "Years,Months" --rollup Sum --formula 'if(not(hasValue("Period is closed")), "Period anchor")'
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- **A flag needs an anchor.** A formula creates cells only from references in value position: `if(not(hasValue(actual)), 1)` stores nothing in an open month, and neither does `1 - closed`.
|
|
37
|
+
- `Period is closed` covers the months of Current year up to Last closed month and all of Prior year. Current year is the year of the last closed month, so December closes in January by pointing Last closed month at M12, and Current year moves on when January closes.
|
|
38
|
+
- Check the stored flags: 1 on the last closed month, empty on the first open one, and the reverse for `Period is open`.
|
|
39
|
+
|
|
40
|
+
## 3. Relative reporting members
|
|
41
|
+
|
|
42
|
+
A table `Reporting period` with compound members, each pointing at one real member: `Current year` (Y2026), `Prior year` (Y2025), `Current forecast` (the forecast version), `Current budget` (the approved budget, so a new budget is a rollover too) and `Last closed month`. Lines and measures name these instead of the year and the version; at a rollover one member changes and every page follows. Two of them on one line or in one `sum()` intersect (Current year AND Current forecast), which is what a forecast column needs. Column names stay neutral (AC, PL, FC, PY), never "FC 8+4", or they lie after the rollover.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
farseer dimensions create "Reporting period" --folder-path "Dimensions" --json
|
|
46
|
+
farseer dimensions create-member --table "Reporting period" --name "Current year" --compound --formula '$<gid of Y2026>' --json
|
|
47
|
+
farseer dimensions create-member --table "Reporting period" --name "Last closed month" --compound --formula '$<gid of Year to date>>$<gid of M8>' --json
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- A member formula names its target as `$<member gid>`, or with its table as `$<table gid>>$<member gid>` (`$33` and `$28>$33` are the same M8 of `Year to date`). Member gids come from `farseer dimensions members TABLE --json`.
|
|
51
|
+
- Create the table under the Dimensions folder (the Dashboards folder refuses tables), before the measures that read it.
|
|
52
|
+
- **A Reporting period table already in the model** (an earlier build) is reused, never a second one. Keep its names and language, add a missing member in the language of the others.
|
|
53
|
+
- Name the table and its members in the dashboards' language (`Izvještajno razdoblje`, `Zadnji zatvoreni mjesec`): the controller edits them on the setup page.
|
|
54
|
+
- The CLI creates and deletes members but doesn't change a member's formula. The user moves a member on the Reporting setup page (§4); a build creates each member with the right target.
|
|
55
|
+
|
|
56
|
+
## 4. The Reporting setup page
|
|
57
|
+
|
|
58
|
+
One dashboard per model, "Reporting setup" in the model's language, last in the folder. Everything a close or a rollover changes, except the filter default, is on this one page:
|
|
59
|
+
|
|
60
|
+
- the heading "REPORTING SETUP / What does the report show, and which months are closed?";
|
|
61
|
+
- under it, w36 h4, the month-end steps in a text tile (§5);
|
|
62
|
+
- the setup tile, w28, h9 for up to three members and one row more per member from the fourth on (the sheet toolbar takes about five rows, lower and the lines hide behind it):
|
|
63
|
+
|
|
64
|
+
| Line | Payload |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| row `Reporting period` | generated from the table, no variable |
|
|
67
|
+
| column `Points to` | `{"axis": "COLUMN", "type": "DIMENSION_LOOKUP", "name": "Points to", "dimensionLookupOptions": {"tableGid": REPORTING_PERIOD_GID, "tableColumnIds": [3], "relation": false, "multiselect": false, "filterMembers": true}}` |
|
|
68
|
+
|
|
69
|
+
The tile's visualization is `{"type": "SHEET"}` and it ignores the dashboard filters. `3` is the FORMULA column of every dimension table. `farseer sheets set-columns` replaces the sheet's columns whole, the `Points to` lookup column included, so read them first (`farseer sheets show SHEET --json | jq .columns > columns.json`) and send them back changed with `farseer sheets set-columns SHEET --input columns.json -y` (without `-y` it only previews and writes nothing): `standard: ["name"]` and the timeline off (`intervalToolbar.enabled: false`), or timeline month columns appear. Read the setup tile back: `sheets data` gives each member's formula (`$5`, `$28>$33`); on screen `Points to` shows the target by name. Widths with `farseer sheets update`, as `{"display": {"keyedColumnConfig": {"name": {"width": 152}, "<Points to>": {"width": 102}}}}`: the name column fits the longest member (132 px at least), Points to the longest target name (87 px at least). Footnote: "Change what a member points to in its Points to cell. Every dashboard follows." The cell shows the target by name and is where the controller changes it.
|
|
70
|
+
|
|
71
|
+
## 5. Close checklist
|
|
72
|
+
|
|
73
|
+
The text of the steps tile, and what you tell the user:
|
|
74
|
+
|
|
75
|
+
1. Load the month's actuals and the new forecast. Check the actuals are complete: ΔPL on a closed month without actuals is minus the whole plan.
|
|
76
|
+
2. On Reporting setup, point Last closed month at the new month. Every chart moves its cut-off.
|
|
77
|
+
3. Move the `Year to date` filter (and the month filter on pages of states) to the new month on every dashboard and save it for everyone.
|
|
78
|
+
4. A new forecast: point Current forecast at it.
|
|
79
|
+
5. Read the messages: they carry no numbers, so only a direction that flipped needs a rewrite.
|
|
80
|
+
6. Once a year, when January closes: point Current year and Prior year at the new years.
|
|
81
|
+
|
|
82
|
+
Rows written out member by member in rank order keep the order they were created in: re-create them when the ranking changes ([`charts.md`](charts.md) §2).
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# The standard set
|
|
2
|
+
|
|
3
|
+
One set of pages every company gets, each page answering one question. The same set everywhere means anyone who opens a model's dashboards knows where they are. This part says what goes on each page; the blocks say how to build it.
|
|
4
|
+
|
|
5
|
+
**Which pages.** Every set has the Management report (the cover, [`page.md`](page.md) §6), Executive summary, Budget vs Actual and Reporting setup ([`reporting-period.md`](reporting-period.md) §4). The others follow what the model plans: Revenue with revenue planning, Headcount with workforce planning, OpEx with OpEx planning, Cash flow with cash flow, Balance sheet with a balance sheet. Actual vs Prior year (§2b) is an option to recommend. Build them in this order, the cover first and empty, Reporting setup last: the folder lists dashboards in the order they were created, and the CLI can't reorder them. When the pages are built one per turn, create the empty cover with the first page and tell the user it fills last.
|
|
6
|
+
|
|
7
|
+
**Scenarios.** AC is the actuals version, PL the approved budget, FC the current forecast, PY the actuals of the prior year (never a copied "PY" version unless the model has one). With two plan versions, recommend the approved one with the evidence: the version the existing dashboards read, the one the period lock froze, the one the forecast tracks. No filter on the plan version: FC has its own column, so nobody swaps the plan on the page.
|
|
8
|
+
|
|
9
|
+
**Periods** come from the `Year to date` filter, a month filter on pages of states, and the relative reporting members ([`reporting-period.md`](reporting-period.md)).
|
|
10
|
+
|
|
11
|
+
**A page is named after what it shows.** A page that stands in for one the model can't feed ("Cash and working capital" instead of Cash flow) takes a name for its content.
|
|
12
|
+
|
|
13
|
+
Contents: §0 when the model doesn't carry it, §1 Executive summary, §2 Budget vs Actual, §2b Actual vs Prior year, §3 Cash flow, §4 Revenue, §5 Headcount, §6 OpEx, §7 Balance sheet.
|
|
14
|
+
|
|
15
|
+
## 0. When the model doesn't carry it
|
|
16
|
+
|
|
17
|
+
A real model rarely matches the set one to one. Before dropping anything, look for what the model carries that does the same job, and say in the plan what you substitute and what you drop. A substitute answers the same question, uses only data the model carries, and still adds up under one value of every filter.
|
|
18
|
+
|
|
19
|
+
| The set asks | The model has | Do |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| an Entity filter | one entity | no Entity filter |
|
|
22
|
+
| an Entity or Department filter | another dimension that reaches revenue and cost, directly or through a link | use it; check one member still adds up. Where it stops reaching, filter only pages whose statement ends above that line |
|
|
23
|
+
| a Currency filter | a currency dimension | single-select, default the reporting currency; tiles that ignore the filters pin it |
|
|
24
|
+
| region, segment, channel | a customer revenue cube that doesn't tie to P&L revenue | break revenue down by what the P&L revenue carries; name the gap |
|
|
25
|
+
| one cube per line | a plain and a "rolling" variant | the one the model's own subtotals read; compare every version |
|
|
26
|
+
| AC&FC series | a forecast version that holds only its forecast months | "AC&FC" measures on lines without a version ([`measures.md`](measures.md) §2) |
|
|
27
|
+
| a breakdown by department | a plan on one member per group | filter and break down at the group level |
|
|
28
|
+
| cash and working-capital cards against PL | no plan balance sheet | compare with PY and say so in the card text |
|
|
29
|
+
| DPO, CCC | trade payables that change sign between months | drop them |
|
|
30
|
+
| DSO, DIO, DPO | receivables, inventory and payables, but no day counts | build them: the month-end balance over the last three months' flow, times 90; revenue for DSO, COGS for DIO and DPO. Balances usually carry VAT and flows don't: footnote it |
|
|
31
|
+
| DIO | a service business with no inventory | no DIO; CCC = DSO − DPO |
|
|
32
|
+
| a Balance sheet page | a trial balance only (turnovers, no opening balances, no link from accounts to balance-sheet lines) | not built |
|
|
33
|
+
| a Balance sheet page | a balance sheet that doesn't balance | build what holds (cash, receivables, inventories), no statement. When the cash flow doesn't reconcile either, one page "Cash and working capital" |
|
|
34
|
+
| the cash flow tiles | a cash flow that doesn't reconcile to balance-sheet cash | drop them, keep closing cash from the balance sheet and the working-capital cards |
|
|
35
|
+
| Cash flow | no cash, balance sheet, receivables or payables at all | no page; the cash cards on the Executive summary give way to industry cards |
|
|
36
|
+
| the full-year FC column | a forecast with actuals only to an earlier month | show it as submitted; the footnote names the months still forecast in it |
|
|
37
|
+
| the full-year FC column | an incomplete forecast that reads several times the budget | drop FC for those lines and report it; a footnote doesn't fix a wrong number |
|
|
38
|
+
| FC as a series | no forecast, only a second plan | no FC; a second plan is not a forecast |
|
|
39
|
+
| FC as a series | a forecast version that holds actuals in the closed months | use it as the AC&FC series; check its closed months equal AC first |
|
|
40
|
+
| PL on the statement | a plan for some lines only | AC on every line, PL and ΔPL on the planned lines, PL as a plain column, variances as bars ([`tables.md`](tables.md) §1) |
|
|
41
|
+
| Budget vs Actual | a plan only on a few totals | those totals against PL, the lines against PY; title line 3 says so |
|
|
42
|
+
| Budget vs Actual | no plan with data at all | not built; the other pages compare with PY |
|
|
43
|
+
| a monthly chart against PL | a plan that leaves out part of the line | the chart against PY; a chart of the subtotal the plan holds may sit next to it |
|
|
44
|
+
| PY | no prior-year actuals, or one annual posting | no PY columns, series or LTM |
|
|
45
|
+
| PY for the whole year | a December year-end closing entry | PY year to date only, no PY on monthly charts |
|
|
46
|
+
| a subtotal in the model | one that doesn't add up from its lines | build the subtotals from the lines and say so |
|
|
47
|
+
| additive totals | a dimension holding parallel views (financial, management) | pin the reporting view in every measure |
|
|
48
|
+
| a ΔPL % column | lines with a near-zero plan (change in working capital) | no ΔPL % in that statement |
|
|
49
|
+
| a member in a % view | a near-zero plan (eliminations, a holding) | leave it out of the % view and footnote it |
|
|
50
|
+
| calendar months | a fiscal year starting in another month | label the months and the year as the model does |
|
|
51
|
+
| Headcount | no FTE | the page becomes "Personnel costs": cards Personnel costs YTD and % of net sales, personnel costs by month, by cost line, by department |
|
|
52
|
+
| a minimum cash line | no threshold | no line, and no "minimum" in the name |
|
|
53
|
+
| units | a model in hundreds of millions, per-unit KPIs | set the unit per card |
|
|
54
|
+
|
|
55
|
+
A case the table doesn't cover passes the same test. A view no page asks for (market share, launch tracking) is not part of the set: propose it as an extra dashboard.
|
|
56
|
+
|
|
57
|
+
**Industry KPI cards.** On top of the standard cards, a page may carry the numbers the company's management steers by: volumes such as units sold, active customers or sites, prices, and churn. Volumes and prices go on Revenue, unit costs on Headcount and OpEx, capital intensity on Cash flow. One row of at most five per page, under its own heading ("OPERATIONS"), or one or two in the standard card row when it has room. Only KPIs the model holds for AC and PL (or PY) and whose values move; a stock rolls up `Closing State`, a ratio is one sum over another, never an average of monthly ratios. Name each candidate with its formula, unit and which way is good in the plan.
|
|
58
|
+
|
|
59
|
+
**Shared measures**, built once and reused across the pages: the subtotals (gross profit, EBITDA, EBIT, net profit) when they aren't variables yet, the margins, the closed and open month measures per charted KPI, net debt and leverage, the balance sheet subtotals and ratios, OpEx % of net sales, the day counts, the shares of total (one denominator per breakdown).
|
|
60
|
+
|
|
61
|
+
## 1. Executive summary
|
|
62
|
+
|
|
63
|
+
How did the year to date go against budget and last year? Pages of flows, `Year to date` filter, Entity and Currency where the model carries them.
|
|
64
|
+
|
|
65
|
+
| Tile | Block |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| cards: Net sales, EBITDA margin %, Net margin %, Cash at month end, Net debt / EBITDA LTM | [`cards.md`](cards.md) |
|
|
68
|
+
| net sales by month and EBITDA by month, side by side, each on its own scale | [`charts.md`](charts.md) §1 |
|
|
69
|
+
| "YEAR TO DATE": summary P&L, 10 to 15 lines to net profit, AC, PL, ΔPL, ΔPL %, PY, ΔPY %; AC and PL as waterfalls | [`tables.md`](tables.md) §1 |
|
|
70
|
+
| margins, year to date | [`tables.md`](tables.md) §2 |
|
|
71
|
+
| "FULL YEAR": summary P&L, PL FY and FC FY as waterfalls, ΔPL, ΔPL % | [`tables.md`](tables.md) §1 |
|
|
72
|
+
|
|
73
|
+
Title line 3: "2026 year to date AC, PL and PY, full year AC&FC". Checks: AC year to date in the statement equals the months to the close in the charts; the cards equal the statement where they overlap; the Entity filter changes every tile that follows the filters.
|
|
74
|
+
|
|
75
|
+
## 2. Budget vs Actual
|
|
76
|
+
|
|
77
|
+
Which lines and which departments drive the variance? `Year to date`, Department or cost centre, Entity on a group.
|
|
78
|
+
|
|
79
|
+
| Tile | Block |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| cards: Net sales, Gross profit, OpEx, EBITDA, year to date against PL | [`cards.md`](cards.md) |
|
|
82
|
+
| "P&L / Which lines miss the budget?": the whole P&L, revenue to net profit, collapsed to the summary and open to the accounts; AC, PL, ΔPL, ΔPL %, PY | [`tables.md`](tables.md) §1 |
|
|
83
|
+
| margins and the ratios the company's report reads | [`tables.md`](tables.md) §2 |
|
|
84
|
+
| "DEPARTMENTS / Which departments overspend?": OpEx by department, three tiles | [`charts.md`](charts.md) §2 |
|
|
85
|
+
|
|
86
|
+
- **The whole P&L, always**, even where the plan stops earlier: lines without a plan show AC and PY with ΔPL blank, and the footnote names them.
|
|
87
|
+
- **As deep as the company's own report**, often three or four levels, each expandable. Height: the collapsed rows plus the largest line opened one level, up to 12 child rows.
|
|
88
|
+
- Build the hierarchy from what the reporting variable itself carries: a member of a dimension it doesn't carry drops silently and the line repeats its parent.
|
|
89
|
+
- **The P&L by country or entity**, when the company's report shows it side by side: a page of its own with the statement in rows and the members in columns, AC year to date: one column line generated from the table (SKILL.md §3.1), so a new country shows up by itself, then the group total. No filter on that table: its members are the columns.
|
|
90
|
+
- **A subtotal the report decomposes into drivers** (net margin into revenue and cost drivers) gets a page of its own: a bridge table of the drivers ending on the subtotal as a total, and per segment a categorical comparison of the subtotal. The statement still doesn't open the subtotal.
|
|
91
|
+
|
|
92
|
+
Title line 3: "2026 year to date AC, PL and PY". Checks: the collapsed totals equal the Executive summary; every cost line over budget is red in both the table and the department tiles.
|
|
93
|
+
|
|
94
|
+
## 2b. Actual vs Prior year
|
|
95
|
+
|
|
96
|
+
Which lines and margins moved against last year? Recommend it when the company's own report reads the year against PY, or when there is no plan. Always its own page, never PY piled onto Budget vs Actual.
|
|
97
|
+
|
|
98
|
+
| Tile | Block |
|
|
99
|
+
| --- | --- |
|
|
100
|
+
| the Budget vs Actual cards against PY | [`cards.md`](cards.md) §1, against PY |
|
|
101
|
+
| the same statement: AC, PY, ΔPY, ΔPY %; AC and PY as waterfalls (PY in the PY tint), ΔPY as a variance waterfall, headers and axes in the PY notation | [`tables.md`](tables.md) §1 |
|
|
102
|
+
| margins against PY | [`tables.md`](tables.md) §2 |
|
|
103
|
+
| the lead subtotal and EBITDA by month against PY | [`charts.md`](charts.md) §1, against PY |
|
|
104
|
+
| OpEx by department against PY | [`charts.md`](charts.md) §2, ΔPY measures |
|
|
105
|
+
|
|
106
|
+
Check one ΔPY cell per tile against AC minus PY from the source: a ΔPY that shows the current year is the intersection trap ([`measures.md`](measures.md) §2).
|
|
107
|
+
|
|
108
|
+
## 3. Cash flow
|
|
109
|
+
|
|
110
|
+
Where did the cash go, and will it last? `Year to date`, Entity, Bank account and Currency where the model carries them. Only with a cash flow that reconciles to balance-sheet cash; otherwise §0.
|
|
111
|
+
|
|
112
|
+
| Tile | Block |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| "WORKING CAPITAL / Are we collecting and paying on time?": cards DSO, DIO, DPO, CCC at month end, `NEGATIVE`, sharing one scale | [`cards.md`](cards.md) |
|
|
115
|
+
| "CASH / Will it last the year?": cash over time and the cash bridge, side by side | [`charts.md`](charts.md) §4, [`tables.md`](tables.md) §3 |
|
|
116
|
+
| cash flow statement, year to date: opening cash, sections open to lines, net cash flow, closing cash; AC, PL as numbers, ΔPL as bars | [`tables.md`](tables.md) §1, no waterfalls |
|
|
117
|
+
| cash flow by month, AC&FC, full year | [`tables.md`](tables.md) §4 |
|
|
118
|
+
|
|
119
|
+
Title line 3: "2026 year to date AC and PL, month end, full year AC&FC". Checks: closing cash is the same in the chart, the bridge and the statement for the same month, and equals the balance sheet for every closed month.
|
|
120
|
+
|
|
121
|
+
## 4. Revenue
|
|
122
|
+
|
|
123
|
+
Which products, regions and channels are ahead of or behind budget, and how does the mix move? `Year to date` and the breakdowns the model carries. No card row; the table opens the page. Pick one breakdown per tile, not all four.
|
|
124
|
+
|
|
125
|
+
| Tile | Block |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| revenue by the main breakdown, hierarchical, year to date: PY, AC, PL as numbers, ΔPL as bars, ΔPL % as pins, % share | [`tables.md`](tables.md) §1, no waterfalls |
|
|
128
|
+
| AC against PL by region | [`charts.md`](charts.md) §2 |
|
|
129
|
+
| "MIX": the mix over the year, top three and Other, AC&FC | [`charts.md`](charts.md) §3 |
|
|
130
|
+
| "SEGMENTS": share by segment, year to date, ranked | the base tile of [`charts.md`](charts.md) §2 alone, one AC column on the share measure |
|
|
131
|
+
|
|
132
|
+
On a distributor with rebates and no region that ties to P&L revenue, the second tile is a gross-to-net table (list price, rebates, net). Title line 3: "2026 year to date AC, PL and PY, AC&FC by month". Checks: total revenue equals the Executive summary; the shares sum to 100 % unfiltered.
|
|
133
|
+
|
|
134
|
+
## 5. Headcount
|
|
135
|
+
|
|
136
|
+
Do we have the people we budgeted, and what do they cost? A page of states: a month filter, plus Department, Location and Employment type where they reach both FTE and personnel costs.
|
|
137
|
+
|
|
138
|
+
| Tile | Block |
|
|
139
|
+
| --- | --- |
|
|
140
|
+
| cards: FTE at month end, Personnel costs in the month | [`cards.md`](cards.md) |
|
|
141
|
+
| FTE by department, open to position: AC, PL as numbers, ΔFTE as neutral bars | [`tables.md`](tables.md) §1, no waterfalls |
|
|
142
|
+
| FTE by month, AC&FC and PL, with the ΔFTE tier | [`charts.md`](charts.md) §1 |
|
|
143
|
+
| FTE by location, base and ΔFTE | [`charts.md`](charts.md) §2 |
|
|
144
|
+
| personnel costs by department, three tiles | [`charts.md`](charts.md) §2 |
|
|
145
|
+
|
|
146
|
+
- FTE rolls up `Closing State`, never `Sum`: summed FTE is wrong by the month count.
|
|
147
|
+
- AC and PL FTE use one definition, month-end state or average in the month; name it on the card ("FTE, average in month").
|
|
148
|
+
- ΔFTE is neutral unless the company defines a direction. The FTE card colours its badge anyway.
|
|
149
|
+
|
|
150
|
+
Title line 3: "2026 month end AC and PL, AC&FC by month".
|
|
151
|
+
|
|
152
|
+
## 6. OpEx
|
|
153
|
+
|
|
154
|
+
Which costs and which cost centres are over budget? `Year to date`, Department, Cost centre, Entity on a group.
|
|
155
|
+
|
|
156
|
+
| Tile | Block |
|
|
157
|
+
| --- | --- |
|
|
158
|
+
| cards: OpEx, OpEx % of net sales | [`cards.md`](cards.md) |
|
|
159
|
+
| OpEx by month with the ΔPL and ΔPL % tiers, `NEGATIVE` | [`charts.md`](charts.md) §1 |
|
|
160
|
+
| OpEx by cost category over the year, AC&FC | [`charts.md`](charts.md) §3 |
|
|
161
|
+
| OpEx by cost category, open to accounts: AC, PL as numbers, ΔPL as bars, ΔPL % as pins, PY | [`tables.md`](tables.md) §1, no waterfalls |
|
|
162
|
+
| OpEx by cost centre, three tiles | [`charts.md`](charts.md) §2 |
|
|
163
|
+
|
|
164
|
+
The ratio's net sales come from a variable without Department and Cost centre. When the model has a category named "Other", show every category, or the rest row reads "Other" twice. Checks: the table total equals Budget vs Actual's OpEx; every category over budget is red.
|
|
165
|
+
|
|
166
|
+
## 7. Balance sheet
|
|
167
|
+
|
|
168
|
+
Where do assets and funding differ from the plan, and how are the assets financed? A page of states: a month filter, Entity on a group.
|
|
169
|
+
|
|
170
|
+
| Tile | Block |
|
|
171
|
+
| --- | --- |
|
|
172
|
+
| cards: Total assets, Equity ratio %, Current ratio, Net working capital, Net debt, month end | [`cards.md`](cards.md) |
|
|
173
|
+
| the balance sheet: AC, PL, ΔPL, ΔPL %, PY, ΔPY, then the check row | [`tables.md`](tables.md) §5 |
|
|
174
|
+
| vertical analysis, % of total assets, w18 | [`tables.md`](tables.md) §5 |
|
|
175
|
+
| assets, and equity and liabilities, 100 % | [`charts.md`](charts.md) §5 |
|
|
176
|
+
| net working capital and net debt by month with the ΔPL tier, neutral, or `NEGATIVE` when the company's report reads them lower-is-better | [`charts.md`](charts.md) §1 |
|
|
177
|
+
|
|
178
|
+
- The balance sheet must close: |total assets − equity and liabilities| under half a display unit on the shown month and its PY month for AC. If not, stop and say so.
|
|
179
|
+
- On a flat balance sheet each subtotal is a measure over its lines, and the vertical analysis needs one "% of total assets" measure per subtotal next to a generic line measure over a total without the line dimension.
|
|
180
|
+
- Net working capital = trade receivables + inventories − trade payables, unless the model's own definition differs; then the model's wins on Actual.
|
|
181
|
+
|
|
182
|
+
Title line 3: "2026 month end AC, PL and PY, AC&FC by month". Checks: net debt and NWC equal the Cash flow and Executive summary figures for the same month; the vertical analysis reads 100 %.
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Tables
|
|
2
|
+
|
|
3
|
+
Statements, margins, the cash bridge and tables of months. Keys are written `<line name>` (SKILL.md §3.2): in a table a row key is `<line>` and a child `<parent>_<id of child>`, the child's line id only, without the `-0` that `sheets data` prints. Colours are the Acme ones. Height: [`page.md`](page.md) §2.
|
|
4
|
+
|
|
5
|
+
Contents: §1 a statement, §2 margins and ratios, §3 the cash bridge, §4 tables of months, §5 the balance sheet, §6 column widths, §7 coloured numbers.
|
|
6
|
+
|
|
7
|
+
## 1. A statement
|
|
8
|
+
|
|
9
|
+
"Which lines of the P&L miss the budget?" A w36 table, AC and PL as waterfalls on one scale, ΔPL as a variance waterfall, ΔPL % as pins, PY as a number.
|
|
10
|
+
|
|
11
|
+
**Waterfalls only on a P&L statement and the cash bridge.** A waterfall column adds up the rows and restarts only at totals, so on departments, products, categories, FTE or the cash flow statement it draws a bridge that doesn't exist. A breakdown table shows AC and PL as numbers and ΔPL as bars, ΔPL % as pins (widths in §6):
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
"<AC>": {"type": "NONE", "header": {"borderBottomColor": "#3B2A47", "borderBottomStyle": "THICK"}, "spacing": {"gridGap": 6}},
|
|
15
|
+
"<ΔPL>": {"type": "BAR_CHART", "shareAxis": true, "shareAxisGroup": 2, "color": {"positive": "#0CB955", "negative": "#E21E09", "colorBy": "VALUE"},
|
|
16
|
+
"labels": {"labelFormat": {"type": "NUMBER", "unit": "THOUSANDS", "negatives": "EXPLICIT", "currency": "EUR", "decimals": 1, "formatString": "+#,##0.0,;-#,##0.0,;0.0,", "custom": false}},
|
|
17
|
+
"header": {"domainAxisColor": "#020810", "domainAxisBorderStyle": "DOUBLE"}, "spacing": {"columnWidth": 150, "gridGap": 6}}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
PL is a `NONE` column with the `DOUBLE` ink header, ΔPL % the pin column of the statement below. A variance of a balance (FTE) takes the neutral tint with `"colorBy": "STATIC"`.
|
|
21
|
+
|
|
22
|
+
**Rows** follow the user's own statement, in its order and with its names. A line reads the input variable at its line member; a subtotal reads its measure; the lines open to their accounts through a child line generated from the account table:
|
|
23
|
+
|
|
24
|
+
| Line | Variable | Members |
|
|
25
|
+
| --- | --- | --- |
|
|
26
|
+
| row `Net sales` | IMPORT_PnL | `P&L line=Net sales` |
|
|
27
|
+
| row `COGS` | IMPORT_PnL | `P&L line=COGS` |
|
|
28
|
+
| row `Gross profit` | Gross profit | |
|
|
29
|
+
| … | | |
|
|
30
|
+
| child `Net sales accounts` under `Net sales` | IMPORT_PnL | `P&L line=Net sales`, generated from `P&L account`: `--table "P&L account" --hierarchy-flatten --hierarchy-max-depth 1` on a flat account table; on a hierarchical one no flatten and `--hierarchy-max-depth 0`, so every level opens |
|
|
31
|
+
|
|
32
|
+
**Columns:**
|
|
33
|
+
|
|
34
|
+
| Line | Members or operands |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| `AC` | `Versions=Actual`, `Reporting period=Current year` |
|
|
37
|
+
| `PL` | plan version, `Reporting period=Current year` |
|
|
38
|
+
| `ΔPL` | COMPARISON `minus` (AC, PL) |
|
|
39
|
+
| `ΔPL %` | COMPARISON `difference in %` (AC, PL) |
|
|
40
|
+
| `PY` | `Versions=Actual`, `Reporting period=Prior year` |
|
|
41
|
+
|
|
42
|
+
Sheet: `{"rows": {"onlyWithData": true, "owdIncludeMeasures": true, "emitNoResultRows": true}}`, so empty accounts don't show.
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
{"type": "TABLE", "table": {
|
|
46
|
+
"columnVisualizationByKey": {
|
|
47
|
+
"": {"type": "NONE"},
|
|
48
|
+
"name": {"spacing": {"columnWidth": 170, "gridGap": 12}},
|
|
49
|
+
"<AC>": {"type": "WATERFALL_CHART", "labels": {}, "shareAxis": true, "shareAxisGroup": 1,
|
|
50
|
+
"color": {"solid": "#3B2A47", "positive": "#3B2A47", "negative": "#5A4868", "neutral": "#3B2A47", "colorBy": "TREND", "colorTotals": true, "pattern": "SOLID"},
|
|
51
|
+
"header": {"borderBottomColor": "#3B2A47", "borderBottomStyle": "THICK"}, "spacing": {"columnWidth": 90, "gridGap": 6}},
|
|
52
|
+
"<PL>": {"type": "WATERFALL_CHART", "labels": {}, "shareAxis": true, "shareAxisGroup": 1,
|
|
53
|
+
"color": {"solid": "#3B2A47", "positive": "#3B2A47", "negative": "#3B2A47", "neutral": "#3B2A47", "border": "#3B2A47", "borderStyle": "THIN", "colorBy": "TREND", "colorTotals": true, "pattern": "NONE"},
|
|
54
|
+
"header": {"borderBottomColor": "#020810", "borderBottomStyle": "DOUBLE"}, "spacing": {"columnWidth": 90, "gridGap": 16}},
|
|
55
|
+
"<ΔPL>": {"type": "WATERFALL_CHART", "shareAxis": true, "shareAxisGroup": 1,
|
|
56
|
+
"color": {"positive": "#0CB955", "negative": "#E21E09", "neutral": "#020810", "colorBy": "TREND", "colorTotals": true, "pattern": "SOLID"},
|
|
57
|
+
"labels": {"labelFormat": {"type": "NUMBER", "unit": "THOUSANDS", "negatives": "EXPLICIT", "currency": "EUR", "decimals": 1, "formatString": "+#,##0.0,;-#,##0.0,;0.0,", "custom": false}},
|
|
58
|
+
"header": {"domainAxisColor": "#020810", "domainAxisBorderStyle": "DOUBLE"}, "spacing": {"columnWidth": 70, "gridGap": 6}},
|
|
59
|
+
"<ΔPL %>": {"type": "PIN_CHART", "shareAxis": false, "groupOutliers": true, "groupOutliersRange": 1,
|
|
60
|
+
"color": {"positive": "#0CB955", "negative": "#E21E09", "colorBy": "VALUE"},
|
|
61
|
+
"labels": {"labelFormat": {"type": "PERCENTAGE", "unit": "ONES", "negatives": "EXPLICIT", "currency": "EUR", "decimals": 1, "formatString": "+#,##0.0%;-#,##0.0%;0.0%", "custom": false}},
|
|
62
|
+
"header": {"domainAxisColor": "#020810", "domainAxisBorderStyle": "DOUBLE"}, "spacing": {"columnWidth": 50, "gridGap": 6}},
|
|
63
|
+
"<PY>": {"type": "NONE", "header": {"borderBottomColor": "#A597B1", "borderBottomStyle": "THICK"}, "spacing": {"gridGap": 16}}},
|
|
64
|
+
"rowStyles": {
|
|
65
|
+
"": {"bold": false, "textSize": 12, "borderInnerColor": "#E6EBF2", "showBorderTop": false, "showBorderInner": true, "showBorderBottom": false, "numberFormat": KEUR1},
|
|
66
|
+
"<Net sales>": {"showBorderTop": true, "borderTopColor": "#E6EBF2"},
|
|
67
|
+
"<COGS>": {"showBorderTop": true, "borderTopColor": "#E6EBF2", "numberFormat": KEUR1_NEGATIVE},
|
|
68
|
+
"<Gross profit>": {"total": true, "bold": true, "showBorderTop": true, "borderTopColor": "#020810", "showBorderInner": false, "showBorderBottom": false},
|
|
69
|
+
"<Net sales>_<id of Net sales accounts>": {"showBorderTop": true, "borderTopColor": "#E6EBF2"},
|
|
70
|
+
"<COGS>_<id of COGS accounts>": {"showBorderTop": true, "borderTopColor": "#E6EBF2", "numberFormat": KEUR1_NEGATIVE}}}}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`KEUR1` is `#,##0.0,` in thousands, `KEUR1_NEGATIVE` the same with `"polarity": "NEGATIVE"`.
|
|
74
|
+
|
|
75
|
+
**FC** in a table (the full-year statement) is a hatched waterfall with its notation header:
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
"<FC>": {"type": "WATERFALL_CHART", "labels": {}, "shareAxis": true, "shareAxisGroup": 1,
|
|
79
|
+
"color": {"solid": "#3B2A47", "positive": "#3B2A47", "negative": "#3B2A47", "neutral": "#3B2A47", "border": "#3B2A47", "borderStyle": "THIN", "colorBy": "TREND", "colorTotals": true, "pattern": "HATCHED"},
|
|
80
|
+
"header": {"borderBottomColor": "#3B2A47", "borderBottomStyle": "HATCHED"}, "spacing": {"columnWidth": 100, "gridGap": 16}}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- **A light line above every non-total row.** The table draws the line between two rows only from the lower row's own style; the `""` default is ignored for it. So every row key, children included, gets `showBorderTop` with `#E6EBF2`.
|
|
84
|
+
- **Totals** get `total: true`, bold and the ink line. Their names carry no "=" prefix. A total row restarts the waterfall from zero, and the waterfall subtracts the rows whose polarity is `NEGATIVE`, so the row styles must be right before the waterfall reads right.
|
|
85
|
+
- **Polarity** on the cost rows and their children, never on a column.
|
|
86
|
+
- **ΔPL as a variance waterfall** only where every total is the previous total plus the lines between (no two totals in a row); `colorTotals: true`, or the total bars stay neutral. Elsewhere (OpEx by department, a KPI list, the cash statement) ΔPL is a `BAR_CHART` column with `colorBy VALUE`.
|
|
87
|
+
- **Same unit, same scale.** AC, PL, FC and ΔPL in one table are one `shareAxis` group. The variance bars come out short next to the totals; that is the honest picture.
|
|
88
|
+
- **At most four chart columns on a w36 statement** (waterfalls, bars, pins). Further columns (PY, ΔPY) are numbers. Make the tile tall enough for every row.
|
|
89
|
+
- **Column widths are fixed**, from the table in §6: every chart column and the name column set `spacing.columnWidth` and `spacing.gridGap` to those values, whatever room is left. A chart column also reserves label room outside its `columnWidth` (both sides for waterfalls and bars), so a wider chart pushes the columns after it out of the tile. Free room on the right is fine.
|
|
90
|
+
- **A ΔPY on a result whose PY is near zero or negative** (EBITDA, an operating result) is an amount, not a %: "difference in %" read −1 254 % on a small negative PY.
|
|
91
|
+
- **Drill-down** goes from a line to its accounts; intermediate groups are skipped unless the user reports them. Subtotals never open: their detail is the lines above. A line with a single account stays closed.
|
|
92
|
+
- **Rows from the hierarchy, or written out, nothing in between.** Where the model has the hierarchy the statement needs, generate the rows, so a new member shows up by itself. Where it lacks what the report needs, the hierarchy goes into the model or the rows are written out and named in your report as rows to maintain.
|
|
93
|
+
- **A table repeated on several pages** is built on each page; name every page it repeats on in your report, so a change is made on every copy.
|
|
94
|
+
- **Name column** wide enough that no label wraps: about 260 for a statement without chart columns, 160 to 170 with waterfalls, 140 for the cash bridge. Its key in `columnVisualizationByKey` is the standard column shown, `name` or `name+description`. `columns.standard: ["name+description"]` shows a code with its description and keeps written row names.
|
|
95
|
+
- **Empty generated rows.** The tile can show every member of a generated table, empty ones too, until `rows.onlyWithData` is on; `emitNoResultRows: false` alone doesn't hide them. `onlyWithData` counts a stored 0 as data: on a model that seeds zeros, generate the account rows from a gated measure.
|
|
96
|
+
- **Hierarchical breakdowns** keep the tree: a self-referencing table with `hierarchyFlatten: false` and depth 0, two linked tables as a parent line and a child line (SKILL.md §3.1). A top N never mixes parents and children.
|
|
97
|
+
|
|
98
|
+
**A statement where only some lines have a plan.** A COMPARISON column reads an empty PL as 0 and shows the whole AC as ΔPL on every unbudgeted line. Leave ΔPL blank there:
|
|
99
|
+
|
|
100
|
+
1. When the rows are members of one variable, bind the ΔPL column to the plan-gated ΔPL measure ([`measures.md`](measures.md) §2) instead of a COMPARISON. The column's variable then wins over the rows' variable in every cell.
|
|
101
|
+
2. When the rows tag a line member, one ΔPL measure that branches on it: `if(hasDMember("<line member>"), <AC − PL of that line>, if(hasDMember(…), …))`. ΔPL % as a coloured number, not a pin: a pin draws a marker at zero on every row without a value.
|
|
102
|
+
3. For a chain of measures with no shared line dimension, two stacked tables split at the last budgeted subtotal, the same column widths and no gap: the top one with AC, PL and ΔPL, the lower one with AC and PY.
|
|
103
|
+
|
|
104
|
+
**Margins inline.** A % row breaks the AC and PL waterfalls, and inside a waterfall column it shows nothing (too small next to amounts in thousands). So margins go in their own table (§2). When the user wants them in the statement, the statement gives up its waterfalls: AC, PL, FC and ΔPL as plain numbers, each % row with a percent number format on the row, its Δ in points. Say so before you build it.
|
|
105
|
+
|
|
106
|
+
**Year to date and full year never share a table.** The year-to-date table follows the `Year to date` filter. A full-year table (PL FY, FC FY) sits under its own heading ("FULL YEAR"), sets `useDashboardFilters: false` so it always shows the year, and says in its footnote that it ignores the other filters too. On a model with a currency dimension, it pins the reporting currency, or it adds every currency up. A full-year table on w18 fits two waterfalls; a third scenario is a number.
|
|
107
|
+
|
|
108
|
+
## 2. Margins and ratios
|
|
109
|
+
|
|
110
|
+
Under the statement, never as its rows: gross margin %, EBITDA margin %, EBIT margin %, profit before tax margin %, net margin %, and the ratios the user's own report reads (a cost to revenue ratio, with polarity `NEGATIVE`).
|
|
111
|
+
|
|
112
|
+
| Line | Variable or operands |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| rows | one per ratio measure |
|
|
115
|
+
| `AC`, `PL`, `PY` | as in §1 |
|
|
116
|
+
| `ΔPL (pp)` | COMPARISON `minus` (AC, PL) |
|
|
117
|
+
| `ΔPY (pp)` | COMPARISON `minus` (AC, PY) |
|
|
118
|
+
|
|
119
|
+
The rows take a percent format (`#,##0.0%`) in the `""` row style. A COMPARISON `minus` on % rows returns percentage points (0.20 for 4.35 % against 4.55 %), so the Δ columns take a number label format in points, never a percentage one (that turned a 1-point change into −116,8 %), with two decimals, red when bad and ink when good:
|
|
120
|
+
|
|
121
|
+
```json
|
|
122
|
+
"<ΔPL (pp)>": {"type": "DATA_CHART", "color": {"positive": "#020810", "negative": "#E21E09", "colorBy": "VALUE"},
|
|
123
|
+
"labels": {"labelFormat": {"type": "NUMBER", "unit": "ONES", "negatives": "EXPLICIT", "currency": "EUR", "decimals": 2, "formatString": "+#,##0.00;-#,##0.00;0.00", "custom": false}},
|
|
124
|
+
"spacing": {"gridGap": 6}}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
AC, PL and PY are `"type": "NONE"` columns with their notation headers. Footnote: "Margins on net sales. ΔPL and ΔPY in percentage points."
|
|
128
|
+
|
|
129
|
+
## 3. The cash bridge
|
|
130
|
+
|
|
131
|
+
"Where did the cash go?" w18 h10, AC as a waterfall from opening to closing cash, PL as a number beside it.
|
|
132
|
+
|
|
133
|
+
| Line | Variable | Members |
|
|
134
|
+
| --- | --- | --- |
|
|
135
|
+
| row `Opening cash 1 Jan` | the opening cash variable | |
|
|
136
|
+
| row `Operating`, `Investing`, `Financing`, `FX effect`, `Internal transfers` | the cash flow variable | its section member |
|
|
137
|
+
| row `Closing cash` | the closing cash variable | |
|
|
138
|
+
| `AC`, `PL` | | as in §1 |
|
|
139
|
+
|
|
140
|
+
- Opening and closing cash are totals (`total: true`), so they start from zero. Opening cash is the first row and has no top line (`showBorderTop: false`); closing cash has the ink line.
|
|
141
|
+
- AC is the waterfall of §1 with `spacing.columnWidth` about 230; PL a `NONE` column with `gridGap: 16` so it stands apart. Labels in whole kEUR.
|
|
142
|
+
- **Internal transfers stay** in every cash table. They are zero for the group, not for one bank account or entity, and without the row the table stops adding up the moment someone filters. Test it: pick one account and check opening plus the rows equals closing.
|
|
143
|
+
|
|
144
|
+
## 4. Tables of months
|
|
145
|
+
|
|
146
|
+
One scenario over the year (cash flow by month, AC&FC): the version is on the rows, the columns carry only months, generated from `Months` (SKILL.md §3.1), then FY. A style on the month columns goes on each member's key (`SHEET_LINE:MEMBER`). Twelve month columns don't fit one decimal: whole kEUR (`#,##0,`). Every month column, and an FY total next to them, gets a thin ink header line; FY has `gridGap: 16` and is a total, not a scenario. Flows sum in FY, balances take the closing month through their rollup. Tables of months have no drill-down. In a statement, opening cash is bold (a balance, not a flow) and closing cash a total.
|
|
147
|
+
|
|
148
|
+
## 5. The balance sheet
|
|
149
|
+
|
|
150
|
+
Month-end balances under a one-month filter, the variable's rollup `Closing State`. ΔPL and ΔPY on balance lines are neutral bars (SKILL.md §2.3). The statement ends with a check row, "Check: assets minus equity and liabilities", that must read 0 and is shown, never hidden. The vertical analysis is a second table with every row in % of total assets, and the structure the two 100 % charts ([`charts.md`](charts.md) §5).
|
|
151
|
+
|
|
152
|
+
## 6. Column widths
|
|
153
|
+
|
|
154
|
+
The widths of the reference build, `columnWidth` / `gridGap` in px. A number column (`NONE`, `DATA_CHART`) sets only its gap and sizes itself. A gap of 16 sets a group apart (the PL waterfall after the AC waterfall, PY after the variances); 6 everywhere else.
|
|
155
|
+
|
|
156
|
+
| Table | Tile | Name | Columns |
|
|
157
|
+
| --- | --- | --- | --- |
|
|
158
|
+
| P&L statement, year to date | w36 | 170 / 12 | AC waterfall 90 / 6, PL waterfall 90 / 16, ΔPL waterfall 70 / 6, ΔPL % pins 50 / 6, PY number – / 16 |
|
|
159
|
+
| summary P&L, year to date, with ΔPY % | w36 | 150 / 12 | AC 80 / 6, PL 80 / 16, ΔPL 60 / 6, ΔPL % pins 45 / 6, PY – / 16, ΔPY % number – / 6 |
|
|
160
|
+
| summary P&L, full year | w36 | 160 / 12 | PL waterfall 100 / 16, FC waterfall 100 / 16, ΔPL waterfall 80 / 6, ΔPL % pins 60 / 6 |
|
|
161
|
+
| margins and ratios | w36 | 200 / 12 | AC – / 6, PL – / 6, ΔPL (pp) – / 6, PY – / 16, ΔPY (pp) – / 6 |
|
|
162
|
+
| breakdown with bars (OpEx by category, revenue by product) | w36 | 200 to 220 / 12 | AC, PL – / 6, ΔPL bars 110 to 150 / 6, ΔPL % pins 80 to 90 / 6, PY or % share – / 16 |
|
|
163
|
+
| balance sheet | w36 | 250 / 12 | AC, PL – / 6, ΔPL bars 150 / 6, ΔPL % – / 6, PY – / 16, ΔPY – / 6 |
|
|
164
|
+
| cash flow statement | w36 | 260 / 12 | AC 110 / 6, PL 110 / 6, ΔPL bars 330 / 6 |
|
|
165
|
+
| cash bridge | w18 | 140 / 12 | AC waterfall 230 / 6, PL number – / 16 |
|
|
166
|
+
| table of months | w36 | 140 / 12 | each month – / 6, FY – / 16 |
|
|
167
|
+
| breakdown on w18 (FTE by department) | w18 | 170 / 12 | AC, PL – / 6, Δ bars 90 / 6 |
|
|
168
|
+
| vertical analysis | w18 | 200 / 12 | AC, PL, PY – / 6 |
|
|
169
|
+
|
|
170
|
+
Size a table that isn't listed from its nearest row. One-decimal kEUR on six-digit numbers needs about 150 px of label room per waterfall: then use whole kEUR or mEUR rather than wider columns.
|
|
171
|
+
|
|
172
|
+
## 7. Coloured numbers
|
|
173
|
+
|
|
174
|
+
A variance shown as a number (a ΔPL column, a ΔPL table by country) is a `DATA_CHART` column: red when bad, ink when good, from the row's polarity. A variance of a balance stays ink. `COMPARISON` "difference in %" divides by the absolute base, so cost rows stored negative get the right sign; a card badge does not.
|
|
@@ -4,12 +4,12 @@ description: Author all new repeatable Farseer data pipelines with Simple Pipeli
|
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1"
|
|
6
6
|
minimum-cli: "1.14.2"
|
|
7
|
-
engine-profile: "3.
|
|
7
|
+
engine-profile: "3.5"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Pipeline authoring
|
|
11
11
|
|
|
12
|
-
Pipeline authoring for simple-pipelines 3.
|
|
12
|
+
Pipeline authoring for simple-pipelines 3.5, the engine line in the runner image this CLI was released with. Patch releases keep the grammar, so any 3.5 engine runs what this skill describes.
|
|
13
13
|
|
|
14
14
|
## What this is
|
|
15
15
|
|
|
@@ -64,7 +64,7 @@ A source with no built-in type: a plain HTTP(S) API is `extract.type: http` (`Ht
|
|
|
64
64
|
|
|
65
65
|
Parse: a `type: parse` step named `<name>` with `deps: [<the extract>]` reads the payload into the dataset. It names exactly one of `parse.format` (`csv`, `xlsx`, `json` or `parquet`; `parquet` for a source that hands back rows rather than a file, such as `sql_database`, `business_central` or `source: datasets`) or `parse.script` (an `@parse` function in `Code/`), with read options in the block named for the format, such as `csv: {decimal: ","}`. The parse step carries the dataset's `schema:`, quality rules and `write_mode`/`merge_keys`. Every extract must be read by a parse step, and only a parse step may read an extract: a transform, load or export with an extract in its `deps` fails the run before any step executes.
|
|
66
66
|
|
|
67
|
-
Transform: choose SQL first (`engine: duckdb` with inline `transform.query`, never a SQL file), then `engine: ibis` with an `@ibis_transform` script when the logic needs Python to compose, and `engine: python` (`@transform`, pandas) only for work with no lazy form, because it is the one surface that holds whole frames in memory. Always write `engine:`; the default is `python`. Section 3 of `topic=practices` has the rules. When a SQL step should stop because the data isn't what it needs, call `fail_step('…')` with a message the client can act on, saying what is wrong and what to do, never `error()`: the client reads `fail_step`'s message as the step's failure, and `error()` only as "the app's own code failed". A script transform names its `Code/` script in `transform.script`; missing code, compile errors and invalid definitions fail before extraction when the pipeline policy is enabled. Declare `deps`, add quality checks, and reconcile the agreed business scope. Folder names under `Models/` become dataset namespaces. Output versions are candidates until published, failed quality checks do not publish the failed candidate, and publication is per dataset, so a later failure can leave earlier effects in place.
|
|
67
|
+
Transform: choose SQL first (`engine: duckdb` with inline `transform.query`, never a SQL file), then `engine: ibis` with an `@ibis_transform` script when the logic needs Python to compose, and `engine: python` (`@transform`, pandas) only for work with no lazy form, because it is the one surface that holds whole frames in memory. Always write `engine:`; the default is `python`. Section 3 of `topic=practices` has the rules. When a SQL step should stop because the data isn't what it needs, call `fail_step('…')` with a message the client can act on, saying what is wrong and what to do, never `error()`: the client reads `fail_step`'s message as the step's failure, and `error()` only as "the app's own code failed". A script transform names its `Code/` script in `transform.script`; missing code, compile errors and invalid definitions fail before extraction when the pipeline policy is enabled. Declare `deps`, add quality checks, and reconcile the agreed business scope. Folder names under `Models/` become dataset namespaces. Output versions are candidates until published, failed quality checks do not publish the failed candidate, and publication is per dataset, so a later failure can leave earlier effects in place. A `deps` entry `<name>@published` reads a dataset's published version, also the step's own, and `{{ scd2(...) }}` keeps an SCD type 2 history in the step's own dataset; `topic=TransformConfig` has the rules.
|
|
68
68
|
|
|
69
69
|
Load: the engine's full surface is available, with `load.target: farseer` and `load.farseer.cells[].source_dataset` naming a dependency. Each `mapping.variables[]` entry has `source_column`, `target_variable` and `fixed_dimension_members`; `mapping.dimension_tables` maps a column onto a dimension. `options.overwrite_cells: true` repairs the same coordinates on a rerun; it does not erase omitted rows or old mappings. `undo_previous: true` (which requires at least one `labels` entry) undoes, after the new import commits, every earlier import job that carries all the same labels, so rows that left the source leave the model; a failed undo is logged as a warning, not raised. `create_missing_members: true` lets the import job create members that mapped columns name but the model lacks; it does not create `fixed_dimension_members`, which must already exist or be written by a dimension load earlier in the run. On a production model a created member is a permanent change, so say so before running. Dimension-table loads and exports are allowed. Statically, the only hard refusals are credentials in YAML and SQL files.
|
|
70
70
|
|
|
@@ -40,7 +40,8 @@ Start from the target. Before any YAML, write down each variable the pipeline fi
|
|
|
40
40
|
- **`name:` equals the file name, and the folder becomes the namespace:** `Models/bronze/erp_sales_lines.yaml` is `bronze.erp_sales_lines`.
|
|
41
41
|
- **Qualified names are shared by every pipeline on the tenant.** Name datasets after their subject (`bronze.erp_sales_lines`, not `bronze.lines`), so two pipelines never write the same dataset.
|
|
42
42
|
- **Leaf names must be unique within one step's `deps`.** SQL sees each dependency as a view named by its leaf, and Python sees it as a parameter named by its leaf.
|
|
43
|
-
- **Read another pipeline's output** with
|
|
43
|
+
- **Read another pipeline's output** in a transform with the dep `<name>@published` (`topic=TransformConfig`). A load reads it through a `farseer` extract with `source: datasets` and a `format: parquet` parse step. There is no ordering between pipelines.
|
|
44
|
+
- **Keep a snapshot's SCD type 2 history** with `{{ scd2(...) }}` (`topic=TransformConfig`).
|
|
44
45
|
- **Keep `StoreType.DATASETS`** unless the pipeline accumulates data (section 8). `FARSEER_FILES` publishes on write and keeps no versions.
|
|
45
46
|
|
|
46
47
|
## 3. Transforms: SQL, then ibis, then pandas
|