Crystal Reports 9 - chart adding a negative value

Posted on 2006-05-10
Last Modified: 2012-06-27
I have a pie chart built in to my Crystal Report.  The chart displays account make up by types of assets, say stock, bonds, liablilities, etc...

Some of my assets show negative values such as a payable due on the account.  When the chart is displayed it shows it as a negative %.  I can live with that.  However, it shows the amounts and it is adding the negative amount.  For instance, one account has 250,000 in mutual funds and a -7,000 account payable.  Totatl should be 243,000, however, it is showing a total value of 257,000 even though the number is shown as a negative.  Any ideas?
Question by:bassetkey
    LVL 100

    Expert Comment

    I know by definition Pie charts expect all values to be positive since a "negative" area or slice is really meaningless.

    There was another question along these lines but I thought that problem related to the values being shown as positive while the total was "correct" even though from the values it looked wrong.

    LVL 100

    Accepted Solution


    Author Comment

    Ah, didn't see that earlier and now that makes since.  You can't have a negative piece of pie.  Is there a way to conditionally do a bar graph if there is a negative anywhere in the groups and a pie chart if there are all positives?  That would work, but don't know if that is even possible.  Thanks for the link!
    LVL 100

    Expert Comment

    Good thought.  

    You could create both in separate sections then conditionally suppress the one you don't want.  However, I am not sure how to determine if they are all positive before the graph is built except by using a subreport in the report header to return a value.

    Glad i could help


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now