Crystal Crosstab - access summarized values - crystal-reports

I am trying to access the summarized fields in a crosstab in order to determine which is the greatest value in a row.
My data displayed is as follows:
Jan Feb Mar Quarter
clerk 1 shoes 0 3 1 4
clerk 1 pants 5 10 10 25
What I need to display on the report is that the major item sold by Clerk 1 is pants.
I am table to do this on a monthly basis but not summary level. Any ideas?
Thanks, Holdfast

You need to insert Embeeded Summary at grand total level and write maximum or minimum formula to retrive, but one issue here is when you insert embeeded summary then you will get extra row at each level of the cross tab.
Note: This is possible in CR 2008 and I have tested in CR 2008

Related

Crystal Reports : combine and sum two fields if another field is a duplicate

i have been having trouble for a while figuring this out. I am looking to combine the rows that have duplicate "materials" and in doing so sum up the quantities of each and the prices.
Material qty unit price
a 5 20.00
a 5 20.00
b 2 5.00
c 1 5.00
and to get it like
Material qty unit price
a 10 40.00
b 2 5.00
c 1 5.00
Ive looked and found similar questions but couldnt figure it out. sorry if its a repost.
Thanks
When you begin creating the report, one of the first options is grouping, followed by aggregates (sum, count etc.). Once you finish the report wizard, suppress the details and the group headers.
Create a Group based on your Material field and then insert a summary by right-clicking on your qty field -> Insert Summary.
If you can't (or don't want to) group, then you will have to create running totals to summarize your different materials.

Crystal Reports - group total at begining of group

I have this report:
Question Group
----Question - [TOTAL]
--------Answer 1 (10)
--------Answer 2 (0)
--------Answer 3 (8)
--------Answer 4 (2)
----Total: 20
Total: 20 is calculated with running total field, and it can only be calculated after each question finishes.
What I want is to place this value at the beginning ([TOTAL]), so it can be used to calculate percentages (--------Answer 1 (50%)).
I tried with formulas, with no success.
I managed to change the SQL that feeds the report and then used a formula to do what I want
count({newfield},{group})

Crystal report pass last row data in each group to parent report

I have some question about crystal report pass value from sub report to parent report.
Now I have a sub report group by userID.Now I want to Pass last row Data each UserID . forexample sub report like this:
UserID : Jack
id No Time Diff
1 1 08:10 0
1 2 08:20 10
1 3 08:35 15
Last Row: 1 4 09:10 35
UserID : Peter
id No Time Diff
2 1 08:10 0
2 2 08:40 30
2 3 08:45 5
2 4 08:55 10
Last row: 2 5 09:00 5
Parent report need like this:
UserID No Time Diff
Jack 4 09:10 35 (show last row for jack in sub report)
peter 5 09:00 5 (show last row for Peter in sub report)
How to pass last row for each user to parent ? How can I archive this function?
I realize this is an old question, but hopefully this will still be of use to you.
Since you are returning multiple values to the main report, and the number of total rows is undefined, it may be easier to do the following:
Create a second subreport that is a copy of the first subreport
In the detail section of the new subreport, add the following code to the Suppression formula for the detail section: Next ({YourTable.id}) = {YourTable.id}
Basically, the formula will suppress the detail record if the next record's id is the same as the current id. This way, only the last record for each id will be shown.
You can format the detail line in the second subreport to appear how you want.
The only downside to this is that the subreport will essentially run twice, so if it's a slow report, your report just got slower.

cyrtsal report how to hide records based on condition of a field like date

hi all i have a question about hiding records in crystal report
and i am using cyrstal report in vs 2008 ,i dont know its version as i am new in crystal reporting
lets say i have report like that
customer_Id customer_name OrderAmount Order_date
0 xyz 5 03/02/2010
1 abc 6 04/02/2010
3 dre 7 07/02/2009
4 kila 3 08/02/2009
i wana ask is there a pssibilty to hide the record if Order_Date year in 2009 and show only the records where Order_date year in 2010
to be like that :
customer_Id customer_name OrderAmount Order_date
0 xyz 5 03/02/2010
1 abc 6 04/02/2010
**note i do need the data of 2009 to make a bar chart for this year
thanks in advance
So the report itself will have a bar chart on to show 2009, but the list of records shouldn't show 2009?
Two options :
The first is a subreport.
The second is to use a suppression formula in the Details section that says "Year(Order_Date) = 2009".

counting fields based on group in crystal report

hi all i wana ask a question about crystal reporting in vs 2008
lets say i have a report with these data
customer_ID Customer_Name Order_amoont Order_Date
(#group1 VipCustomer)
1 xyz 3 1/1/2010
2 abc 4 2/2/2010
5 sds 21 3/12/2009
(#Group2 NormalCustomer)
3 tyt 2 3/3/2010
4 ha 4 21/3/2009
i want only to display records where Order_Date year is in 2010 only so i went to the section expert and i added a condintion in suppress formula Year(order_Date)=2010 and i get the result ,,the question is how to count how many vip customers ordered in 2010 only and how many normal customer order in 2010 only ,,then i want the total number of both type of customers to be displayed to have a report like that::
customer_ID Customer_Name Order_amoont Order_Date
(#group1 VipCustomer)
1 xyz 3 1/1/2010
2 abc 4 2/2/2010
subtotal 2
(#Group2 NormalCustomer)
3 tyt 2 3/3/2010
subtotal 1
total 3
i know that answer ,and i will answer it
1-make a conditional formula field and add to it this condtion
if year(Order_Date)=2010 then 1
2-then add summary to the formula filed
--to get total place this summary in the report footer
--to get sub-total place this symmary in group footer
there is also another way to do it
by using running total field and it evaluate section us the formula year(Order_Date)=2010
then to get total place the running field in report footer
to get sub-total make a new running field the same as the 1st but in the reset section check on reset of change of group and place this field in group footer
thnx