Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Summary Table Filter Post Reply Post New Topic
Author Message
zila
Newbie
Newbie


Joined: 11 Jan 2012
Online Status: Offline
Posts: 1
Quote zila Replybullet Topic: Summary Table Filter
    Posted: 11 Jan 2012 at 3:56pm
I have total of field data, i need to filter that data to put in my summary table. the data:

          Status      Total    No.      Category

      1      E              204         1              COC

      2      E              43           2              COC

      3      L              1              2              COC

and my summary table:

 

COC

SOC

Total

1

L

 

 

 

E

 

 

 

2

L

 

 

 

E

 

 

 

Total

 

 

 


How can i filter each total row to put in my summary table?I have try using cross tab, but the empty field doesn't display.


Edited by zila - 11 Jan 2012 at 4:01pm
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 23 Jan 2012 at 7:40am

The data you've posted doesn't quite match up with the example you show.  Where does "SOC" come from?  Is it another category?  However, here's something you can try:

1.  Group by the "No." field.
2.  Group by the Status field and set the sort order to descending.
3.  If "SOC" is another category, you'll create formulas to summarize the numbers - something like this:
 
If {table.Category} = 'COC' then {table.Total} else 0
 
4.  Create a formula for the row total: 
 
Sum({@COCTotal}, {table.Status}) + sum({@SOCTotal}, {table.Status})
 
5.  The column totals for the COC and SOC columns are just the sum of the appropriate formula created in step 3.
 
6.  The total column total is something like this:
 

Sum({@COCTotal}) + sum({@SOCTotal})
 
If this is a summary table at the beginning or end of a report that shows other data, you'll need to do this in a subreport.
 
-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.031 seconds.