If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > Count only needed values

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-23-09, 03:42
edgard_s edgard_s is offline
Registered User
 
Join Date: Oct 2009
Posts: 5
Count only needed values

I want to create a formula in crystal report 9 that counts only the fields that has a value equal to "A" ,is it possible to do so?
Reply With Quote
  #2 (permalink)  
Old 01-04-10, 11:30
trowe trowe is offline
Registered User
 
Join Date: Dec 2004
Location: Connecticut
Posts: 85
You'll need to create a calculated field in the detail section and add them together at the end.

Something like "If myField = "A" then 1 else 0"

Sum this filed up and you'll have a count of all the records where the field your interested in is "A".
Reply With Quote
  #3 (permalink)  
Old 01-04-10, 15:59
brucevde brucevde is offline
Registered User
 
Join Date: Jan 2003
Location: British Columbia
Posts: 44
or use the built in functionality called Running Totals.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On