mrodonis
Programmer
- Jun 26, 2007
- 5
Hi,
I am attempting to create a side by side bar chart in Crystal to display monthly totals for 2 years of data, displaying the data monthly with Year 1 and Year 2 totals side by side in the chart. I would like the first month to be defined by the Month/Year that a user enters into a parameter and displays the 11 following months from there. So for example, If I enter April/2013, The first month in the bar chart is April, and the last month displayed is May. Each Month shows a bar with Year 1 and Year 2 totals... Year 2 is 2013 For Jan-April and 2012 for May-Dec. Year 1 is 2012 for Jan- Apr and 2011 for May -Dec.
I have used these formulas
Month:
if month({date})<10 then
"0"+totext(month(date}),0)
else
totext(month({date),0)
Date:
(totext(year({date}),0,"")+" - "+ {@month})
to order the data, but it creates a chart with a single column for each month, I want a yearly chart with side by side columns for each month.
The big question is how do I define the rolling months, so that the Month/Year entered is the first month and the rest follow from there?
Hope this is clear.
Help is much appreciated.
Michelle
I am attempting to create a side by side bar chart in Crystal to display monthly totals for 2 years of data, displaying the data monthly with Year 1 and Year 2 totals side by side in the chart. I would like the first month to be defined by the Month/Year that a user enters into a parameter and displays the 11 following months from there. So for example, If I enter April/2013, The first month in the bar chart is April, and the last month displayed is May. Each Month shows a bar with Year 1 and Year 2 totals... Year 2 is 2013 For Jan-April and 2012 for May-Dec. Year 1 is 2012 for Jan- Apr and 2011 for May -Dec.
I have used these formulas
Month:
if month({date})<10 then
"0"+totext(month(date}),0)
else
totext(month({date),0)
Date:
(totext(year({date}),0,"")+" - "+ {@month})
to order the data, but it creates a chart with a single column for each month, I want a yearly chart with side by side columns for each month.
The big question is how do I define the rolling months, so that the Month/Year entered is the first month and the rest follow from there?
Hope this is clear.
Help is much appreciated.
Michelle