Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: set maximum and minimum limit of gauge chart Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Apr 2009 at 8:01am
I do not use gauges often so I am not aware of a way to do this.
I suggest trying to movew it down a level and see if you can mimic the process you are looking...Ultimately when drilling down via the gauge you are getting to the same levels anyway. It would just display a little diferently with 1 per row rather than across and rows.
IP IP Logged
thakuramit1981
Newbie
Newbie


Joined: 13 Apr 2009
Online Status: Offline
Posts: 14
Quote thakuramit1981 Replybullet Posted: 14 Apr 2009 at 8:10am
I do understand your point however The thing is that when i drill it down to individual level the limit changes.
 
But then it  contradicts the main chart where its drill downed from.
 
The first chart displays 0-8000 for all districts , then when you click on the particular district to drill down it shows individual data for that district and the limit changes accordingly to the value for that district i.e 0-6000
or 0-3000 whatever  district is selected.
 
so the data integrity is lost. what should i do ? plssssssssssss advise
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Apr 2009 at 9:06am

I know you said it is part of the scope to have this in the report header but perhaps you can skip that and give them what they need anyway.

You can add an extra Group Header section and place it there and let them drill down from there (are they going to know the difference as long as it functions as they want it?). You can conditionally suppress other sections of the group with drilldowngrouplevel=0 as the supression and mimic the process/look as if it were placed on the report header. The primary difference as i see it is that you will have a gauge per group header row rather than multiple gauges on on a single row in the report header. If you properly conditionally supress the other portions of the group it should be fine unless there is something else in the report that I ma not aware of that needs to be here as well.
Other than this I am not sure what else to try.
IP IP Logged
thakuramit1981
Newbie
Newbie


Joined: 13 Apr 2009
Online Status: Offline
Posts: 14
Quote thakuramit1981 Replybullet Posted: 14 Apr 2009 at 10:30am
The reports has two level drill down, 1) district
2) county.
 
The problem is if i include the the chart on group header district then it displays me the data for all counties.
 
How do i create a comparison chart like completed inspections to Total Inspections and grouped by district and county.
 
I am pasting the query:
 
SELECT (CASE WHEN fa.activity_closed_date between to_date('{?Pm-@beginDate}', 'MM/dd/yyyy')
                 AND to_date('{?Pm-@endDate}', 'MM/dd/yyyy')  
            AND fa.activity_result_id IS NOT NULL 
                 AND fa.activity_def_id = 10
                 AND fa.activity_status_id = 3  
                 AND fa.primary_value like '%Annual Site Inspection%'
           THEN 1 ELSE 0  END)  AS completed,
        (CASE WHEN fa.activity_result_id NOT IN (2, 5) 
                 AND fa.activity_closed_date between to_date('{?Pm-@beginDate} ', 'MM/dd/yyyy')
                 AND to_date('{?Pm-@endDate}', 'MM/dd/yyyy')  
            AND fa.activity_result_id IS NOT NULL 
                 AND fa.activity_def_id = 10
                 AND fa.activity_status_id = 3  
                 AND fa.primary_value like '%Annual Site Inspection%'
           THEN 1 ELSE 0 END) AS inCompliance, 
         (CASE WHEN fa.activity_result_id IN (2, 5) 
                 AND fa.activity_closed_date between to_date(' {?Pm-@beginDate} ', 'MM/dd/yyyy')
                 AND to_date(' {?Pm-@endDate}', 'MM/dd/yyyy')  
                AND fa.activity_result_id IS NOT NULL 
                 AND fa.activity_def_id = 10
                 AND fa.activity_status_id = 3  
                 AND fa.primary_value like '%Annual Site Inspection%'
           THEN 1 ELSE 0 END) AS outOfCompliance, 
      (SELECT COUNT(*) FROM stcm_snap.facilities f 
            WHERE f.fsc2_fac_stat_id LIKE 'OPEN%' 
            AND fa.district_id = f.oc2_office_id
            ) AS facilityCount,
         (SELECT COUNT(*) FROM stcm_snap.facilities f 
            WHERE f.fsc2_fac_stat_id LIKE 'OPEN%'  
             AND f.cc_county_id = fa.county_id) AS facilityCount1,
         cc.county_id AS countyId, cc.name  AS countyName,fa.district_id,fa.district_name
    FROM stcm_snap.mv_facility_activities fa, bis_lib_snap.county_codes cc,
         stcm_snap.county_district_codes cdc
   WHERE  cc.county_id = cdc.cc_county_id
     AND fa.county_id(+)  = cc.county_id
     AND cc.county_id NOT IN (0, 99) 
 
 
Where Pm-@begindate and Pm-@endDate are parameters passed
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Apr 2009 at 2:24pm

Again, Sorry but I do know of a way to handle this where it would display unique min/max range per item when displaying multiple items in the same pager or group header. There may be a solution but I do not know of one.

If anyone else knows a solution for this please chime in.
 
Regardless of this I'll give this another shot to try and help you...
You have two groups, District and County.
Place one chart ONLY using the District at the district header level.
Place another chart displaying county at the county header level.
Play around with the the conditionally supressing sections using the drilldowngrouplevel function so that the items are mimicking the process of displaying the grouping at a higher level.
Example
GH1a - Chart of Districts only
GH1b - other data about the county grouping (suppress as drilldowngrouplevel=0)
Gh2a - chart for Counties (Suppress drill down OK)
GH2b - Data about County ( Suppress as drilldowngrouplevel<2)
This is just an example and you may need to adjust it to see if you can get it to work for you.
IP IP Logged
thakuramit1981
Newbie
Newbie


Joined: 13 Apr 2009
Online Status: Offline
Posts: 14
Quote thakuramit1981 Replybullet Posted: 17 Apr 2009 at 5:13am
I have already implemented this kind of approach but did not succeed in achieving what i desire.
I will have to place an group chart in the district groupheader because it allows me to drilldown further but this returns me data for the counties in the district.If i use an advance chart in the district header i would get individual data but  then cannot drill down further
 
I spoke to about 10-12 crystal report experts with quite a good amount of experience in crystal reports and they all were having the same statement that this is a pure limitation of crystal reports and there is no way we can set the range of the chart depending on a exact value of the database field and also to set maximum value of the range different for each group record.
 Even if it is an individual chart, it never displays the exact value of the field , it is always having  limit which is higher than the maximum value of the field .
I guess crystal reports charting feature is not flexible enough.


Edited by thakuramit1981 - 17 Apr 2009 at 8:09am
IP IP Logged
<< Prev Page  of 2
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.016 seconds.