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

distinctcount ( {database.table} = "Some String" ) 1

Status
Not open for further replies.

Halfcan

Technical User
Dec 8, 2002
214
US
Hi, I want to do a distinctcount on a table ONLY if it contains a certain string value.
I've tried this:

distinctcount ( {database.table} = "Some String" )

but get "summary/running total could not be created"
Is this possible?
using crystal reports 8.5.
thanks,

J
 
You have a couple of opions:

1) Use the Running Total Wizard and create a Running Total that performs a distinct count on the field where the value = 'x'.

2) Create a formula that returns 1 when the field value = x and summarize the formula in the footer.


~Kurt
 
This kind of summation may not be possible.

One way to approach the scanario is to add a formula "in the evuluate section of the running total expert while using distinct count as the summary method for the field
{database.table}.

Your formula could be {database.table} = "Some String"

Thats the condition on which the running total will be returned else null values.

Hope that helps,

Rahul

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top