Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8908

Sum of group data

$
0
0

Hi All,

 

 

I have a report contains 3 groups.one is Pos no,2 is employee name,3 is tender name.

I kept amount formula in detail section and sub_tot in group footer 2 and 3. in group footers of 2 and 3.I am getting sum of amount for tender names but i am not getting sum of employee names.I created reset variable for sub_tot and kept in group header 3(Tender name).

I think i need to create another formula for sum of amounts to keep in group footer 2.Please suggest

 

Please find the attachment.In preview mode the red color total(which i kept in emp group footer) should be sum of all blue color values.

 

Formula for amount is below:

 

whileprintingrecords;

shared numbervar FC;

numbervar sub_tot;

 

if {Tender.tender_type_id}=1 then

(

     sub_tot := sub_tot + ({Tender.amount} - FC);

    

     ({Tender.amount} - FC);

)

else

(

     sub_tot := sub_tot + {Tender.amount};

{Tender.amount};

)

 


Formula for sub_tot is below:

 

whileprintingrecords;

numbervar sub_tot;

numbervar g_total;

g_total := g_total + sub_tot;

sub_tot;

 

 

 

 

 

 

Design.pngPreview.png


Viewing all articles
Browse latest Browse all 8908

Trending Articles