Click here to Skip to main content
15,887,464 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone,


my first formula in crystal report is given below its name is "xy"

C#
currencyVar x :={RptNetSalebyCustomer;1.TotalSale} ;
currencyVar y :=sum({RptNetSalebyCustomer;1.TotalSale}) ;
currencyVar z :=x/y*100 ;



when i insert summary field the above formula not show in dropdownlist

and if i create another formula name is 'yz' and i put
Sum({yz})
then its not allowed me to create this its give me popup message "This field cannot be summarize".

please help me how i sum this formula and insert it into group.

thanks
Posted

you cannot summarize complex formulas,

you can create a running total for this field.
 
Share this answer
 
Comments
mohd vaquas 25-Oct-11 9:31am    
how can i create running total .....
when i create running total this formula not show.....
please help me
Ok Do one thing create a new formula called "sumxy"

inside that formula just declare a variable like

global numbervar sumxy


and in your old formula after all add this line

sumxy=sumxy+z;


and use sumxy as your summary
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900