crystaldev1
Programmer
I'm using CR 9 and SQL Server 2005. I have a cross-tab report with year columns and months of current year. For ex,
2007 2008 January February March
10 5 7 3 5
This cross-tab shows the total count for each year and for each month if it falls in current year. I would like the grand total at the end to only total current year (sum total count of months). Currently, it's totaling everything.
The formula I'm using for the columns is:
If Year({Object.date}) = Year({?@EndDate})
then Left(MonthName(Month({Object.date})),3)
else tr(Year({Object.date}),0,"")
Thanks.
2007 2008 January February March
10 5 7 3 5
This cross-tab shows the total count for each year and for each month if it falls in current year. I would like the grand total at the end to only total current year (sum total count of months). Currently, it's totaling everything.
The formula I'm using for the columns is:
If Year({Object.date}) = Year({?@EndDate})
then Left(MonthName(Month({Object.date})),3)
else tr(Year({Object.date}),0,"")
Thanks.