Solved

Showing distinct field values and counts

Posted on 2014-04-04
3
319 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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 …
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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

18 Experts available now in Live!

Get 1:1 Help Now