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

Getting subtotal for each and every level of a column. #48

Closed
WSAyan opened this issue Sep 19, 2017 · 4 comments
Closed

Getting subtotal for each and every level of a column. #48

WSAyan opened this issue Sep 19, 2017 · 4 comments

Comments

@WSAyan
Copy link

WSAyan commented Sep 19, 2017

Is there any way to calculate subtotal column wise. For example I have generated table like following screenshot , what i want to get here is to calculate the subtotal of each rows.

sub

@nagarajanchinnasamy
Copy link
Owner

Hi @WSAyan

Thanks for your interest in Subtotal.js 👍

This library provides support for both row-wise and column-wise subtotal. Have you checked the examples here.

Please explain your requirement using one of the examples. So that I am able to understand your requirement better.

@WSAyan
Copy link
Author

WSAyan commented Sep 21, 2017

Sorry for the unclear question. I was a bit confused about what I want. I am trying to ad calculated column fields based on user calculation. So far I've been able to calculate percentage of C _WEALTH_RANK_A based on G_WEALTH_RANK_TOTAL as you can see them on following screenshot. And the calculation works fine but the problem is when Subtotal.js calculating all the values according to its attributes (eg: sum,integer sum,count) . So I guess what I need is to get subtotal values of a column in each and every level so that I can calculate another calculated column field based on those subtotal values.
sub2

PS: I am changing the name of the issue as it is irrelevant to the topic. Again sorry for such a stupid question.

@WSAyan WSAyan changed the title Subtotal for each row with column values Getting subtotal for each and every level of a column. Sep 21, 2017
@nagarajanchinnasamy
Copy link
Owner

nagarajanchinnasamy commented Sep 24, 2017

@WSAyan Thanks for the explanation. If I understood your requirement correct, I think, its same as issue: #41 Aggregator on the subtotal only.

Please confirm my understanding is correct or not.

@WSAyan
Copy link
Author

WSAyan commented Sep 28, 2017

Yes it is pretty much same issue. Thanks a lot. 👍

@WSAyan WSAyan closed this as completed Sep 28, 2017
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

No branches or pull requests

2 participants