Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: RunningTotal, Percent, Chart Post Reply Post New Topic
<< Prev Page  of 3 Next >>
Author Message
Takesen
Senior Member
Senior Member


Joined: 29 Dec 2008
Location: United States
Online Status: Offline
Posts: 143
Quote Takesen Replybullet Posted: 15 May 2009 at 9:45am
It's not letting me use the formula in the chart.... did i do something wrong? i followed the syntax i posted above...
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 May 2009 at 9:47am
Try it with my formula and let me know...
IP IP Logged
Takesen
Senior Member
Senior Member


Joined: 29 Dec 2008
Location: United States
Online Status: Offline
Posts: 143
Quote Takesen Replybullet Posted: 15 May 2009 at 10:12am
Ah Sorry, I didn't see that in your post before. Confused
I must be going blind. -scared-
 
 
Alright, i did this... and threw the formula also in the show values portion as percent of the User.
 
I seem to have a blank group tho....
no title what so ever.... and it's making my numbers a lot smaller than they should be...
 
[edit] seems to be the % of times compliance was met....


Edited by Takesen - 15 May 2009 at 10:14am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 May 2009 at 10:48am

This means you need to adjust the formula to account for all the possible variables impacting your 4 types, unless you really have 5 types of records that make of the whole record count (complied and 4 types of failed). That changes it a bit. I will need more info on that if that is the case.

If you can get the formula to group all the records correctly does this solve the overall design need though?
IP IP Logged
Takesen
Senior Member
Senior Member


Joined: 29 Dec 2008
Location: United States
Online Status: Offline
Posts: 143
Quote Takesen Replybullet Posted: 15 May 2009 at 11:45am
Well it's pulling the % within compliance....
Which isn't a number i want to see.... I'm not even really sure how it's pulling that. Since it's not in the formula at all.... Confused
 
i added "within compliance"
and yea. any way do you think those can not be there?
kind of want the % to be out of total not within compliance rather than
EVERYTHING you know?
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 May 2009 at 11:58am

Depends on how you want your #'s.

Say you have 100 rows, 40 are in compliance and 60 are out of comlpiance in the various other 4 types.
Do you want your precentages of the 4 from the 100 or the 60 records?
If you want it from the 60 records do you need those other 40 records in your report at all?
If not use the select statement to weed out the extra 40 from the get go.
If you want the precentages based on the 60 but need the other 40 in your main report you will need to use a sub report.
Trickier if you want it on the percentages on the 100 but want to only show the 4 types of fails without showing the successes.
Which do you need to do?
 
IP IP Logged
Takesen
Senior Member
Senior Member


Joined: 29 Dec 2008
Location: United States
Online Status: Offline
Posts: 143
Quote Takesen Replybullet Posted: 15 May 2009 at 12:08pm
Doh, alright....
I'll get to work on the sub report....
ha
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 May 2009 at 12:14pm

Just add in a copy of your existing report, change the select statement to filter out your other data and your bar chart will automatically adjust. Delete and suppress everything else.

If you have user selected items on you main report you'll need to pass those to your sub report to make sure the data is the same.
IP IP Logged
Takesen
Senior Member
Senior Member


Joined: 29 Dec 2008
Location: United States
Online Status: Offline
Posts: 143
Quote Takesen Replybullet Posted: 15 May 2009 at 1:30pm
Yup yup, it looks good.      :)
Thank you yet again Dblank.
You are a life saver.
 
 
 
[edit] do you know if there's a way to default to 0 though?
not a big deal... so if have to change too much not worried about it
just... trying to find a way so if they are zero they list that so all the graphs look the same you know?


Edited by Takesen - 15 May 2009 at 1:45pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 16 May 2009 at 8:40am

you need a source that has all 4 types listed that you can left join to the failures table (without exploding the record counts). Then you group on the table that has the 4 and it will show a 0 for any where there were no matching records from your failure table. I usually end up doing that in a view or stored proc. and pull that in. It will be a lot more work but that is the premise of how to get it.  One of the tricky parts is that in Crystal, sometimes even though you have aleft join to a table a select statement can pare it down so that your left join ends up acting like an inner join...

Sorry it isn't an easy fix. 
IP IP Logged
<< Prev Page  of 3 Next >>
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.