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


Joined: 10 Feb 2010
Location: Greece
Online Status: Offline
Posts: 7
Quote tatanka Replybullet Topic: Supress Group
     Posted: 24 May 2012 at 7:53am
Hi to all
I am having a problem to supress a group. I am trying to explain.
I have two groups.First group is code and second is Lot Number of a code.
I want when all of sum of lot number of a code is 0 then  group of code is supress.
In formula i wrote to supress when sum of lot number of a code is 0 and i am ok
But i want when two of lot like lot1 = 1 and lot2 is -1  and total =0 not to supress .

For examble

I want code to supress when:

group ofcode 001    0
and lot1     0
       lot2      0

and i dont want to supress code when
code 001 0
and lot1   1
       lot2   -1

Can you help me please?

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 24 May 2012 at 7:59am
add in an and condition using minimum(lot,code)=0
IP IP Logged
tatanka
Newbie
Newbie


Joined: 10 Feb 2010
Location: Greece
Online Status: Offline
Posts: 7
Quote tatanka Replybullet Posted: 24 May 2012 at 8:30am
i have wright  the following
Sum ( {group of Code})=0;(minimum({lot},{Code})=0)
but it didnt work
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 24 May 2012 at 8:34am
firstly I am assuming that you have a group using the "Code" field
you need both to use group condtition
 
Sum ({lot},{Code})=0 and minimum({lot},{Code})=0)
 
replace {lot} with the number value field you want to sum
replace {code} with the "Code" field you are grouping on
 


Edited by DBlank - 24 May 2012 at 8:35am
IP IP Logged
tatanka
Newbie
Newbie


Joined: 10 Feb 2010
Location: Greece
Online Status: Offline
Posts: 7
Quote tatanka Replybullet Posted: 24 May 2012 at 9:43am
thanks a lot .it works
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