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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chart Year over Year Comparison 2

Status
Not open for further replies.

briesen

Technical User
May 13, 2008
24
US
I have a Crystal Report which is essentially just charts. Currently, the Y-axis is a count while the X-axis is a billing date. The billing date is by month of the Fiscal Year. The categories are two different locations, which are displayed in the key.

Instead of just having one fiscal year, I'd like to have the past two fiscal years and compare them by month. It's kind of difficult to explain what I Mean, but, in essence, the line chart would have a line for 2008, and a line for 2009 and their data would be displayed by month (in the same range).

Is this doable?
 
Do a formula field with year/month, something like
Code:
Totext({your.date}, "yyyy/MM")
This should be graphable in the right order.

To get the fancy display you want would be harder. You could do it by sticking to the month display having one year as a chart in a subreport. If anyone knows of an easier way, please say.

This is based on Crystal 10. It always helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.



[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
You need to create two formulas:

//{@month}:
month({table.date})

//{@year}:
year({table.date})

Add {@month} as your first "on change of" field, and {@year} as your second. Add the usual summary field.

You should be limiting to the two fiscal years in your record selection formula.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top