Skip to Content

How to get sub totals and grand total in Visual Composer

Dear All,

I have a requirement like displaying a subtotal and grand total based on field choosen.

Now i am able to display total for each line or end of all lines in model or grand total but unable to get subtotal at end of item.

current output:

line item 10

sut total - 50

line item 10

sut total - 50

line item -20

sub total -100

line item -20

sub total -100

expected output

line item 10

sut total - 100

line item -20

sub total -200

grand total - 300

i have tried with group by and calculation we are not able to use both options at a time.

Regards,

Raju

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 03, 2013 at 04:52 AM

    Hi Raju,

    I tried to create such an example, I hope it's relevant to your case.

    The original model:

    In Run-Time:

    Now I change the model to use the Aggregate Operator. I Group By the text field and also compute the Sub Total of the number field:

    Finally I connect a Table and use the Calcolation option on it (in the Configure Panel):

    The Run-Time:

    Hope it helps,

    Thanks,

    Udi


    1.PNG (17.8 kB)
    2.PNG (5.8 kB)
    3.PNG (33.3 kB)
    4.PNG (35.1 kB)
    5.PNG (5.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.