Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Group By design Post Reply Post New Topic
Author Message
kamba
Newbie
Newbie


Joined: 11 Jun 2013
Location: India
Online Status: Offline
Posts: 1
Quote kamba Replybullet Topic: Group By design
    Posted: 12 Jun 2013 at 7:20pm
Dear People,

I have doubt regarding group expert in crystal report 2008.

Our scenario:

We have designed a layout in crystal reports 2008 for SAP.
This layout is printed on preprinted paper.

The logic of this report is to fetch the itemcode,itemname,quantity,price from one table.The table will duplicate the records since the quantity is different.

for Ex:

Itemcode Itemname Quantity price

101        plastic     4      100
102        plastic     5      100

If i am using command report i will directly add the group by command and sum the quantity in sql query,so there are no more duplicate records.and the result will be:
Itemcode Itemname Quantity price

101        plastic     9      100

But,this layout is designed by just linking the tables.
Its not done through 'Add Command'.So, i need to use 'Group expert',but i don't know how to use the group expert to arrive my result.

Please guide me and remember that 'using the group expert' should not change the alignment of layout.

IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 14 Jun 2013 at 7:33am

Will all records with the same ItemName have the same price (I'm going by name because you're using different Itemcode values in your example)?  If so, here's what you'll do.

 
1.  Group by ItemName.
2.  Suppress the details section.
3.  In the Group header put the following objects:
 
Summary - Min({ItemCode}, {ItemName})
ItemName
Summary - Sum({Quantity}, {ItemName})
Price
 
You do the summaries by clicking on the summary button (has a Sigma (big E) on it) and selecting the appropriate values.
 
-Dell
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.018 seconds.