Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula to summarize yearly date on same row. 1

Status
Not open for further replies.

scottpdann

Technical User
May 14, 2003
44
US
I want to summarize my data as follows:

Donor|2007 Contributions|2008 Contributions|2009 Contributions

What is the formula to put each year's summarized contributions in a column?

Thank you for your help.
 
probably need more information but ..

group by doner
create three formulas
//2007 contributions
if year({contributiondatefield}) = 2007 then {contributionamount}
else 0

do the same for 2008 and 2009

sum({@2007contributions},{donor})
repeat for 2008 and 2009

place those in columns in the group footer.

hide your details


_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection

 
Or you could insert a crosstab in the report footer that uses {table.date} as the column field->group options->print on change of year, donor as the row field, and sum of contributions as the summary.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top