Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Grouping problem Post Reply Post New Topic
<< Prev Page  of 3 Next >>
Author Message
jjthed
Newbie
Newbie


Joined: 15 Aug 2014
Online Status: Offline
Posts: 20
Quote jjthed Replybullet Posted: 27 Aug 2014 at 8:34am
Hi DBlank,

Thanks a lot with the info. I did another group with a field value, but the total on the footer gives me a total on each row instead of at the end of the section. Any advise on that?

Thanks!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Aug 2014 at 8:37am
what did you group on?
IP IP Logged
jjthed
Newbie
Newbie


Joined: 15 Aug 2014
Online Status: Offline
Posts: 20
Quote jjthed Replybullet Posted: 27 Aug 2014 at 10:44am
I group on Category, and then sort in specific order, and it turns out each category is a group...
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Aug 2014 at 10:51am
You can hard code it as a formula like you did for the first grouping...
If Category in ["eyeliner","lip stick"] Then "Cat1" else "Cat2"
 
and group on that instead of category field.
The preferred method is to have some other value in a column in your data set that defines the grouping so that as your data set grows with different categories the report knows how to handle them.
Note you can use other fields to group on even if you are not displaying them in the report.
IP IP Logged
jjthed
Newbie
Newbie


Joined: 15 Aug 2014
Online Status: Offline
Posts: 20
Quote jjthed Replybullet Posted: 27 Aug 2014 at 12:02pm
Ah... I see. I will try that and play around to see if I can get what I want.

Thanks DBlank!!
IP IP Logged
jjthed
Newbie
Newbie


Joined: 15 Aug 2014
Online Status: Offline
Posts: 20
Quote jjthed Replybullet Posted: 28 Aug 2014 at 7:03am
just an update, it worked!!!!!!!!!!!!!!!!!!

I am so new at this and this is my first time designing a report from scratch. Now the structural part is done, I will move on to calculations. Will come back and ask more tips on the sum and totals if I am stuck again.

Thank you so much
IP IP Logged
jjthed
Newbie
Newbie


Joined: 15 Aug 2014
Online Status: Offline
Posts: 20
Quote jjthed Replybullet Posted: 28 Aug 2014 at 12:24pm
Here is a new questions:

In my detail section, I use the category field, my report now looks like this:

Item          QTY       Price
eyeliner       5        $7
eyeliner       3        $8
eyeliner       1        $6

I want it to look like this:

Item           QTY      Price
eyeliner        9        $7 (This is average price)

I used below formula to suppress the duplicate names:

{tempestimateitems.Category} = previous({tempestimateitems.Category})

Now I am stuck on how to sum up the QTY and put it in one line. And also need to average the unit price.

Thanks in advance!
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 28 Aug 2014 at 9:59pm

Create a group on the item field,

Then create a sum summary on qty.

Finally add an average summary on Price

Place these in the item group header.

 

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 Aug 2014 at 3:52am

You would also want to move the "item field" into the GH or GF next to the sum and avg results and suppress the GH and details section.

IP IP Logged
jjthed
Newbie
Newbie


Joined: 15 Aug 2014
Online Status: Offline
Posts: 20
Quote jjthed Replybullet Posted: 29 Aug 2014 at 7:49am
I have create a group and put the "item field" in the group footer. I used the insert summery on qty but the number returned is not right..... did I do something wrong?
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.012 seconds.