• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 726
  • Last Modified:

Crystal Reports 9 - chart adding a negative value

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?
0
bassetkey
Asked:
bassetkey
  • 3
1 Solution
 
mlmccCommented:
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.

mlmcc
0
 
mlmccCommented:
0
 
bassetkeyAuthor Commented:
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!
0
 
mlmccCommented:
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

mlmcc
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now