Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Grouping based on small part of data. Post Reply Post New Topic
Author Message
rftd
Newbie
Newbie


Joined: 09 Jun 2008
Online Status: Offline
Posts: 24
Quote rftd Replybullet Topic: Grouping based on small part of data.
     Posted: 09 Jun 2008 at 12:44pm

Hi,

I have a crystal report with a column of data that is essentially of the format: 1234-5678-9101-12334

I want to group the report based on the first THREE digits in such a number. For example, If the numbers were:

1234-5678-901
1234-56839-123
1332-5678-910
1335-234-23423
 
The groups would be '123' and '133' (i.e. the grouping wouldn't take into account digits after the third digit.).
 
Do any of you know how to do this?
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 12 Jun 2008 at 6:47am
Hi
 
you can do that in your sql query also if you ok with that or else create crystal formula  Left(field,3) then group by that field .
 
cheers
rahul


Edited by rahulwalawalkar - 12 Jun 2008 at 6:50am
IP IP Logged
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