Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: crosstab or subreport Post Reply Post New Topic
Author Message
patil
Newbie
Newbie


Joined: 19 Apr 2010
Online Status: Offline
Posts: 16
Quote patil Replybullet Topic: crosstab or subreport
     Posted: 01 Jun 2010 at 5:42pm
Hi All,
 
 In my project there is one issue and i need to resolve today itself
in one report i should display 3 days data i.e number of transactions and amount... but the days may increase depending on the requirement.. then hw to display this in report bcoz if i will show 3 days data means no problem i can do.. but if it is 15days data means hw to do????
 
i am thinking to do this in cross tab or using subreport... is this correct??
if correct then how to approach???
can anyone help plz plz plz???......
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 02 Jun 2010 at 6:54am
It sounds like a Cross-tab would be the easiest solution to your problem.  Since you don't specify what you're counting transactions for, I'm going to assume it's per Customer for this example. You'll need a separate record for each date/customer combination.  Place the cross-tab on the report, right-click and select Cross-Tab Expert and do something like the following:
 
On the Cross-Tab tab
Rows:  Select the field that identifies your customer.
Columns:  Select the date field.  Click on the "Group Options" button under the Columns box and make sure that it's set to print for every day.
Summarized Fields:
1.  Select a field to be counted for the number of transactions.  Click on Change Summary and change the summary function to either "Count" or "Distinct Count".
2.  Select your Amount field.  The default summary function for numbers is Sum, so you shouldn't have to make any changes.
 
Customize Style Tab
The default configuration for a Cross-Tab is to put the Column Totals on the top and the Row Totals on the left.  I prefer to have them on the bottom and right, so I uncheck those boxes.  You also have a number of options on this tab for setting up other aspects of the cross-tab.
 
Based on the requirements you've outlined, your initial query will limit the results to three days.  If you need to expand that, the cross-tab will automatically grow as you add dates.
 
-Dell
 


Edited by hilfy - 02 Jun 2010 at 6:55am
IP IP Logged
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