How to add dates with no data to a chart

I have a question about Crystal Report chart formatting.  I have a chart that has dates as the x axis.  I get all the data from a Database.  If my dates on the X axis are months from the year 2008 but there is no data in the DB from May 2008 that bar in the chart is missing instaed of blank (this is expected since there was no data in the DB for May).  Is there a way to get all dates in the date range to be included in a chart even if there is no data for them?

a_redironAsked:
Who is Participating?
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.

peter57rCommented:
You have to include a table in the report that includes all the date values you want to see, using a left join from that table to your existing datasource..
0

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
James0628Commented:
To just restate what Peter said in a different way:

 No, there doesn't appear to be any way to get CR charts to fill in missing dates.  Your data has to include every date that you want to appear in the chart.

 I don't need/expect any points for this.  I just thought I'd reword, and confirm, what Peter already told you.

 James
0
a_redironAuthor Commented:
Thanks for your help.
0
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

peter57rCommented:
That's an interesting link _I'll take a look too.

(Ain't it wonderful how SAP manage to make the URL longer than the article it points to!)
0
a_redironAuthor Commented:
Thanks for the link.  I will take a look.
0
James0628Commented:
Thanks for that, mlmcc.  Now that you mention it, I think I've seen that approach mentioned here before, but I'd forgotten about it.  Creating a table with all dates would probably be the best solution in most cases, but if you can't, or don't want to, do that, this provides an alternative.

 James
0
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.