Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Group Post Reply Post New Topic
Author Message
leo_dec
Newbie
Newbie
Avatar

Joined: 25 May 2009
Online Status: Offline
Posts: 7
Quote leo_dec Replybullet Topic: Group
     Posted: 28 Aug 2009 at 9:47am
Hi
I want to add one group named "others" which should include all countries except ?USA,India, Egypt. Report should look like this:-
 
countries             sales
usa                      $20,000
India                    $25,000
Egypt                   $20,000
Others                 $80,000
 
Thanks
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Aug 2009 at 10:05am
Create a fomula field that yuo can use for the grouping.
Name it whatever "CountryOther"...
if {table.countyfield} in ["USA","India","Egypt"] then {table.countyfield} else "Other"
 
Note that there is also a top N grouping function if that is really what this is.
IP IP Logged
leo_dec
Newbie
Newbie
Avatar

Joined: 25 May 2009
Online Status: Offline
Posts: 7
Quote leo_dec Replybullet Posted: 28 Aug 2009 at 10:21am

Thanks for your help.

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