Solved

Showing distinct field values and counts

Posted on 2014-04-04
3
324 Views
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.
0
Comment
Question by:dssisupport
3 Comments
 
LVL 142

Expert Comment

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

Accepted Solution

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

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

mlmcc
0
 

Author Closing Comment

by:dssisupport
ID: 39979209
Perfect! Thanks so much.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

825 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