Showing distinct field values and counts

Posted on 2014-04-04
Last Modified: 2014-04-04
I have a text field in sql table that may or may not have a value (if not it would be NULL) and I have a report that shows the content of that field in Group 1. What I need now is a way to show all of the distinct values that were found and also show a count of how many of each one were found at the end of the group report. I am running Crystal reports 11.5. Any help would be greatly appreciated.
Question by:dssisupport
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 39979178
in sql, I would do:
select yourfield, count(*) from yourtable group by yourfield
LVL 100

Accepted Solution

mlmcc earned 500 total points
ID: 39979187
Have you tried a cross tab?

Drag into the report footer
Right click the Cross Tab in the upper left corner
Rows - FIeld you want
Summarized field - Field you want  - make sure it says COUNT
Click OK


Author Closing Comment

ID: 39979209
Perfect! Thanks so much.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pictures In Crystal 10 41
Crystal Reports - Trim Data 7 42
How to Bold a formula within another formula 4 30
Crystal Reports total formula with groups? 4 36
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now