I have a data set with 13 rows, each representing a product type. Those 13 products then divided into 3 groups (an image of the data is attached below),
the first 7 products are in Group1
the next 3 products are in Group2
the last 3 products are in Group3
My task at hand is to insert a row that gives the subtotal of the first 7 products (i.e., Group1 in the table), then another row that gives the subtotal of the first 10 products (i.e., Group 1 & Group 2), and the grand total (i.e., all 3 groups). The first subtotal row should be inserted after Group1, and the second subtotal row should be inserted after Group2.
Any advise of how to achieve this would be greatly appreciated!
In the Format tab of menu bar select totals -> add all subtotals
FORMAT -> TOTALS -> ADD SUBTOTALS.
Related
I have a Crystal Reports that has several Groups as noted below. I need to return a total for each Customer Group by the items (I could have 6 invoices that have Item 1 - 3 on each)I want to see a total for each item - rather than seeing 18 lines - just 3 aggregated by Item
Group1 Customer
ABC001
XYZ002
DEF001
Group2 Invoice #
017700
017702
017703
Group3 Details from Items on Invoice (I needed this to load in taxes to Sales & COGS)
Item 1
Item 2
Item 3
Insert a CrossTab in GH1 or GF1 that shows totals by Item.
note: could also be done with a subreport, but CrossTab is easier and faster.
My Group Footer shows the number of distinct items bought by each customer:
Cust Ref, Items bought (distinct count)
001, 4
002, 12
003, 6
004, 3
How can I display only the customers who have bought 5 or more distinct items?
I tried using distinctcount(items bought) > 4 but it looks at all the distinct items bought by everyone, not each individual customer. What formula should I use and where?
You have to place a group by CustRef, then at the footer place the CustRef and a formula named #DistCnt containing (DistinctCount({ItemsBoughts})) (It seems you've already done that)!
Then in the Section Expert section click on the (x-2) button near the suppress checkbox related to this group footer and write: #DistCnt < 5 and save.
Go to section Expert and then go to suppress write the below code and save
Cust ref <5
Data Table
pack_ID qty
1 3
1 4
1 9
2 10
3 1
3 3
I want to display the following in Crystal Report
pack_ID qty
1 16
2 10
3 4
How ?
Insert group on pack_id, insert field summary (sum(qty)) into group footer, hide details section.
simple to do in the sql:
SELECT pack_ID,SUM(qty) FROM Table GROUP BY pack_ID
There is one another way to implement this solution is that if you have less pack_id and need to show this details into particular section instead of dynamically to show the sum of each and every records. Below are the steps:
Create formula Qty_Count_Pack_1 which will store the number of quantity with pack_id 1. You need to create number of formula as per number of pack_id.
if ({command.Pack_Id}) = 1) THEN
{command.Qty}
else
0
Use Summary formula field to sum the Qty which will give the summary of qty for pack_Id 1.
Sum({#Qty_Count_Pack_1},{command.pack_ID})
There are 2 steps as:
Insert Group of pack_ID
Copy qty from detail block to Group of pack_ID the same line
so u can see result as u expect.
Using crosstab expert in CRpts, populating the columns selection with 2 column names and using preview, report has I cannot tell what is what. Report has helpdesk total by date and out of that total there is a group count for another dept. Report looks great with one column selected. However, once I select a column fr db and select it to the columns with Crosstab expert, the columns in the report preview are displayed but hard to tell what is what since I get No and Yes columns. I also have Keep Groups together, column totals on top, and Row totals on left "checked" out.
I want to be have: grand toatl column(for helpdesk) total for Dist. Classrooms afected totals
Can you help? I am also new to CR and have not been able to make a "hit" researching.
Based on the above, I want a report to look like:
(col 1) (col 2) (col 3
Date Group District Classes Affected
Crosstab expert has: 2 rows, 2 summaries(sum on date and grandtotal on top), 1 col(which works great with only col 2 used as column but not when I include col 3).
District is count of district's in group
Classes Affected is count of groups count.
Is this better?
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