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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question?

Status
Not open for further replies.

metalteck

MIS
May 10, 2006
54
US
I am currently using crystal 8.5. I have no problem with the data that the field gives me.

Ex. QTY
5
5
6
7
7
7

What I'm trying to figure out is how I can eliminate the values that only appear once. I was trying to create an if statment, but don't know how to word it. My desired output would look like this:

QTY
5 (2)
7 (3)

Please help. Thank you
 
Insert a group on quantity, and right click on the quantity in the detail section and insert a count at the group level. If you want the result in parens, you could drop the summary in a text box, adding the parens. Or you could create a formula:

"(" + totext(count({table.qty},{table.qty}),0,"")+ ")"

Then go to report->selection formula->GROUP and enter:

count({table.qty},{table.qty}) > 1

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top