Skip to content
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

Totals for horizontal subrange #288

Open
nikolay-atamanyuk opened this issue Oct 5, 2022 · 1 comment
Open

Totals for horizontal subrange #288

nikolay-atamanyuk opened this issue Oct 5, 2022 · 1 comment

Comments

@nikolay-atamanyuk
Copy link

Hi. I am very glad to work with ClosedXML.Report library, and it is very useful for ordinary reports. Can you help me to understands how I can template the following result, please?
I have a data source with complex property. All complex properties of the data source contain a list of equals length. Additionally, I have a list of names for every item of complex property. I try to map data source as flat table, complex property as subrange, names as horizontal table under subrange. But I need to summary by every column of a horizontal table, and I can't understand how it can be. I created an excel example of my variants, but in any case it's not working correct. Also, I tried to put horizontal range to the summary row, but it should not work, and it not work :). It looks like a pivot table, but I am not sure. Can you show me the right way for this, please?
HorizontalExample.xlsx

@Pankraty
Copy link
Member

I would probably count totals in code and output them as a plain horizontal table, below the main one. Much easier than trying to express this via multiple <<sum>> tags.

@nikolay-atamanyuk, does this look sufficient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants