Print Page | Close Window

Summary Table Filter

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=15349
Printed Date: 30 Apr 2024 at 3:29pm


Topic: Summary Table Filter
Posted By: zila
Subject: Summary Table Filter
Date 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.



Replies:
Posted By: hilfy
Date 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:
 
mailto:%7b@COCTotal - {@COCTotal }
If {table.Category} = 'COC' then {table.Total} else 0
 
4.  Create a formula for the row total: 
 
mailto:%7b@RowTotal - {@RowTotal }
Sum( mailto:%7b@COCTotal - {@COCTotal }, {table.Status}) + sum( mailto:%7b@SOCTotal - {@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:
 
mailto:%7b@GrandTotal - {@GrandTotal }

Sum( mailto:%7b@COCTotal - {@COCTotal }) + sum( mailto:%7b@SOCTotal - {@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


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window