-
Notifications
You must be signed in to change notification settings - Fork 64
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
Proper support for cross-sheet references, was "Errors creating pivot tables in separate sheets" #160
Comments
@LTibbetts so far |
@qrilka Thanks for the quick reply! It is not important that I have the data and pivot table in different sheets, just a matter of stylistic preference, so I will continue with them in the same sheet. You may close the issue if you want to as I will likely not have the time to work on adding support for this, or leave it open for future users to find easily. |
I think we should leave it as something that's better be fixed, thanks |
Hey I didn't look into how PivotTable are actually meant to work, and whether cross-sheet CellRef should be involved. But regarding that error, it seems like writer accumulator functions like The fact there's a single _pvtSrcSheet <worksheetSource sheet="" ref=""> hints IMO the _pvtSrcRef is shaped like a local, relative ref (looks like pivot tables references are either self->self or self->1 other). All that to say there might be a quick win without changing the expectations about the cellref format. I'd need to dissect a file and reads the specs though to be sure 😄 About refining the CellRef type, I've thought a bit about them while making the tests, could be:
But I digress, that's stuff for another issue |
I have followed the examples for pivot tables from the test directory and have been able to successfully generate an xlsx file with a working pivot table. However, when I attempt to move the pivot table to a separate sheet, the writer throws the following exception.
If there is a working example of pivot tables being written to a different sheet, I would love to see it. Any help would be appreciated.
The full code example of what I am currently trying is this with the pivot table in the first sheet and the data in the second sheet.
The text was updated successfully, but these errors were encountered: