edit_table_blocks.
Shape a call as one action block
edit_table_blocks has seven actions: create, update, reshape, copy, delete, set_time_rollup, and update_calendar. Fill exactly one block named for the action, and put that action’s fields inside it.
scenariosits beside the block and applies to it. It is also accepted inside the block; a call that names two different Scenarios in the two places is refused.- A field the chosen action does not take is refused, with
accepted_fieldslisting that action’s own fields plusscenario.
Write through the saved table
First read the table withinspect_table_blocks to get its visible row and column references:
update, with the same scenario as the read, so both resolve the same saved table:
- A row with no Date scope takes
formula. A row that runs across time takesdefault_formulas, with anactualsentry, aforecastentry, or both. An entry you leave out stays unchanged. clear_formula: truein place offormularemoves the formula the row owns for that range.- The server derives the Variable, the cell address, the formula range, and the write permissions from the visible target. Copy references from the inspection result, such as
Gross Profit#3f2, instead of inventing IDs, positions, or range identifiers.
Tables that save a comparison
A table that saves a Scenario or period comparison takes writes too. Name the selected Scenario’s own column, with or without the comparison qualifier the read printed, and the write lands in that Scenario. A compared Scenario’s column, a compared period’s column, and a difference column take no write: the refusal says the table’s saved comparison is left out, because those columns show values saved in another Scenario or period, or calculated.Formulas the items beneath a row inherit
child_defaults on a row_updates or column_updates entry holds the formulas the cells beneath the row inherit, one entry per breakdown Dimension at any depth:
- Each entry names its
dimensionand carriesactuals,forecast, orformula, which a timeless table takes, and a dated table takes when the Variable holds no dated formula. Onerow_updatesentry can set the row’s own formula and its children’s together. - A deeper level’s entry is saved on the level above it. In Total by Owner by Deal, the Deal entry is the formula on
Total[Owner]. - An axis row, such as
Total[Stage], sets the formula for every item’s children; an item row, such asTotal[Discovery], sets it for that item only. clear: trueon an entry removes an owned timeless child formula; dated ranges clear throughactualsorforecast. The item’s ownclear_formularemoves only the parent row’s formula.
Create a visible derived row
A new Variable can be defined and placed on an existing saved table in the same change.structure.insert names the side, the new Variable, and its formula:
structure inserts, then moves, then removes rows and columns. A removal drops a row or column and its subtree from this table, never the objects themselves, and every Variable and Dimension must keep a row or column on at least one table. The same update can write the cells of inserted rows with cell_updates or values.
To start a new table instead, use create with its complete rows and columns:
default_formulas open over that Dimension, so every item calculates the formula, under the same condition a later row_updates on that row writes.
Create several dependent tables in one call
When a build needs more than one table, and the tables’ formulas name Variables that other tables of the build declare, put the tables in atables list inside one create instead of making one call per table:
tablesholds up to 20 tables. They save in one change, and a formula in any table names the Variables and Dimensions any table of the list declares, whatever the order, so the first table can read the second and two tables can read each other. A name no table declares and the Model lacks is still refused, and the refusal says that formulas here name what the Model has and what any table in the list declares; when a table declares the name in another letter case, the refusal says so, because formula names match case exactly.- Two entries that name the same new
pageshare it. - Each entry carries its own
name,page,rows,columns, and settings.scenarioanddry_runsit on the request and apply to every entry. - The response holds one receipt per table, in list order, and every table shares one
change_log_id. A refusal of any table refuses them all and names the table.
A new dated row gets a time rollup
A formula on a month row governs month cells only. Quarter, half-year, and year cells read the Variable’s time rollup.- A
createorinsertrow may namerollup:SUM,LAST, orAVERAGE. - When it names none, the save decides from the Date periods the new Variable’s own cells show: the Date levels above and below its place on its axis and every Date level of the opposite axis, each at its own grain, else the table’s, else the Model’s base grain. When those periods include the base grain, alone or with quarter, half-year, or year periods beside or above it, such as full-year columns over monthly ones, the save writes the rollup the request implies at every grain coarser than the base, for Actuals and Forecast:
SUMfor a number with no aggregation or withSUMorCOUNT, andLASTforaggregation_function: LAST. It writes none for a timelessformula,format: PERCENTAGE, a value that is not a number, or any other aggregation. - A Variable whose cells show only coarser periods, such as a quarterly row beside a monthly one, holds its values at that grain and gets no implied rollup. Neither does a Variable shown at weeks on a monthly Model, nor one whose cells show no Date. Another row’s months do not give it one.
- A
rollupnamed on a row of a quarter or half-year table reads that table’s periods, where the row’s values are: the row keeps its own table-grain formula, and the rollup is written at each coarser grain only, half-year and year for a quarter table or year for a half-year table, with the function named: a sum, an average, or the closing period. A range the request gives no formula rolls up the periods the table holds, where the typed values sit. A laterset_time_rollupon that Variable keeps reading those periods, and itswrittentext names them, such assum(Quarter). - The receipt states the implied rollups in one
default_rollupissue, and does not list them asrollupsor count them asdefault_formulas. - A ratio row created without
format: PERCENTAGEgetsSUM, so its year cell adds the monthly ratios.set_time_rollup, or a namedrollup, corrects it.
default_formulas saves at [Date.Month in any] as on a monthly table, and a read of such a row shows the rules a write would edit. A row’s own timeless formula is resolved against each branch’s first level instead, as the table lays the branch out, and the branches must agree on that level: Year → Region → Month beside Month → Region saves the Variable’s own [] rule in either order, because both branches start with Date, while Region → Month beside Month → Region is refused as ambiguous. An axis whose branches differ in Variable or business Dimension is refused too, as is an open week level shown beside or under a coarser grain, such as Month → Week or Year → Week → Day, because weeks do not nest in months, quarters, or years. The refusal reads the opposite axis shows different variables or business scopes, or weeks beside or under a coarser Date grain they do not nest in, so this row or column alone does not select one Actuals and Forecast rule. A variable’s own Actuals and Forecast rules apply wherever no narrower rule does; update.variables[].default_formulas writes them on the variable that entry’s target names. A row or column whose opposite axis shows one variable at one business scope, at one Date grain or at grains that summarize its finest, takes default_formulas for that scope. A default_formulas formula written through a table whose periods are coarser than the base grain, such as a yearly table in a monthly Model, is saved at that coarser grain, and the receipt warns: the year cells compute the formula whatever their month cells hold, and the month cells do not read it. Write the formula on a row of a base-grain table, or in a variables entry, when it should govern the base periods.
A breakdown’s totals are written for you
When a table breaks a Variable down,child_defaults on the deepest axis row is the formula for the lines, saved on each line’s full path. The save then gives every coarser level the tables show a default that sums the level beneath it, one ordinary formula per level, and the receipt lists them: “Revenue’s level defaults, which add up its [Customer, Line, Product] lines at each level the tables show: saved Revenue[Customer, Product], Revenue[Product] and Revenue.”
- A value set on any row reaches every total above it.
- A formula an author writes at a level replaces the default there, and a default edited into other text stays with its author.
- The sums exist only while a line formula claims the lines. Clearing the line formula removes the sums left in its range.
- A Variable with
format: PERCENTAGEgets no sums and no0on its lines. Each level above them gets the line formula orNULL, saved with neither Date nor a range when the line formula names neither, so the line formula outranks it at every line in Actuals, and a line formula such asRate[-1]keeps carrying a typed rate forward past Last close instead of reading a datedNULL. The receipt states which: “saved the line formula on [rows], so each of those rows computes that formula from its own inputs”, or “saved NULL on [rows], which reads blank, where the lines hold typed-in numbers or several formulas, or where their formula takes its own row’s item of a dimension that row lacks or reads a variable with no value on that row”. That default with no Date is one rule that every Date grain the tables show reads, so the save decides it across those grains:NULLwhen any grain needs a blank or two grains want different formulas, otherwise the one formula they agree on. A rate typed in on one month blanks the monthly parent, and a weekly table of the same Variable keeps that blank instead of copying the line formula. A parent rule an author writes at one grain, such as[Date.week in any] = 0.25, takes that grain and leaves the shared rule to the others. A percentage that reads another percentage’s parent, such asNet = 1 - Rate, getsNULLon its own parent wherever that shared rule is blank, instead of computing against a blank that reads 0. - A row’s
numberFormatis display only and changes no formula. - Each sum adds up the one shown level beneath it, never every line dimension at once. A total above lines whose formula has no Date is saved without Date too.
- When a table stops showing a Variable’s own row, such as after a reshape that moves the Variables to the columns or nests the rows under a new Dimension, the Variable’s total stays, with every level that total reads, so formulas that read the total keep their value. A total a person or Ari saves on that hidden row stays too. The receipt states that one exception as “the default on the [Variable] row replaced its sum of the lines alone”.
- A sum a person or Ari saved at a level is left alone, even when it is spelled exactly as the sync spells its own sums, with one exception: on a shown Variable row where the sync saves a total of its own, the row’s default replaces an author’s sum of the lines alone. Where the sync saves no total in that range and a line rule or a line
0computes the lines, the author’s sum stays, and the receipt no longer lists it as removed. The sync replaces or removes only the formulas it wrote itself, which avariableread markswriter: "level_default_sync". - When one call creates several tables, each table’s receipt lists the level defaults for every Variable that table shows, including a Variable a row names only by reference.
- A
createdry run runs the same totals step and rolls it back, so itsmodel_effectscarry the statements the committed receipt puts underlevel_defaults, for each table in the call.
Add items and write their values in one call
- An
updateadds the items thatdimensions[].add_items,replace_items, oradd_dimension_itemsnames before it resolvesvalues,cell_updates, andmembers, so one call can addE9to Entity, write["E9", 42]invalues, and nameE9in the axis’smemberslist. An added item is matched in its saved form: a number Dimension’s02025matches2025, and a boolean’stmatchestrue. Acell_updatescolumn selector on the added item may name a Variable beneath a period or a Dimension level, such as13W Receipt Amount[2026-10-19 00:00:00+00]orRevenue[West], and may lead with the name the same call gives the Variable invariables. Under a week column it must name the week’s start; a date inside the week is refused withis a date inside a WEEK period of this table's Date axis; a value belongs to the whole period, named by its start. A member condition on a Dimension the same call extends is still refused. - A
createadds the items thatvaluesnames to a manual Dimension on either axis, saves their values in the same transaction, and lists each one in the receipt’sdimension_itemswithcreated: true; an item of a Dimension fed by a connected source must already exist, and an ambiguous selector, a predicate, a hidden item, or a period outside the window is still refused. - A
create, or an update that adds rows, can also fill a mapping column on the rows it adds. A Department cell on a new employee row saves the one quoted item,"Sales"; a new item joins the Dimension’s list when the Dimension already has a mapping, while a new name for a Dimension that holds only typed-in items and no mapping is refused withmapped_item_required; and a value that is not one item is refused before anything saves, naming the cell. - The first keyed mapping into a Dimension that already holds typed-in items and no mapping is refused, whether from
edit_dimension_mappings mapor a mapping declared inedit_table_blocks create, and nothing saves: [Dimension] has [n] manual items. Its first keyed mapping would replace independent manual-list membership with membership determined by input records. The entire write was rolled back; no model changes were saved. The refusal names up to five items with no proposed result and ends If the items are leftovers, use edit_table_blocks dimensions[].remove_items or replace_items to clear them before mapping again. To keep the list, map into a separate dimension. Acatch_allis not an existing mapping, and a create that itself creates every manual item, throughvalues, may declare the mapping andvaluestogether. - Cells of one lookup save in one mapping write, so filling 400 Departments costs about the same as filling one.
dimensions[].remove_itemsdeletes each named member together with its rows on every table, including rows that pair it with members of other Dimensions, and the formulas whose condition selects only it, such as the values typed into its row; a Scenario’s own version of such a formula that selects another member is kept. The receipt’smemberslistsremoved_rowsby table andremoved_rulesby Variable, and one undo restores all of it. A member filter, drill-in, parent condition, Canvas or chart filter, or a formula that names the member in an expression or in a condition other members also meet still refuses the removal. The session must be able to edit each Variable whose formulas go; otherwise nothing is removed and the refusal names the Variable.replace_itemsnames the members that stay, so a member it drops whose rows sit on another table, or that a formula selects alone, refuses the replacement and names the member.- An
updateremoves a saved item path withremove_dimension_items: a list of row or column refs a read prints, each naming a segment saved for two or more Dimension items together, such asBudget Cost[CTO][6388 - Accommodation]#86f. The segment leaves the Model, the receipt lists each underremoved_dimension_itemswith itsselectorandpath, andedit_historyundo restores it. A ref that names an item of the root Dimension is refused, because that item is Model-wide anddimensions[].remove_itemsremoves it; a path another table also shows is refused by that table’s name; and a path with no saved segment is refused with “no saved segment stores this item path”. - The parent of an item breakdown, or
add_dimension_items[].under, may be the Variable’s own reference, such asRevenue#749, when exactly one row or column shows that Variable. In a table whose rows are Variables, each broken down by the same Dimension with its own item filter,undermay name one of those Variable rows, and the item joins that row’s breakdown with no parent terms;dimensionmay be the Dimension’s own reference, such asG&A Vendor Name#a81, even when the layout shows that Dimension under several rows. A table that shows the same Dimension both beneath no business item and beneath one is still refused. A parent that matches nothing is refused with the token as sent, which Variable or Dimension it references, and the table’s current rows and columns, same-named first, up to twelve.
shared_mapping_changed notice names the first changed row and its item before and after, and counts the rest: “The shared mapping changed: EMP-001’s Department moved from Engineering to Operations, and 3 more rows changed. Other tables and periods that use it can also change.” A first assignment reads “is now Sales”, and a cleared cell “was cleared; it was Sales”. Every table that reads the mapping recalculates in the background after the call returns; inspect_dimension_mappings lists those tables.
Where a timeless formula is written
formula and clear_formula write a Variable’s timeless formula, which applies in every period, Actuals and Forecast alike. default_formulas.actuals and default_formulas.forecast write formulas limited to Actuals or to Forecast, and create and update both accept them.
- A
createwrites a timelessformulafor a Variable it makes, including on a row of a table with Date columns. On a row that places a Variable the Model already has, a create or reshape writes theformulaonce the layout is saved, at the row’s scope, as anupdatewould: under a plain name it is added only where the Variable holds no formula and refused where it holds a different one, and under the Variable’s reference it replaces. A dated row whose Variable holds a dated formula, and an imported Variable, are still refused. Aformulaon a placed Variable’s row inside a new item breakdown (layout.breakdowns) is refused rather than dropped; write it withrow_updateson the saved breakdown row. - An
updatewrites a timelessformulaon an undated row or column, or on a dated one whose Variable holds no dated formula: none that names Date in its condition, and none linked to a formula range, Actuals or Forecast. On a dated row it edits the formula the dated cells read, as Edit an address that holds several saved formulas describes: that is the inheriting[Department in any], because an exact$[Department in any]applies only at the undated address and no dated cell reads it, so the exact formula is left alone;inspect_table_blockswithinclude_edit_ruleslistsformulaandclear_formulaon such a row. A dated formula another call saves between the read and the write makes the write a stale plan, which is refused. A dated row whose Variable holds a dated formula is refused, and the refusal states the cause:this row or column is dated, and "Revenue" holds dated rules that its dated cells read: 6 linked to a formula range, orthis row or column names Date in its own address, as one period or a Date breakdown level does. - When the opposite axis nests Dimensions, such as Segment rows under Product rows, a row’s or column’s own timeless
formulasaves at the first level of that axis,[Product in any]: the product rows read it, and the segment rows inherit it unless a narrower formula applies to them.child_defaultskeeps every level of the opposite axis, a Date level stays in the scope wherever it sits, and a Variable on the opposite axis keeps the whole scope. The table’s own column-header formula editor still saves at the deepest level. - Both refusals use the same sentence, which says where each kind of formula is written. The plain-name refusal ends: “A plain name places an existing variable and adds to it only where it holds nothing and no rule of it calculates the cell.
new: trueon the node makes a separate variable with this name, and the reference named above, on the node, names the existing one for a write”.
child_defaults clear on create goes through the same planner an update uses, so a child that owns no formula reports unchanged.
An axis that only lists items has no formula to edit
formula and clear_formula edit the formula of a calculated value: a Variable, a Dimension shown as a value through its mapping or formula, or the Variable that encloses a Dimension breakdown. An axis that only lists a Dimension’s items has no calculated value, so a formula edit aimed at it is refused with a reason instead of a resolution error. The reason:
- opens “this table axis shows its dimension with role DIMENSION: it lists the dimension’s members, and no calculated value is on either axis”;
- says that
dimensionsadd_items,remove_items,replace_items, andrename_itemsedit saved items, and that a retained breakdown edits its enclosing Variable’s formula; - adds that “a dimension axis whose role is VARIABLE holds one value of that dimension for each member on the other axis, and a formula on it saves the rule that calculates that value”.
role field’s description and the item-condition refusal carry that same sentence. A formula that generates a source-linked Dimension’s items has no write in the tool: the person writes it in a table, from the Dimension’s label-row menu, with Edit dimension formula.
Save a Variable’s formula without a table
When the requested formula has no visible table target, name the Variable in avariables entry. No table target is needed:
- The formula is saved on the Variable with one Date term at the Model’s base grain, the same address a plain row on a base-grain table writes. A later
row_updateswrite on a table that shows the Variable edits this formula instead of adding a rival. - The same entry takes the Variable’s settings, wherever it is read:
name,data_type,aggregation_function,preferred_time_property,format,decimal_places,currency, andvariance_colors. - Item edits on a Dimension still name a table that shows it.
Filter the items an axis shows
members on a row_updates or column_updates entry is the saved item filter of the selected axis. It takes one of two forms. A row or column node of a create or reshape layout takes the same two forms in its own members, so a new table can save a live condition from the start; the schema publishes the grammar once as $defs/member_filter, and Table layout fields lists the node’s rules.
A list of item names replaces the filter, including a saved condition. [] clears it.
- The list may name
empty:None, the rows with no value. - Each name is checked against the Dimension’s hand-added items and the source’s item text, then, for a name those do not hold, against the calculation’s own item list. So an item a formula or mapping computes is saved, and so is a number written as the table’s rows write it, such as
13840.0. Date and number items match by their saved text, such as"2026-01-01 00:00:00+00". - A name the calculation does not hold either is reported under
unmatched. A list that names no item at all is refused with the Dimension’s first items. - Only an item filter may name
empty:None.add_items,replace_items,rename_items, and a mapped item namedempty:Noneare refused with “empty:None is the spelling of a dimension’s empty member, which holds the rows with no value and exists without being added”.
[`Employee ID`#403 where `Employee ID`#403.Department#2f5 = "Engineering"], so it can be written back unchanged, and a list read names, under property_locations, a readable saved table that shows a Dimension the condition reads from outside the table. When the condition’s text cannot be printed, the read reports {"saved": true, "shown": false, "reason": ...} instead. The reason is it reads a variable or dimension this read cannot name for this person for a property you cannot read, or it reads a variable or dimension that is not in this scenario for one the Scenario no longer holds, such as a deleted Dimension; when both apply, the permission reason is given. Only the list, definitions, and grid reads can tell the two apart, so an edit receipt gives the permission reason for either.
- Literals are quoted strings. A bare number is a reference offset, not an item.
Region not in {"West"}keeps every named item but West, and keeps the empty item:!=andnot intreat an item with no value as unequal to any named item, soSection != "G&A"keeps an item with no mapped Section. An ordering comparison on the empty item is unknown and leaves it out.- A condition may read a Dimension mapped from the axis, or another Dimension read from the same source table as the axis, such as
Employee where Status = "Active". A constantdate(y, m, d)naming a real day is saved as the literal"YYYY-MM-DD". The mapped Dimension may also be written as the lookup a formula uses for one member,Department$[`Employee ID` = `Employee ID`], with or without$orthis.; it saves the same condition as the bare name. Brackets after the mapped name that select anything else, such as a literal key, another Dimension, or a date period, are refused, and the refusal gives the accepted form in the table’s own names. A condition on a Dimension that is neither mapped from the axis nor read from the axis’s source table is refused, and the refusal lists the Dimensions the condition may read and the step that makes another one readable:edit_dimension_mappingsmaps that Dimension from the axis, which gives each axis item one item. - A condition never reads a Variable.
Vendor where FutureSpend > 0is refused, and the refusal opens with the live ways a table shows rows by a Variable’s value, before it lists the Dimensions the condition may read: “FutureSpend is a variable, and a member condition compares dimension values only. A table shows Vendor rows by a variable’s value, recalculated as the values change, in two ways: show_empty_members:false hides each row whose values are all zero or empty in the window, and on a table whose rows are Vendor, a dimension column whose formula reads FutureSpend gives each Vendor one value, which a member condition on Vendor compares.” That text is the refusal as the tool writes it; whether hidden items stay hidden still follows the workspace policy thatshow_empty_membersdescribes in the grammar. The second way: place a Dimension as a value column on a table whose rows are the axis, give it a formula that reads the Variable, such asif(FutureSpend > 0, "Yes", "No"), and save that formula withedit_table_blocks. The Dimension then has one value per item, andVendor where HasFutureSpend = "Yes"stays current after the next import.
Total[West] names its axis. hidden on the same entry hides or shows the saved axis the selection belongs to, so hidden: true on an item row hides every item of that level.
When a receipt that lists every item would exceed the result allowance, each member_filters entry reports members_omitted, the count, in place of its members list, and the edit still answers outcome: applied.
Edit an address that holds several saved formulas
A table edit names an address: the Variable, its condition, and its formula range. Imports and older writes can leave more than one saved formula at one address.- An exact
$[...]formula outranks an inheriting[...]formula at its grain, and among formulas of the same form the newest save wins. So cells read one formula: the newest exact one when one exists, otherwise the newest inheriting one. - A
row_updates,child_defaults, orcell_updateswrite at such an address edits the formula the cells read, and deletes the older copies of the same form in the same change. The receipt names each deleted copy: “This write also deleted an older copy of a Forecast rule that Advertising carried at this address:1at[Vendor in any, Date.Month in any]. No cell read a deleted copy, so no value changed.” - An exact formula and an inheriting
[...]formula at the same grain are not copies. The write edits the exact one, keeps the inheriting one, and names it in the receipt.
duplicate_default_formula issue, which counts the copies and says that a write to the default deletes them. The default itself shows as defined here and can be written.
Set where a source’s rows sit on the calendar
Where an imported source’s rows sit on the calendar is one fact about the source, and asources entry on update or create states it once:
targetis the query reference a read prints undersources, andpreferred_time_propertyis one of the source’s date columns.- The write saves that column on every Variable and Dimension of the source in the same change. A
variablesordimensionsentry in the same request that sets its ownpreferred_time_propertywins for that object. - The column name is matched among that source’s own date columns only, so the same name on another source does not make it ambiguous. A name that matches none of them, or two of them, is refused, and the refusal lists the source’s date columns as
name#suffixreferences; use the reference for a duplicate name. A source with no date column gets its own refusal: its rows sit on the calendar by no column. - An
updatethat carries onlysourcesneeds no table target.
Declare a mapping in the create that reads it
Acreate whose formulas read a mapped Dimension can declare the mapping in the same call, instead of calling edit_dimension_mappings first. The create’s dimensions entry takes target, keys, items, and catch_all, as edit_dimension_mappings map takes them:
A table formula or mapping write that would give a Dimension a second lookup is refused, and nothing saves, when the two lookups share no key and both reach every row of the same imported table, because the calculation could not choose between them for a row both match. Lookups that share a key, such as Account alone and Account with Account ID, are not refused: the more specific one wins and the other is its fallback, as Dimension mappings describes. The refusal names the Dimension and both lookups: target dimension "Direct Cash Flow Group" already has a mapping input keyed by [CF Classification Basis] that reaches the same imported source as the proposed input keyed by [CF Line ID]. Both inputs would match every source row, so "Direct Cash Flow Group" would have no defined mapping result. A key that is itself a mapped Dimension counts through the import it reaches.
- The mapping is written in the same change, before the rows, so a formula such as
sum(`Income Statement Amount`[`P&L Line` = "Revenue"])resolves in this call. The table, the Dimension, its items, and its rows commit together. - A
targetthat names no existing Dimension is created the same wayedit_dimension_mappingsmapcreates one: with the mapped labels as its items, placed on its own table named<Dimension> mappingon the Model’s shared page, keys down the rows and the new Dimension as a column.edit_dimension_mappingsreportstarget_dimension_statusascreatedorreused. Creating it needs write access to that page, or permission to create pages when the Scenario has none yet, and write access to the new table; otherwise the whole map is refused and nothing saves, with a refusal that opens “<name>does not exist, so this map would create it with its own mapping table on the model’s shared page.” A map into an existing Dimension writes rows and places nothing. The shared page stays the shared page after a person nests it under another Page or renames it, so later mapping tables join it there. When it was deleted, or its sharing changed, the next map creates one replacement namedModel, under the deleted page’s parent when that parent is live, leaves each subpage its own audience in this Scenario and in every Scenario that inherits the new Page, and the writer may write to it, and otherwise at the top level; later maps join that replacement instead of each making another page. In atableslist, the list reserves the id of a missingtarget, so a formula in any table of the list, including the mapping table’s own columns, can name the Dimension before the map creates it; a map into a Dimension that an earlier table of the same list renamed writes into the renamed Dimension and creates nothing. itemsmaps single source values to fixed items, so a nonemptyitemsneeds exactly one key.- A mapping formula’s
conditionis saved as a relative[...]formula; a leading$before a nonempty condition is dropped. So when one lookup is keyed by Account and another by Account together with Account ID, a row the two-key lookup has no formula for falls back to the one-key formula instead of the catch-all. - The catch-all
[]is unchanged, and a formula saved as$[...]earlier keeps its exact condition until a mapping write names its row again. - The receipt’s
itemsentry for the Dimension carries the mapping’s facts:keys,rows_created,rows_updated,target_items, andcatch_all. - A refusal on either side saves nothing.
Set a table’s window and grain
window is the table’s own date range and grain.
- On a
create, it holdsstart,end, andgranularity. A dated table names its grain, such asMONTH; a timeless table namesNO_GRANULARITY, as thetablesexample above does. - On an
update, the range is{"type": "ABSOLUTE", "start": …, "end": …}, and{"inherit": true}clears the table’s own window. startandendaccept a plain calendar date, such as2026-02-01, as well as a full timestamp, andcreateandupdatesave the same window for either form.updatewithgrainmoves the table’s Date columns to that grain, so a monthly table asked forQUARTERshows quarter columns, and the receipt reports the moved Date column. A table whose Date header shows two grains at once, such as Year above Month, is refused a new grain.grainon a row or column node sets the display grain of a datetime axis only. On a Variable row it is refused, and the refusal states where a Variable’s grain comes from, such as “grain on a row or column sets the display grain of a datetime axis; “Revenue” has data type FLOAT. A variable’s default_formulas save at the table’s Date grain: the grain of its Date axis, which time sets on create and grain sets on update or reshape.” That sentence describes a formula written through a table; Save a Variable’s formula without a table states the grain avariablesentry saves at.
Write values into dated columns
- A
valueswrite names each Date column by the start of its period at the table’s grain. On a table with yearly columns,2024-01,2024,FY2024, and2024-01-01all write the 2024 cell;2024-02is refused as a date inside a YEAR period, and the refusal names the form that works. - A Date row takes the same names as a Date column. On a table with Date on rows, a
valuesrow or acell_updatesselector may name the period the way people write it, such as2026-03, and a Date row nested under an item or a Variable resolves the same way:West[2026-03]andRevenue[2026-03]work on rows as they do on columns. - A daily or weekly table names a Date row or column by its day, as a read prints it: the June 1 column of a daily table is
2026-06-01, and so is the June 1 row, orWest > 2026-06-01for a daily breakdown saved under one item. A month name such as2026-06orJun 2026names no row or column on such a table and is refused, so a value meant for a month cannot land on its first day alone. Monthly, quarterly, half-year, and yearly tables name their periods by the period’s first month, as before. - A dated value’s period is a Date row or column inside the table’s window: the window this request sets, else the saved or default one. Writing values leaves the window unchanged. An opening input in the last Actuals period, which
[-1]reads in the first Forecast period, lies in a window that starts at or before that period: either one table whose window starts at that period, or a separate inputs table whose window holds it. - A period outside the table’s window is refused with the window and the start or end that would hold it, such as “2025-12 is before this table’s window 2026-01…2026-12; a window that starts 2025-12-01 holds it”. A call may set
windowand write the new periods together. - A whole number such as
2026also selects a number item printed2026.0, and a row renamed in the same request resolves under either name. - A JSON number in exponent form saves as the same value in plain decimal digits, so
1.5e-3saves as0.0015; the formula grammar has no exponent literal. A number outside the 64-bit floating-point range is refused with “<literal>is outside the 64-bit floating-point range”. - Dated inputs in
valuesorcell_updates, and the periods areadbackselects, leave the table’s saved display window unchanged. A report that must show a requested start and end needswindowset on the same call, or the table keeps showing its old range with the new months outside it. A readback of selected months proves those cells, not the displayed range.
Write in a Scenario
scenario defaults to the Scenario in view, which can change between turns. Through MCP, that is the Scenario _context.layerId names, or Main. When a call that saved something omits scenario, each table receipt carries a scenario_warning issue that says which Scenario the write used:
- With a Scenario in view: “No scenario was named, so this call used
Breakeven Plan#4c1, the scenario the person is viewing. The scenario in view can change between turns.” - With none in view: “No scenario was named and none is in view, so this call used
Main.”
unchanged, and a formula_warning says the Scenario already reads this value from its parent, so the cell keeps following the parent and changes when the parent changes. A different value is saved as the Scenario’s own and holds through the parent’s later edits. Scenarios, Snapshots, and version history explains why.
Delete a Variable or Dimension
deletewith atargetalone removes the whole table, and deletes only the Variables and Dimensions that no other saved table still shows. An object another table shows stays there, with its formulas, values, and items.- No table owns an object. A
row_updatesorreshapewrite may take an object off the table it was created on while another table shows it; only removing its last occurrence needs it placed elsewhere first, or deleted outright. deletewith avariablesordimensionslist removes only the listed objects, wherever they are placed. An object on another table, or on no table, is reached by name; the named table only scopes the call. A name that matches no readable object is refused with “delete target … matches no readable variable or dimension”.- When other formulas, blocks, or settings still read one of the objects, the delete is refused and lists what reads it under where each object sits, such as “is shown on table Revenue” or “has no readable table location”, ending “With force, the object is deleted and these references break.”
force: trueaccepts that those references break. forceon the delete covers every listed entry;forceon one entry covers that entry alone, so a call can force some entries and not others.updateentries do not takeforce.- A delete receipt reports
coverage.values: "not_evaluated": no value was checked. When the delete removed saved cells, values or formulas saved at one coordinate such as one item in one month, the receipt adds asaved_cells_deletedissue with theircount, because another Variable broken down by the same Dimensions can calculate no value at a coordinate only those cells named. The delete still succeeds. - A refused table delete opens with “Nothing was deleted” and the count of dependents. A completed one carries a
links_endissue, because links to the table in earlier chat messages no longer open it, and a table rebuilt in its place has a different identity. - Removing a Dimension item is refused, opening with “Nothing was removed”, while a formula, a drill-in, a chart or Canvas condition, a row on another table, or a filter that lists only that item names it. Manual sort orders, and filters that still list other items, drop the item instead.
A formula belongs to its Variable
Acreate row that names an existing Variable by its plain name places that Variable. Rows match names without regard to case, so Deferred revenue places Deferred Revenue.
A plain name adds to the Variable only where it holds nothing:
- a formula for a range or level that has none,
- a value at a cell that has none and that no formula of the Variable calculates, or
- a type or format that was not set.
- A formula calculates the cell unless it is pinned to one cell. An exact condition with an open term, such as
$[Date.Month in any], is a formula over every month. - A dated formula counts at the Model’s base grain and at the grain of the value given, so a formula saved from a quarterly table refuses a quarterly value.
- The generated formulas a breakdown’s save recorded as its own are judged by what they compute. The
0on the lines supplies what a blank cell reads, so a value on a line is an addition; the sum on a level calculates that level alone, so a value on the Variable’s own row is a replacement. - A value on a timeless Variable that holds nothing is an addition.
- Every aggregation that is set,
DO_NOT_AGGREGATEincluded, is a setting a plain name does not replace. - The check does not read which items a condition names, so a formula for one item refuses a value on another item’s cell.
- The Variable’s reference, such as
Budget#3f9, writes that Variable and replaces what it holds. new: trueon the row creates a separate Variable with the same name and leaves the existing one as it is. Throughout a request withnew: true, in rows, columns, formulas, values,variablesentries, and later tables of the same create, the plain name means the new Variable, and each existing namesake answers only to its reference.
items entry for a reused object carries:
location, a saved table whose rows, columns, or drill-ins show the object and that you can read, when one exists; no table owns the object, so this is a place to find it, not its origin;added, with therules,values, andsettingsthe save gave it;beside_rules, the count of formulas the Variable already held that calculate its cells, which is 0 whenever values were added;rule: "replaced"when a write by reference replaced a formula the object already had, in Main or in the Scenario being edited;- and, on an
updateorreshapeentry for a reused Variable,level_defaults, the sums and0the save’s breakdown added to it or removed from it.
default_formulas by its reference, such as Revenue#3f2, while placing it on another table rewrites the formula every table reads. When the formula it replaced was a formula, the receipt names it and the address the Variable carried it at. Writing a value over a plain number, quoted text, a date, or null states no replaced formula; the committed edit’s previousText carries the old value instead. Placing a Variable without new defaults leaves its existing formula alone.
Names and references
- A stale table reference whose name no longer exists resolves by its suffix when the suffix has at least three hex digits and exactly one table carries it.
inspect_table_blockslistreports the move in arenamednote, such as “Vendors#083: no table has that name; its suffix matches the table now named “Anomalo Vendors"". - Formula names match case exactly. A formula that names
`Deferred revenue`when onlyDeferred Revenueexists is refused with the object it matches: “`Deferred revenue`matches the existing`Deferred Revenue`(names match without case); formula names match case exactly, …”. - A reference field and formula text accept the same written form of a namesake. The short suffix a readback prints, such as
Currency#3besideCurrency#8, names the object it prints for, and a suffix of three or more hex digits is checked against the object’s retained identity, so a reference issued for a deleted object never moves to a new namesake. - A backticked name that no object carries, such as
`Amount#3c2`, reads as the reference it quotes. In a table row or column, backticks still mark a literal new name.
Check before you save
A table write is atomic: the whole change saves, or none of it does. Onlycreate takes dry_run: true, which validates a new table without writing; edits to saved tables and deletions take no dry run. Before a formula saves, the calculation service checks its expression. When the service cannot run that check in time, the formula still saves and the receipt warns The calculation service did not check this formula. followed by the service’s own sentence; the table then shows any calculation error the way it does for a formula typed in the app. A check on a rule’s own condition still has to answer, and a write past its answer deadline still saves nothing. Validate and verify formula writes has the details.
Read back what you saved
- Ask for a readback in the same write with
readback.rowsandreadback.columns.rowsalone reads every column,columnsalone every top-level row, and a renamed Variable or Dimension resolves under either name.readback.depthadds child levels:1adds each row’s items,2theirs, andallevery level; omitted reads the selected rows alone.readback.alsoreads up to 3 other saved tables at the same change, each entry{"target", "rows", "columns", "depth"}with the readback’s own meanings: omittedrowsreads every top-level row, omittedcolumnsevery column, anddepthnests the same way. Each entry’s result comes back underreadback_alsoin request order. Thealsotables calculate beside the edited table’s readback, at most two at a time, inside the one readback deadline, which ends 2 seconds before the call’s answer deadline; an entry that deadline cuts off reads “This table could not be read at the receipt’s readback change; the edit’s outcome stands. The edited table and the readback.also tables are read side by side before that one deadline; this table’s read started N seconds before it.” Withoutreadback, anupdateorreshapecalculates the rectangle of its written rows and columns only up to a size limit; a larger edit still saves, and only its calculated values are left out of the receipt. Deadlines and readbacks gives the limit and what the receipt says instead. - An
update,reshape, ordeletemay carrybased_on: theas_ofof the table read, or thechange_log_idof the table write, it builds on. The edit saves either way. When someone else saved to the table after that point, the receipt adds achanged_since_readissue naming each save and who made it: a person by name, “a person in the app”, “Ari in another chat”, or “an automated process”, up to five saves and then a count. - Check the intended Scenario, representative dates and segments, formula origins, and the actual numbers. When the receipt carries warnings, read them before moving on. Validate and verify formula writes lists them.