HotXLS Docs

Ordinary ODS Pivot aggregates

A real editable data-pilot view

The ordinary local bridge translates admitted ODS data-pilot tables into typed local-source Pivot caches and views, and exports current materialized views with actual source ranges, field identities, aggregation functions and target ranges; the independent collection profile below extends the established single-view route

The established single-row profile has one string row field and one numeric measure 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 aggregationODF functionNumeric-source result
xlpaSumsumSum of source measures
xlpaCountcountOne contribution per admitted record, including zero and negative measures
xlpaAverageaverageAverage of original source measures in each category and across all source records
xlpaMinminSmallest source measure, initialized from the first admitted value
xlpaMaxmaxLargest source measure, initialized from the first admitted value

count retains its ODF identity and is not rewritten to countnums; this bridge's numeric-only source restriction makes every admitted measure countable without adding text or blank COUNT profiles

The grand average consumes every original record independently, rather than averaging category averages; MIN and MAX do not require an unrelated sum to remain finite

The separate multi-row-field path profile adds represented parent/child identities, SUM subtotals, member visibility and explicit measure/grand captions; its layout limits do not extend 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, retaining a real editable cache, the numeric aggregate and current materialized result ownership

The extra field must have no source field name, hidden orientation, the automatic or default function, only the default hierarchy when specified, and exactly one empty neutral level

This field organizes 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, retain their values through normal import and output; explicit source refresh and rematerialization remain necessary after edits

Visible, duplicate, named, aggregated or actively nested layout fields keep the complete raw collection path; this does not add general member layouts, multiple measures or filtering

The existing source/cache/grid, caption, numeric persistence and independent AVG agreement checks still apply, including refusal of the demonstrated cancellation sequence

Several independently owned ordinary views

Version 2.384.395 translates up to 16 ordinary local Pivot views in one workbook, each with its own actual cache, distinct source identity and non-overlapping materialized target rectangle

Each view retains the existing two-column source, one string row field, one finite numeric measure, one-header result, General number format and SUM, COUNT, AVERAGE, MIN or MAX requirements; different views can use different supported aggregations

Create each view through the existing AddPivotTable API and materialize it explicitly; after editing its source, call RefreshPivotCache and MaterializeNativePivotTable before saving again, even when 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 remain outside this independent-cache collection profile

Import validates every descriptor, source, result grid, name and owner relationship before constructing typed objects; an unsupported member leaves the entire collection raw, with no partial typed import

Ordinary multi-view output and its conversion report use the same complete preflight, preserving caller output on refusal; each view must retain current source/cache/result and caption ownership

The qualified collection has no Slicer or Timeline objects; combinations with interactive summaries retain their separate limitations and do not acquire the same report/output qualification

Multi-view staging charges descriptor storage before aggregate work and checks the complete generated fragment against the existing 262144-character bound, including a 4096-character namespace reserve; the existing single-view path keeps its prior output contract

The integrated source passes 239 focused checks and 555 independent checks over 19 ODS packages; this includes all five aggregations, source destruction, normal reopen, independent edits, caption updates, whole-collection raw fallback and budget refusal with healthy retry

A separately recorded LibreOffice 26.2.5.2 window normally opens the library-authored two-view SUM/COUNT input, locally refreshes both views, 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 and the 29-check library import, save, source-destruction, reopen and own-source refresh lifecycle included in the 239 focused checks

Four complete candidate/final output package bridges retain all 28 named entries, allowing only the exact producer-version replacement in the ODF generator node; the final version requires no repeated native window

Genuinely shared caches, multiple measures, advanced visible layouts, expanded members, external sources and unsupported numeric or caption semantics remain 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, including mixed collections with additional independent source groups within the existing 16-view limit

Each view retains its own supported aggregation, target rectangle, captions and captured result ownership; the ordinary two-column source, single row field, single numeric measure and all existing numeric and format requirements 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, normalized rectangle, field schema and current source records

This explicit adoption policy does not claim to recover a native cache identifier or 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 remain unsupported instead of being silently merged

A shared RefreshPivotCache updates current cache records without replacing the individual views' result captures; explicitly materialize each stale view before exporting the complete collection

Materializing COUNT alone cannot hide an outdated SUM grid, and unchanged aggregate values cannot substitute for current source records; an already correct result can remain eligible after a real cache refresh without an unconditional extra materialization

Changing one view's display caption does not rename the shared source schema or replace its sibling's captured ownership

Every imported descriptor, source, grid and pair relationship is checked before constructing the typed graph, while complete output preflight and the ordinary no-Slicer/Timeline report boundary remain unchanged

The final integrated source passes 235 focused checks and 405 independent checks, including source destruction, normal reopen, mixed cache groups, identity and budget refusal, complete raw fallback and unchanged single-view output

One separately recorded LibreOffice window passes 80 semantic and 44 process-protocol checks on the actual same-source SUM/COUNT specimen, with the document-serving process held through normal exit

Native refresh rebuilds localized captions in this observed source; the actual native-saved file supplies 45 library readback checks within 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 with 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 independent cache-history preservation remain separate work

Authoring and explicit refresh

  1. Create the view with TXLSXWorksheet.AddPivotTable, then call AddRowField and AddDataFieldByName with one of the five exact aggregation enums
  2. Set Pivot.FirstDataRow := Pivot.FirstRow + 1 for this one-header-row output profile and choose a row-header caption consistent with the current materialized cells
  3. Call Workbook.MaterializeNativePivotTable(Pivot) and check that it returns 1 before SaveAsODS
  4. After source edits, call Workbook.RefreshPivotCache(Pivot.CacheId), check its result, materialize again and then export
  5. After changing an effective row, measure or grand-total caption, materialize again before export

The default newly created Pivot layout may reserve another measure-caption row; changing the aggregate does not change that existing layout default, and that two-header layout remains outside this ODS profile

Source freshness is checked against actual cache records even when the displayed aggregate stays unchanged; for example, changing a numeric measure under COUNT still requires explicit cache refresh

Ordinary opening and saving do not implicitly refresh the source cache or rematerialize result cells; the bridge independently validates source aggregates 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, while retaining 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 remain 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 replace its raw cache provenance with 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 authorize 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 that fail 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 introduced

AVERAGE uses the shared Pivot core's source-order running mean and additionally requires 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 while actual LibreOffice refresh produces 0; this sequence refuses typed ODS translation instead of 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 do not acquire an unrelated sum-overflow condition

Distinct case-equivalent categories reject 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 materialization ownership before publishing destination output

Unsupported typed export reports unsupported and refuses before replacing the destination; unsupported or mixed imported ODS collections retain their existing whole raw ODS representation

Raw ODS preservation is separate from typed translation and does not promise 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 remain 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 before their relevant allocations

These working-state limits do not establish a 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 visible grand totals

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 is independent of 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: its page label and selection occupy the first row, its second row is blank, its ordinary header is at offset 2 and its first data row is at offset 3, followed by the grand total

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 rematerialization before replacement

Typed ODS input distinguishes an active standard table:selected-page from a member visibility mask; loext:ignore-selected-page="true" makes any retained selected-page hint inactive, so an obsolete hint cannot turn an all-members result into a single-member result

Native all-members labels may be localized; 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 remain outside this first page profile and refuse typed conversion or retain 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 normalizes this redundant mask while preserving the fixed selector

LibreOffice 26.8.2.2 qualification covers one actual product-generated East selection through open, refresh and native save/reopen, followed by typed library return with all four source/cache records retained; 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 retains that mask mode; deliberately clear the page items' IsHidden flags before replacing it with a different fixed PageItemIndex

Focused library qualification covers source-value refresh and both same-book and cross-workbook whole-worksheet graph copying; copying a dependency graph can clone its data worksheet, so the cloned source remains a different source even when its values match

Internal version 2.384.853 also accepts independently copied page caches over the same actual complete data source, with exact cache metadata, field, member and record equivalence checked before typed reopening shares that cache; each view retains its own selection and result owner

A page-filtered view can coexist with an ordinary two-row-field view over that same source under each profile's existing axis and sorting rules, preserving the unfiltered view's full-source totals when the page view changes selection

After a shared source refresh, explicitly materialize 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 separately from library-only refresh and copying

Numeric COUNT with a page field

Internal version 2.384.856 extends the ordinary one-page, one-row profile to xlpaCount alongside xlpaSum, retaining the complete numeric source, all cache records and the same result ownership limits

COUNT counts each numeric source record satisfying the page selection, including repeated row categories; it does not add the amounts or count distinct categories

The aggregation survives ODS metadata, typed reopening, materialization 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 preserve different page selections and share the exact cache after reopening, with 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, allowing the source workbook to be released and the original package to be unavailable before saving

This COUNT increment is qualified by library lifecycle and complete package inspection; it adds no native application acceptance and does not admit blanks, text, Boolean, date, formula or error measures, additional page axes or aggregates beyond SUM and COUNT

AVERAGE with an ordinary page field

Internal version 2.384.862 extends the ordinary one-page, one-row profile to xlpaAverage, using each selected numeric source record for both row averages and the independent grand average

The grand total divides the selected source sum by its numeric record count rather than averaging 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, while text, Boolean, date, formula and error measures remain outside this profile

A selected row or page containing only missing measures retains 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 replacing the owned frame, and restoring the original state permits a retry

The aggregation and missing-record identities survive typed ODS reopening, source-workbook release and cross-workbook worksheet copying, including a destination whose original source-sheet name is occupied

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 retained; the actual native-saved file returns as a typed Pivot, accepts a new source value and refreshes again

The reader recognizes 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 materialization; 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 extends the ordinary one-page, one-row profile to xlpaMin and xlpaMax using the same missing-record handling as xlpaAverage, so absent or empty data cells do not count as zero and negative maxima stay negative

Focused Win64 lifecycle checks and LibreOffice Calc headless round-trips verify xlpaMin and xlpaMax across 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 extends 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 materialized row categories match the declared sort order before OpenDocument export; changing SortType without rematerializing 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 remain separate work

Stored captions can survive typed transport while another application's refresh regenerates localized captions; category ordering beyond the separately qualified NAME and DATA member profiles, interactive controls and cross-application style equality remain outside this profile

Native expanded data-pilot definitions retain 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 containing one string row field, one numeric SUM measure, manual member lists and no hidden data-layout field as editable cache/view models rather than retaining only their result cells

The represented compact and standard tabular forms retain their actual layout flags, show-empty and drill settings, raw member identities, manual order, visibility and supported captions; standard tabular input is not forced into compact layout

The complete source rectangle, every cache record and every result/header/grand cell must agree before typed admission; unsupported nodes, unrepresented grand-label owners and inconsistent input keep the complete raw collection

After a source edit, explicitly refresh the cache and rematerialize 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 materialization 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 while retaining all active source semantics

This profile retains 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 remain outside it

Multiple-measure native layout

See the version 2.384.406 multiple-measure profile for its source schema, two-header layout, caption, native-refresh and 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 finite native qualification

Measure-sorted ordinary row members

See the version 2.384.450 DATA-sorted multiple-measure profile for actual measure identity, ascending and descending aggregate ordering, explicit OpenDocument materialization and consumer-specific ownership