Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: summary on Group problem 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: 01 May 2009 at 8:05am

I made a mistake on the formula field for grouping. I think you should be able to make the formula as:

{header.title} + "-" + {Itd.IRN}
or if IRN is numeric
{header.title} + "-" + totext({Itd.IRN},0,"")
 
If my assumptions were correct about your tables
Heading table with one row per book/IRN #
Holding table with one row per book/BIB #
ITN table with one row per book/IRN #
OND table with some where no match to ITN as never borrowed and possible multiple rows per book /itm#
then you should have a unique group header per book.
You can add a grouping below this for display purposes if you need to but I am trying to get this group to funciton for your selection criteria. If I am correct, use the summary function to do a DisctinctCount of ord.irn at this upper most formula grouping level. It will drop it in the footer but you can move it to the header. If your results are correct you can use this field for a selection criteria.
Create the paremeter as numeric.
In design view click on the distinctcount summary field. click on the selection formula. Click on the show formula. Note that the "Group Selection" should be toggled on. This is where you place summary selection items.
it will look something like:
DistinctCount ({Ord.IRN}, {@headerformula}) <= {?Parameter}
Will this work?
IP IP Logged
johnwsun
Senior Member
Senior Member


Joined: 28 May 2008
Location: Australia
Online Status: Offline
Posts: 179
Quote johnwsun Replybullet Posted: 01 May 2009 at 5:18pm
Hi DBlank,
 
Thanks for your detailed instructions, I will have a try and let you know.
 
J
IP IP Logged
johnwsun
Senior Member
Senior Member


Joined: 28 May 2008
Location: Australia
Online Status: Offline
Posts: 179
Quote johnwsun Replybullet Posted: 05 May 2009 at 11:29pm
Hi Dblank,
 
I am able to select records where 0 number of times borrowed using < 1 which in the upper group selection:
DistinctCount ({Ord.IRN}, {@headerformula}) < {?Parameter}
 
 
I check the database and found if I used parameters 1, selected records are all correct; if I used parameters 2, some are correct, some are incorrect:
e.g.
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX          0    correct       (top group)
XXXXX(supressed group ITN.IRN)
     xxxx   xxxx xxxxx                                         0   correct      (detail section)
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX          1        are correct
XXXXX(supressed group ITN.IRN)
     xxxxx   xxxxx    xxxxxxx                               1       are correct
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX           1      incorrect
XXXXX(supressed group ITN.IRN)
    xxxxx   xxxxx    xxxxxxx                                 0      correct
 
Could you please advise? Thanks a lot
John
IP IP Logged
johnwsun
Senior Member
Senior Member


Joined: 28 May 2008
Location: Australia
Online Status: Offline
Posts: 179
Quote johnwsun Replybullet Posted: 08 May 2009 at 11:16pm
Hi DBlank,
 
I have resolved the problem in displaying/calculating summary in the group as well as detail section of the report.
thanks very much for your advices.
 
John
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 May 2009 at 8:21am
Great Thumbs%20Up
if possible, when you get a chance can you post how you resolved it for others to learn from.
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.031 seconds.