Graph using cumulative data but only showing the last 5 years

Need Help. I have a bar graph that is giving me 10 years worth of contributions but on the graph I only want to show the last 5 years. Along with the contributions made prior to the 5 years

I have tried the top N but this gives me the top 5 years of contributions which may not be within the last 5 years and it also does not order them by Year End Date in ascending order.
I have tried writing a formula to give me just the last 5 years but this does not include the total contribution just what happened in the last 5 years.
I have also created a subreport passed the data for the first 5 years to the subreport as either a shared var of a parameter then tried to add this number to the contributions for the last 5 years with should work.  But then I can't graph on this number.

Thanks in advance for your help.
jeanavetteAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Try this

Create a formula
If Year({DateField}) < Year(currentDate) - 5 then
   Date(Year(CurrentDate) - 6, 1, 1)
Else
   {DateField}

Use that for the chart.

That should combine the records for the first 5 years into one date 1 Jan 2009 and leave the rest of the data alone.

mlmcc

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jeanavetteAuthor Commented:
This solution worked for my initial issue.  But now I have additional issues I am working through. Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.