Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Grouping Post Reply Post New Topic
Author Message
brockloch
Groupie
Groupie


Joined: 03 Oct 2010
Location: United Kingdom
Online Status: Offline
Posts: 76
Quote brockloch Replybullet Topic: Grouping
    Posted: 13 Feb 2015 at 1:00am
I wonder if someone can help please.

I have a field in a database which contains data as follows:
"AB1235/AB1234"
"AB1235"
"AB1233/AB1235"
"AB1234"

I want to be able to group by each instance of ABxxxx.

I know I can split them at the "/" but can I then group as
"AB1233" = 1
"AB1234" = 2
"AB1235" = 3

Any help would be much appreciated.

Ed

brockloch
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 Feb 2015 at 4:02am
you would not be able to group on them because the data only existsw on one row and would only appear in the first group it matches to.
You could split it in a command or stored proc and union the data to create multiple rows.
IP IP Logged
brockloch
Groupie
Groupie


Joined: 03 Oct 2010
Location: United Kingdom
Online Status: Offline
Posts: 76
Quote brockloch Replybullet Posted: 17 Feb 2015 at 11:06pm
Thanks again for your help I will try the command/union.
brockloch
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.029 seconds.