Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress Values so they are not counted in crosstab 1

Status
Not open for further replies.

kezdawg

Programmer
Apr 2, 2008
19
GB
I have a crystal crosstab like this

Symptom A Symtom B TOTAL
No of Males 3 7 10

No of Female 6 1 7

However I would like to both suppress any values in the symptom A and Symptom B column that are less than 3 and minus these values from the total count column.

I know i can conditionally format the fields to suppress them (ie currentfieldvalue < 3) but what I want is to remove them altogether.

Therefore having a table that displaying like this

Symptom A Symtom B TOTAL
No of Males 7 7

No of Female 6 6


Anyone's help is much appreciated

 
This would be simpler as a manual crosstab. Insert a group on gender, and then create formulas like:

//{@A}:
if {table.symptom} = "A" then 1 //repeat for "B"

Insert sums on these two formulas. Then conditionally suppress the summary counts > 3 based on currentfieldvalue. Then use a formula like the following for the Total:

(
if sum({@A},{table.gender}) > 3 then
sum({@A},{table.gender})
) +
(
if sum({@B},{table.gender}) > 3 then
sum({@B},{table.gender})
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top