Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Group Sorting with drill available Post Reply Post New Topic
Author Message
sklyip
Newbie
Newbie


Joined: 07 Jul 2013
Online Status: Offline
Posts: 1
Quote sklyip Replybullet Topic: Group Sorting with drill available
    Posted: 07 Jul 2013 at 9:02pm
Dear all,
 
I have a rather complicated chart as below.
I want to write a crystal report containing a chart (stacked bar chart) with x-axis being the Date value and y-axis being the count, with values ordered by type (e.g. 000-100, 101-200, 201-300, etc.) as well, e.g.
2013/1/1: 201-300 (1), 301-400 (2)
2013/1/2: 000-100 (3), 301-400 (1)
 
If I set the report of layout "Group" with Grouping by Date (Asc) and then Type (Asc), I am able to drill through the chart.
However, the "groups" are ordered in the legend "strangely", i.e., first by date and then type, and therefore the groups are in this order:
000-100
301-400
201-300
and not in order as expected (000-100->201-300->301-400 or the reversed value).
 
If I set the report of layout "Advanced" with Grouping by Date (Asc) and then Type (Asc), the grouping is correct, i.e.,
301-400
201-300
000-100
However, I cannot drill in this way.
 
I am not care about the textual content of the report and therefore if there is any alternative to order the group in the legend, it is fine for me as well.
 
How can I achieve both goal, i.e., correct grouping order (in the legend) and drilling available?
 
Thanks.
 


Edited by sklyip - 07 Jul 2013 at 9:15pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Jul 2013 at 6:36am
NOt sure you will be able to alter the legend.
I believe the legend list is built in the sequence that it encounters the groups. If you look closely you will see it is alpahe for your first month and then adds each unique grouping alpah per month after that.
 
If you can get each of the possibilities (all Type values) into each month with a sum (or count) of zero for those with no match, your legend should appear as you want.
IP IP Logged
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.