Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 11212

Sum shared numbervar in group footer

$
0
0

Hi Experts,

 

I have a problem to sum the group footer totals correctly.

This is the situation;

------------

Main report:

 

productcode -A- (group header 1)

 

Invoicenumber 1     10 euro (record comes from sub report 1)

                         2     20 euro (record comes from sub report 1)

                         3     30 euro (record comes from sub report 1)

                         4     40 euro (record comes from sub report 2)

                         5     50 euro (record comes from sub report 2)  

 

product code -A- (group footer 1) Total : 90 euro (sum of records from sub report 2 via shared numbervar)

 

productcode -B- (next record group header 1)

 

Invoicenumber 4     20 euro  (record comes from sub report 2)                           

                         5     30 euro (record comes from sub report 2)

 

product code -B- (group footer 1) Total : 50 euro (sum of records from subreport 2 via shared numbervar)

 

----------------------------

And now the problem: I am trying to sum the records from product code A, invoice numbers 1,2,3 with the sum of the records from sub report 2.

It should give me a total of 150 euro instead of the 90 euro. I have no problem to get this done via a shared numbervar formula. But the problem is that the Total of product code B increased also with this shared numbervar formula, so the total of productcode B becomes 110 euro instead of 50 euro.

Is there a way to solve this ? Is there a solution to make sure it will only sum for the correct product code?


Viewing all articles
Browse latest Browse all 11212

Trending Articles