Ordinary ODS Pivot aggregates
A real editable data-pilot view
The ordinary local bridge translates one ODS data-pilot table into a typed local-source Pivot cache and view, and exports one current materialised view with an actual source range, field identities, aggregation function and target range
The supported view has one string row field and one numeric measure drawn from exactly two adjacent local source columns; it retains one header row, category results and a grand-total row, with Pivot.DataFields[0].NumberFormat = 0
| Public aggregation | ODF function | Numeric-source result |
|---|---|---|
xlpaSum | sum | Sum of source measures |
xlpaCount | count | One contribution per admitted record, including zero and negative measures |
xlpaAverage | average | Average of original source measures in each category and across all the source records |
xlpaMin | min | Smallest source measure, initialised from the first admitted value |
xlpaMax | max | Largest source measure, initialised from the first admitted value |
count retains its ODF identity and is not rewritten to countnums; this bridge's numeric-only source restriction means every admitted measure is countable without adding text or blank COUNT profiles
The grand average consumes every original record independently rather than averaging category averages; MIN and MAX need no unrelated sum to remain finite
The separate multi-row-field path profile brings represented parent/child identities, SUM subtotals, member visibility and explicit measure/grand captions; its layout limits do not stretch to every ordinary or multiple-measure combination
Native hidden single-measure layout fields
Version 2.384.363 imports ordinary native ODS tables that also contain one hidden data-layout field, keeping a real editable cache, the numeric aggregate and current materialised result ownership
The extra field must have no source field name, hidden orientation, the automatic or default function, only the default hierarchy where one is specified, and exactly one empty neutral level
This field organises measure presentation; in the admitted one-measure view it adds no source column or visible data axis, so ordinary canonical ODS output contains only the real row and measure fields
The actual native SUM, COUNT, AVERAGE, MIN and MAX sources, including an ordinary fractional mean, keep their values through normal import and output; explicit source refresh and rematerialisation remain necessary after edits
Visible, duplicate, named, aggregated or actively nested layout fields follow the complete raw collection path; this adds no general member layouts, multiple measures or filtering
The existing source/cache/grid, caption, numeric persistence and independent AVG agreement checks still apply, taking in refusal of the demonstrated cancellation sequence
Several independently owned ordinary views
Version 2.384.395 translates up to 16 ordinary local Pivot views within one workbook, each with its own actual cache, its own source identity and a non-overlapping materialized target rectangle
Each view keeps the existing requirements: two-column source, one string row field, one finite numeric measure, a one-header result, General number format and SUM, COUNT, AVERAGE, MIN or MAX; different views may use different supported aggregations
Create each view through the existing AddPivotTable API and materialize it explicitly; once its source has been edited, call RefreshPivotCache and MaterializeNativePivotTable before saving again, even where a COUNT result has not changed
The source-range overload reuses a cache for the same worksheet and source rectangle; those genuinely shared-cache views sit outside this independent-cache collection profile
Import validates every descriptor, source, result grid, name and owner relationship before typed objects are constructed; an unsupported member leaves the whole collection raw, with no partial typed import
Ordinary multi-view output and its conversion report use the same complete preflight, preserving caller output when refusing; each view must keep current source, cache and result ownership plus caption ownership
The qualified collection holds no Slicer or Timeline objects; combinations with interactive summaries keep their separate limitations and do not acquire the same report/output qualification
Multi-view staging charges descriptor storage ahead of aggregate work and checks the complete generated fragment against the existing 262144-character bound, a 4096-character namespace reserve included; the existing single-view path keeps its earlier output contract
The integrated source passes 239 focused and 555 independent checks over 19 ODS packages; this covers all five aggregations, source destruction, normal reopen, independent edits, caption updates, whole-collection raw fallback and budget refusal with a healthy retry
A separately recorded LibreOffice 26.2.5.2 window normally opens the library-authored two-view SUM/COUNT input, refreshes both views locally, saves and normally reopens it; 80 native semantic and 44 process-protocol checks pass with the actual serving engine held through normal exit
The real native-saved collection also passes 19 independent XML checks plus the 29-check library import, save, source-destruction, reopen and own-source refresh lifecycle counted within the 239 focused checks
Four complete candidate/final output package bridges retain all 28 named entries, permitting only the exact producer-version replacement in the ODF generator node; the final version needs no repeated native window
Genuinely shared caches, multiple measures, advanced visible layouts, expanded members, external sources and unsupported numeric or caption semantics are still separate work
Shared caches with independently owned results
Version 2.384.396 extends ordinary ODS Pivot collections to several views bound to one real typed cache, mixed collections with extra independent source groups inside the existing 16-view limit included
Each view keeps its own supported aggregation, target rectangle, captions and captured result ownership; the ordinary two-column source, single row field, single numeric measure and every existing numeric and format requirement still apply
On import, standard ODF supplies source and view definitions without an OOXML-style cacheId; the bridge adopts one typed cache per proven source group, using the same actual worksheet, normalised rectangle, field schema and current source records
This explicit adoption policy does not claim to recover a native cache identifier or to inspect another application's internal cache allocation
On export, views in one equivalent source group must already share the same owned cache object and identifier; two genuinely distinct caches with the same source stay unsupported rather than being silently merged
A shared RefreshPivotCache updates current cache records without replacing the individual views' result captures; materialise each stale view explicitly before exporting the complete collection
Materialising COUNT alone cannot hide an out-of-date SUM grid, and unchanged aggregate values cannot stand in for current source records; an already correct result may remain eligible after a real cache refresh without an unconditional extra materialization
Changing one view's display caption neither renames the shared source schema nor replaces its sibling's captured ownership
Every imported descriptor, source, grid and pair relationship is checked before the typed graph is constructed, whilst complete output preflight and the ordinary no-Slicer/Timeline report boundary stay unchanged
The final integrated source passes 235 focused and 405 independent checks, source destruction, normal reopen, mixed cache groups, identity and budget refusal, complete raw fallback and unchanged single-view output included
One separately recorded LibreOffice window passes 80 semantic and 44 process-protocol checks on the actual same-source SUM/COUNT specimen, along with the document-serving process held through normal exit
Native refresh rebuilds localised captions within this observed source; the actual native-saved file supplies 45 library readback checks inside the 235 focused checks, adopting its real headers and testing shared refresh, stale-SUM refusal, independent materialization and source-free reopening
Production qualification bridges four complete ODS packages holding all 28 named entries, permitting only the exact producer-version change in the owned ODF generator node; it creates no new native window
Multiple measures, advanced visible layouts, expanded members, calculations, filters, interactive combinations, external database semantics and arbitrary preservation of independent cache history remain separate work
Authoring and explicit refresh
- Create the view with
TXLSXWorksheet.AddPivotTable, then callAddRowFieldandAddDataFieldByNamewith one of the five exact aggregation enums - Set
Pivot.FirstDataRow := Pivot.FirstRow + 1for this one-header-row output profile and choose a row-header caption consistent with the current materialised cells - Call
Workbook.MaterializeNativePivotTable(Pivot)and check that it returns1beforeSaveAsODS - After source edits, call
Workbook.RefreshPivotCache(Pivot.CacheId), check its result, materialise again and then export - After changing an effective row, measure or grand-total caption, materialise again before export
The default newly created Pivot layout may reserve another measure-caption row; changing the aggregate does not alter that existing layout default, and that two-header layout stays outside this ODS profile
Source freshness is checked against actual cache records even when the displayed aggregate stays unchanged; for instance, changing a numeric measure under COUNT still requires explicit cache refresh
Ordinary opening and saving do not implicitly refresh the source cache or rematerialise result cells; the bridge validates source aggregates independently against the retained output
Native local OOXML views
The explicit native local route accepts a neutral default subtotal mask on the single data-only measure when it has no items, whilst keeping all existing source/cache/grid and numeric-agreement checks
Original rich caption formatting remains a caller-visible edit decision, General is an explicit verified declaration and unrelated workbook losses are still reported
After normal XLSX reopening
A newly imported raw OOXML cache is not immediately an eligible ODS source; the existing public local-source refresh can swap its raw cache provenance for a current represented cache
For the ordinary qualified two-field XLSX lifecycle, call RefreshPivotCache(Pivot.CacheId), explicitly declare the measure role with Pivot.SetFieldAxis('Amount', xlpfaDataField) using the actual source field name, and then call MaterializeNativePivotTable(Pivot)
All original source, field, cache, caption, ownership and format checks still apply; declaring the role does not make an unsupported view eligible or authorise discarding imported metadata
Source and result numbers
Every source number must be finite, nonsubnormal and unchanged by the actual ODS number writer followed by reparsing; source values failing this check refuse typed export
Stored category and grand-total results must equal the independently aggregated source result or its existing explicit 15-significant-digit persistence projection; no general floating-point tolerance is brought in
AVERAGE uses the shared Pivot core's source-order running mean and additionally demands agreement with an independent source-order sum divided by count, either exactly or after both values pass the existing 15-significant-digit persistence projection; category results and grand totals have separate state and all required arithmetic must remain finite
The cancellation sequence [1e16, 1, 1, -1e16] produces a running mean of 0.5 in the shared core whilst actual LibreOffice refresh produces 0; this sequence refuses typed ODS translation rather than publishing an unstable Pivot result
This additional finite admission check does not establish every application's floating-point algorithm or a general numeric tolerance; COUNT, MIN and MAX pick up no unrelated sum-overflow condition
Distinct case-equivalent categories are refused because native and core grouping can differ; whitespace remains part of category identity
Conversion and resource boundaries
Qualified typed translation reports preserved Pivot semantics; export validates current source values, cache records, output values, captions and materialisation ownership before publishing destination output
Unsupported typed export reports unsupported and refuses before replacing the destination; unsupported or mixed imported ODS collections keep their existing whole raw ODS representation
Raw ODS preservation is separate from typed translation and promises no original ZIP or lexical XML bytes; cross-format reports distinguish retained result cells from lost Pivot semantics
Sources have 1 through 65536 records with nonempty distinct string headers, nonempty string categories and ordinary numeric measures; formulas, arrays, rich text, metadata, blanks, Boolean, date and error measures all sit outside this profile
The existing descriptor, XML, field and source-range limits remain active; the caller's formula-array memory limit admits aggregate vectors, key slots, retained text and later grid bookkeeping ahead of their relevant allocations
These working-state limits establish no whole-Workbook or whole-process memory ceiling
Ordinary page-field selection
Internal version 2.384.852 adds one ordinary string page field, one ordinary string row field and one SUM measure over a complete local three-column source, with manual member order, General number formatting and grand totals on show
Create the page axis with AddPageField and set its PageItemIndex to the raw cache-item identity of the desired member, or xlPageItemAll for all members; a cache-item identity pays no heed to an item's position in the view collection
Use noncompact, nonoutline axes without subtotals, set the row field's ShowAll := False, and enable IncludeNewItemsInFilter for ordinary page and row members before calling MaterializeOdsPivotTable; after editing source values, call RefreshPivotCache first
The complete physical rectangle starts at FirstRow and FirstCol: page label and selection fill the first row, the second row stays blank, the ordinary header sits at offset 2, the first data row at offset 3, and the grand total follows
Selection changes the aggregate predicate without deleting any worksheet source rows, cache records or unselected page members; the complete page controls, separator row and results are owned together, and changing an old owned cell refuses rematerialisation before replacement
Typed ODS input distinguishes an active standard table:selected-page from a member visibility mask; loext:ignore-selected-page="true" renders any retained selected-page hint inactive, so an obsolete hint cannot turn an all-members result into a single-member one
Native all-members labels may be localised; displayed labels never determine the selection predicate, which is taken from metadata and raw source-member identities
Imported raw OOXML page layouts, multiple page or row fields, column axes, aggregates beyond SUM and COUNT, calculated/grouped fields, custom member captions, NAME or DATA sorting, providers and appearance parity stay outside this first page profile, refusing typed conversion or keeping the original raw ODS representation
The writer includes a redundant matching singleton visibility mask beside an active fixed selector so represented native consumers keep the selection when refreshing; library readback normalises this redundant mask whilst preserving the fixed selector
LibreOffice 26.8.2.2 qualification covers one actual product-generated East selection through open, refresh and native save/reopen, then typed library return with all four source/cache records kept; the earlier all-visible fixed-selector output remains a failed refresh counter
If an external application saves the selector as an ignored hint plus a visibility mask, typed readback keeps that mask mode; deliberately clear the page items' IsHidden flags before replacing it with a different fixed PageItemIndex
Focused library qualification spans source-value refresh and both same-book and cross-workbook whole-worksheet graph copying; copying a dependency graph may clone its data worksheet, so the cloned source remains a different source even where its values match
Internal version 2.384.853 also takes independently copied page caches over the same actual complete data source, checking exact cache metadata, field, member and record equivalence before typed reopening shares that cache; each view keeps its own selection and result owner
A page-filtered view can sit alongside an ordinary two-row-field view over that same source under each profile's existing axis and sorting rules, the unfiltered view's full-source totals surviving any selection change on the page view
After a shared source refresh, explicitly materialise each affected view; equal cache payloads alone do not prove a current worksheet source, and divergent caches, stale source data or changed old page controls retain their existing refusal protections
The ODF 1.3 selected-page definition describes the standard selector; actual native selection qualification is recorded apart from library-only refresh and copying
Numeric COUNT with a page field
Internal version 2.384.856 widens the ordinary one-page, one-row profile to xlpaCount alongside xlpaSum, keeping the complete numeric source, all cache records and the same result ownership limits
COUNT tallies each numeric source record meeting the page selection, repeated row categories included; it neither adds up the amounts nor counts distinct categories
The aggregation survives ODS metadata, typed reopening, materialisation and explicit cache refresh; changing a source amount still requires refresh even when the COUNT result would remain numerically unchanged
Independent COUNT and SUM views over the same complete source can hold different page selections yet share the exact cache after reopening, each physical page-control and result rectangle owned separately
Whole-sheet cross-workbook copying preserves both aggregation identities and copies their source dependency under a collision-free name, so the source workbook can be released and the original package unavailable before saving
This COUNT increment is qualified by library lifecycle and complete package inspection; it adds no native application acceptance and admits neither blanks, text, Boolean, date, formula or error measures, additional page axes, nor aggregates beyond SUM and COUNT
AVERAGE with an ordinary page field
Internal version 2.384.862 widens the ordinary one-page, one-row profile to xlpaAverage, with each selected numeric source record serving both the row averages and the independent grand average
The grand total divides the selected source sum by its numeric record count instead of averaging the displayed row averages; repeated categories keep their actual weight
True missing measures, including absent cells, Empty and Null, remain missing in the complete source and cache and contribute neither sum nor count; an actual numeric zero contributes one record, whilst text, Boolean, date, formula and error measures remain outside this profile
A selected row or page holding nothing but missing measures keeps blank results and source-backed row identities; the complete page control, separator, headers, result cells and grand total share the same overwrite protection
Call RefreshPivotCache after source changes and then MaterializeOdsPivotTable; stale source/cache values or a modified old blank result refuse before the owned frame is replaced, and restoring the original state allows a retry
The aggregation and missing-record identities come through typed ODS reopening, source-workbook release and cross-workbook worksheet copying, a destination whose original source-sheet name is taken included
One actual LibreOffice 26.8.2.2 missing-measure source passes open, refresh, save and reopen with all eight source records, two blank row results and its record-weighted grand average kept; the actual native-saved file returns as a typed Pivot, takes a new source value and refreshes once more
The reader recognises the native application's single inert hidden data-layout field without treating it as a fourth source field; active layout fields and unrepresented metadata retain the existing refusal and raw-preservation boundaries
Excel output still requires explicit MaterializePivotTable after OpenDocument materialisation; this increment preserves the source/cache and AVERAGE identity through that transition without changing the ordinary preview's empty-result convention or claiming native Excel appearance parity
MIN and MAX with an ordinary page field
Internal version 2.385.220 brings xlpaMin and xlpaMax into the ordinary one-page, one-row profile, using the same missing-record handling as xlpaAverage; absent or empty data cells therefore do not count as zero, and negative maxima stay negative
Focused Win64 lifecycle checks and LibreOffice Calc headless round-trips put xlpaMin and xlpaMax through all-member, selected-member, negative-only, all-blank, edited-source refresh and tampered-grid refusal scenarios
NAME sorting with an ordinary page field
Internal version 2.385.228 takes the ordinary one-page, one-row profile across all five supported aggregations (xlpaSum, xlpaCount, xlpaAverage, xlpaMin, and xlpaMax) to case-insensitive ascending and descending member-name sorting (xlpfstAscending and xlpfstDescending) on both the row field and the page field, alongside xlpfstManual
Call MaterializeOdsPivotTable after changing SortType so the materialised row categories match the declared sort order before OpenDocument export; changing SortType without rematerialising reports a conversion loss, and independent xlpaMin and xlpaMax page caches over the same local source are admitted in multi-view collections
Remaining layouts and sources
Advanced views beyond the separately described ordinary member and page-selection profiles, calculated measures, grouping, nondefault number formats or refresh settings, Slicer/Timeline dependencies and external connections stay separate work
Stored captions can survive typed transport whilst another application's refresh regenerates localised captions; category ordering, interactive controls and cross-application style equality sit outside this profile
Native expanded data-pilot definitions keep their raw preservation path unless the complete actual definition satisfies the typed contract; removing member or layout nodes does not qualify the original native file
Ordinary native Pivot return
Version 2.384.858 imports native local data-pilot definitions holding one string row field, one numeric SUM measure, manual member lists and no hidden data-layout field as editable cache/view models rather than hanging on to only their result cells
The represented compact and standard tabular forms keep their actual layout flags, show-empty and drill settings, raw member identities, manual order, visibility and supported captions; standard tabular input is never forced into compact layout
The complete source rectangle, every cache record and every result/header/grand cell have to agree before typed admission; unsupported nodes, unrepresented grand-label owners and inconsistent input hold on to the complete raw collection
After a source edit, explicitly refresh the cache and rematerialise the native layout before saving; a newly introduced numeric value is distinct from retained inactive numeric cache history, and output preparation does not purge or rewrite a live shared cache
A native definition generated by explicit materialisation is accepted for ODS only when independently rebuilt known metadata matches its complete retained tree and the current source, cache, result and overwrite ledger remain proved; unknown raw metadata is not removed to obtain conversion permission
One actual four-record source is qualified through a 10-to-15 edit, source-file removal, ODS and Excel saves/reopens, actual LibreOffice 26.8.2.2 refresh/save/reopen and typed return of both native-saved files; native consumers may discard inactive numeric history whilst retaining all active source semantics
This profile keeps coherent compact or tabular field pairs; mixed compact owners, disabled show-empty states, additional row/page/column axes, non-SUM measures, non-General measure formatting, external or raw cache graphs, custom numeric member masks/captions and other unrepresented metadata stay outside it
Multiple-measure native layout
See the version 2.384.406 multiple-measure profile for its source schema, two-header layout, captions, native refresh and the remaining interoperability boundaries
Ordinary row members
See the version 2.384.408 row-member profile for its source identities, NAME sorting, visibility, independent captions, explicit refresh and the finite native qualification
Measure-sorted ordinary row members
See the version 2.384.450 DATA-sorted multiple-measure profile for real measure identity, aggregate ordering in either direction, explicit OpenDocument materialisation and consumer-specific ownership