Skip to content

Extend classic Open XML PivotTable timelines, transfers, and refresh - #100

Merged
jochenwezel merged 20 commits into
mainfrom
codex/openxml-pivot-calculation-combinations
Dec 4, 2026
Merged

jochenwezel merged 20 commits into
mainfrom
codex/openxml-pivot-calculation-combinations

Conversation

@jochenwezel

@jochenwezel jochenwezel commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Author timelines over grouped or ungrouped dates and apply or clear their selection. Transfer supported reports, PivotCharts and controls between workbooks, and retain workbook links when source data stays behind.
  • Preserve custom value formats, calendar bounds, and shared caches. Support calculated fields and calculated items together.
  • Add grouped numeric comparisons, inclusive intervals, and top or bottom filters by count, cumulative percentage, or sum. Evaluate nested filters separately within each parent group.
  • Create and refresh multilevel manual groups, numeric intervals, calendar groups from years through seconds, and multi-day buckets such as weeks.
  • Preserve cached series and flatten nested category labels when a PivotChart is detached from its report, following Microsoft Excel's transfer behavior.
  • Refresh supported classic external PivotTables from application-supplied rows. The workbook connection stays in place and Excel can refresh it again.
  • Retain embedded Data Model parts when saving a workbook with an OLAP PivotTable. Analysis Services and embedded Data Model refresh continue to require their respective runtime.
  • Use the native Linux test result reporter for the existing CI test commands.

Verification

On commit ac44053, the broad local .NET 8 Open XML and Excel-reference selection passed all 1,435 tests. The Pivot and external-data selection passed 149 tests on each of .NET 8 and .NET Framework 4.8. The 20 table filter reference cases also passed on both frameworks after updating the formula-backed filter case to check Excel parity. The native Excel reference checks cover the OLE DB refresh and reopening a saved workbook with a byte-identical embedded Data Model. The API documentation check passed.

The cross-platform workflow covers the exact PR head. The compatibility guide includes usage examples and the remaining runtime requirements.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (macos-latest) CompuMaster.MsExcelComInteropTest.dll

10 tests  ±0   10 ✅ ±0   0s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (macos-latest) CompuMaster.Excel.Test.dll

    1 files  ± 0      1 suites  ±0   1m 34s ⏱️ +7s
1 742 tests +45  1 742 ✅ +45  0 💤 ±0  0 ❌ ±0 
1 844 runs  +45  1 844 ✅ +45  0 💤 ±0  0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

This pull request removes 1 and adds 46 tests. Note that renamed tests count towards both.
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ SharedPivotCacheRefreshesEveryReportInOneWorkbookChange
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MovingAPivotReportAndSourcePreservesTheTimelineThatStaysBehind
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MovingAPivotSourceRetargetsTheReportThatStaysBehind(False)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MovingAPivotSourceRetargetsTheReportThatStaysBehind(True)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MultilevelPivotItemGroupsRetainTheirImmediateMembers(False)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MultilevelPivotItemGroupsRetainTheirImmediateMembers(True)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,100.0d,False,-10,1,7,20,20)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,50.0d,False,-10,-8,-2,-1,-11)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,50.0d,False,-4,1,1,2,0)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,50.0d,False,4,7,12,20,32)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,50.0d,True,-10,-8,-2,-1,-18)
…

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (macos-latest) CompuMaster.Excel.TestFreeSpireXls.dll

6 tests  ±0   6 ✅ ±0   1s ⏱️ -1s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (macos-latest) CompuMaster.Excel.TestSpireXls.dll

6 tests  ±0   6 ✅ ±0   0s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (ubuntu-latest) CompuMaster.MsExcelComInteropTest.dll

10 tests  ±0   10 ✅ ±0   0s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (ubuntu-latest) CompuMaster.Excel.Test.dll

    1 files  ± 0      1 suites  ±0   1m 7s ⏱️ -1s
1 742 tests +45  1 742 ✅ +45  0 💤 ±0  0 ❌ ±0 
1 844 runs  +45  1 844 ✅ +45  0 💤 ±0  0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

This pull request removes 1 and adds 46 tests. Note that renamed tests count towards both.
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ SharedPivotCacheRefreshesEveryReportInOneWorkbookChange
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MovingAPivotReportAndSourcePreservesTheTimelineThatStaysBehind
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MovingAPivotSourceRetargetsTheReportThatStaysBehind(False)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MovingAPivotSourceRetargetsTheReportThatStaysBehind(True)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MultilevelPivotItemGroupsRetainTheirImmediateMembers(False)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ MultilevelPivotItemGroupsRetainTheirImmediateMembers(True)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,100.0d,False,-10,1,7,20,20)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,50.0d,False,-10,-8,-2,-1,-11)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,50.0d,False,-4,1,1,2,0)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,50.0d,False,4,7,12,20,32)
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ PivotCumulativeRankingRoundTrips(Percent,50.0d,True,-10,-8,-2,-1,-18)
…

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (ubuntu-latest) CompuMaster.Excel.TestFreeSpireXls.dll

6 tests  ±0   6 ✅ ±0   0s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (ubuntu-latest) CompuMaster.Excel.TestSpireXls.dll

6 tests  ±0   6 ✅ ±0   0s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (windows-latest) CompuMaster.MsExcelComInteropTest.dll

10 tests  ±0   10 ✅ ±0   0s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (windows-latest) CompuMaster.Excel.Test.dll

    1 files  ±  0      1 suites  ±0   1m 59s ⏱️ -17s
2 725 tests +100  2 725 ✅ +100  0 💤 ±0  0 ❌ ±0 
2 827 runs  +100  2 827 ✅ +100  0 💤 ±0  0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

This pull request removes 1 and adds 101 tests. Note that renamed tests count towards both.
CompuMaster.Excel.Test.OpenXmlExcelOpsTest ‑ SharedPivotCacheRefreshesEveryReportInOneWorkbookChange
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelKeepsOpenXmlPivotItemGroupsAfterRefresh(False)
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelKeepsOpenXmlPivotItemGroupsAfterRefresh(True)
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelOpensDetachedPivotChartWithNestedCategoryLabels
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelOpensSeparatelyTransferredPivotChartOrReport(False,False)
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelOpensSeparatelyTransferredPivotChartOrReport(False,True)
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelOpensSeparatelyTransferredPivotChartOrReport(True,False)
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelOpensSeparatelyTransferredPivotChartOrReport(True,True)
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelPreservesOriginalConnectionAfterOpenXmlExternalPivotRefresh(False)
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelPreservesOriginalConnectionAfterOpenXmlExternalPivotRefresh(True)
CompuMaster.Excel.Test.ExcelOpsTests.Engines.MsExcelOpsTest ‑ ExcelRecognizesAPivotTimelineOnAnUngroupedSourceDate
…

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (windows-latest) CompuMaster.Excel.TestFreeSpireXls.dll

161 tests  ±0   161 ✅ ±0   20s ⏱️ -5s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Unit Test Statistics (windows-latest) CompuMaster.Excel.TestSpireXls.dll

163 tests  ±0   163 ✅ ±0   22s ⏱️ -9s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit ac44053. ± Comparison against base commit 088e706.

♻️ This comment has been updated with latest results.

@jochenwezel jochenwezel changed the title Transfer Open XML PivotTable slicers and combine calculated fields and items Transfer Open XML PivotTable controls and extend calculated reports Dec 2, 2026
@jochenwezel jochenwezel changed the title Transfer Open XML PivotTable controls and extend calculated reports Complete classic Open XML PivotTable timeline, transfer, and refresh workflows Dec 3, 2026
@jochenwezel jochenwezel changed the title Complete classic Open XML PivotTable timeline, transfer, and refresh workflows Extend classic Open XML PivotTable timelines, transfers, and refresh Dec 3, 2026
…alculation-combinations

# Conflicts:
#	ExcelOps-OpenXml/COMPATIBILITY.md
#	ExcelOps-OpenXml/OpenXmlExcelDataOperations.PivotTableCalculation.vb
#	ExcelOps-OpenXml/OpenXmlExcelDataOperations.PivotTableControls.vb
#	ExcelOps-OpenXml/OpenXmlExcelDataOperations.PivotTableSlicers.vb
#	ExcelOps-OpenXml/OpenXmlExcelDataOperations.PivotTableTimelines.vb
@jochenwezel
jochenwezel marked this pull request as ready for review December 4, 2026 10:39
@jochenwezel
jochenwezel merged commit dfd6030 into main Dec 4, 2026
7 checks passed
@jochenwezel
jochenwezel deleted the codex/openxml-pivot-calculation-combinations branch December 4, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant