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


Joined: 23 Mar 2009
Location: United States
Online Status: Offline
Posts: 6
Quote dnrwilbl Replybullet Topic: Grouping
    Posted: 25 Sep 2009 at 1:32pm
I have a report that groups by vendor.  Now I want to put the vendor payments into two groups: one that contains all payments under $25,000 and one that have payment $25000 and over.  I want it to kind of look like this:
 
Vendor X      1,000
                       500
                  24,000
Total          25,100
 
Vendor X   25,000
                 30,000
Total         55,000
 
Can any one help?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Sep 2009 at 2:16pm
Create a formula field to evaluate the amount and then group on the formula as group 2. Do a sum of the amount field at group footer 2. YOu can hide the group header 2 field.
if {table.amount} <25000 then 'Under 25' else '25 and over'
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Sep 2009 at 2:19pm
Or include the vendor name in the formula and replace group one with the fomrula...
if {table.amount} <25000 then {table.vendorname} + ' (under 25k)' else {table.vendorname} + ' (25k and over)'
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.016 seconds.