bassetkey
asked on
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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!
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
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
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