-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Pivot table calculated fields #885
base: develop
Are you sure you want to change the base?
Conversation
Wow. You have already begun to implement this, perfectly. Can I help you here? |
Thanks, but almost finished. Just need to figure out why sometimes the output file is corrupted. |
4e12843
to
ad49119
Compare
528a42e
to
759cebe
Compare
759cebe
to
e008615
Compare
b08e8e7
to
98890e1
Compare
@b0bi79 I must still add unit tests, but I think most of the pivot table calculated fields are now complete. You're welcome to test this branch and give feedback. |
71ba76a
to
de4d6f5
Compare
Of course, Francois, I already started testing. |
The generated file does not open in the Excel and when loading ClosedXML an exception occurs. |
I think that the calculated fields must be added to PivotCacheDefinition.CacheFields |
OK, will fix it. |
I found. If there are two PivotTables in the workbook that have the same data source, but there is a calculated field in one pivot table, and the other table does not, PivotCacheDefinition.CacheFields may be incorrect.
|
18fc8fe
to
8b81f1b
Compare
Yes, I too. I created this file with ClosedXML. I added to this file two pivot tables that have one data source. To the first table added calculated field, and to the second table does not. Tomorrow I'll try to write a test that reproduces this issue. |
Test is very simple. I created one file with Excel . Just opening and saving this file in ClosedXML degrade this file.
I saw what features are inside the xml in this file: the workbook.xml file has only one pivotCache element for all pivot tables in the workbook. ClosedXML on saving replaces pivotCache with invalid data. |
@b0bi79 I see now. I think a separate issue to consolidate pivot tables with shared sources should be completed first. |
8b81f1b
to
78f326f
Compare
@igitur , is this still WIP? Is there a work around in the meantime for me to open spreadsheets with calculated fields in a pivot table? |
facing the same issue, preventing me from using newer ClosedXML version .. Pivot and Calculated Fields have always been in my excel, but now this part is not just skipped .... Thx |
Yes, still WIP |
…ed according to custom name, not source name.
…earching for custom name)
78f326f
to
76291df
Compare
[work in progress]
Depends on
Allow pivot tables to have no theme #884Implement separate XLSheetviewContentManager #883Clear pivot table rendered range upon loading to avoid conflict on re… #856Implement the full range of Item subclasses for pivot tables #904Don't choke on pivot table saving when formulas fail #905Fix pivot table integrity when saving multiple times. #947First implementation of pivot table calculated fields.
Fixes #821 . Fixes #595 .
TODO:
Unit testsRemove pivot field when calculated field is removed.