INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Crystal Reports: Split values in a field separated by “;#” so that I can group and count

Crystal Reports: Split values in a field separated by “;#” so that I can group and count

Crystal Reports: Split values in a field separated by “;#” so that I can group and count

(OP)
My data is from SharePoint and has been imported into an Access database. The field is called: Target Audience and the table is editorial (editorial . Target Audience)

The values in the field (or row on the report) can be any of the following: External Internal Media External;#Internal;#Media External;#Internal External;#Media Internal;#Media

I am trying to split these values so that they can each be counted on their own. They also need to be able to be grouped and to create a pie chart.

There are 991 records in the table. I have been able to run some queries in SharePoint that provided the following breakdown: External = 579 Internal = 525 Media = 104 for a grand total of: 1208

RE: Crystal Reports: Split values in a field separated by “;#” so that I can group and count

You can't group on these values because each record can only be in one group and you need records to be in two or more different groups. That is the challenge with a multi-value field, which is what you have here. There is a workaround but it is pretty complex with lots of steps:
http://kenhamady.com/cru/archives/2520

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
http://www.kenhamady.com/

RE: Crystal Reports: Split values in a field separated by “;#” so that I can group and count

(OP)
Thank you! I ended up modifying my database to accommodate the many fields that are multi-value fields.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close