Skip to Content
author's profile photo Former Member
Former Member

Time Series Line Chart - Monthly Sales - Make $0 or "No Sales" show up - not skipped

Post Author: kevinday17

CA Forum: Charts and Graphs

I have been messing with my chart for a while and I guess I'll just ask for help since I can't figure it out. All I am trying to do is chart out monthly sales dollars by customer. Simple enough...I have it working except I want to be able to see a $0 plotted on my graph when there were no sales in a month. Currently it just skips over that month and goes to the next where there is data (month after i.e next group summary field)). I've tried all sorts of ways of grouping. If I use the "group by date, monthly," on the "Order Date" field, I can't chose it as the "On Change of" under Advanced chart (single arrow is greyed out). So I ended up making a huge formula to make my own groups of months. My GH2 is the customer (and my chart), GH3 is my Grouping for month and year, and the detail is every single sales order. My graph points are based on summary data; sum of all the sales orders for that customer for that month.

How do I tell Crystal Reports that if there were no sales in December, then tell me 0. Don't just ignore it.

Maybe there is an option to make the X Axis Fixed with points (month-year, in order). It would be nice to have it uniform for every customer. I would love to see every graph that prints out have 36 x-axis coordinates; one for every month of the last 36 months (jan-05, feb-05, mar-05......dec-07) regardless of whether or not the customer had sales or not.

Thanks so much in advance.

Kevin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2007 at 07:11 PM

    Post Author: V361

    CA Forum: Charts and Graphs

    I have CR XI, I created a formula and used it to create the chart section

    if (isnull ()) then 0 else

    So if your AMNT is a null value it should put 0, else the AMNT

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.