Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: showing data depending on other column Post Reply Post New Topic
Author Message
SVMS
Newbie
Newbie
Avatar

Joined: 30 Jun 2010
Location: Netherlands
Online Status: Offline
Posts: 3
Quote SVMS Replybullet Topic: showing data depending on other column
    Posted: 05 Jul 2010 at 2:26am
Hi all,
 
I am a bit new to crystal reports but came into the following issue :
 
I have a table which looks like the following :
 
Row   Column A   -  Column B    -   Column C   - Column D etc
 
I          221                  0                    null                 data I
 
II        222                  0                    221                 data II
 
III       223                  1                    221                 data III
 
IV        224                  0                    null                 data IV
 
V         225                  0                    null                 data V
 
VI        226                  0                    225                data VI
 
VII       227                  1                    225                data VII
 
As you can see row I, II and III belong together as 221 is repeated and rows V, VI and VII belong together.
 
What I would like to see on my report with the table as given is the following :
 
221    223   data III
224             data IV
225    227   data VII
 
I'll try to put it in words as well : If there is a 1 in column B I want to print column C followed by column A followed by Column D (with rows I, II and III, I only want to print the last row)
 
However if there is no 1 in column B I want to print Column A followed by an empty space and then Column D (as example with row IV).
 
I hope someone can help me with this. I have tried the if function but i can't get it working with the null (i am guessing this is the problem) value.
 
Thanks in advance for any help on this.
IP IP Logged
AntDC
Groupie
Groupie
Avatar

Joined: 23 Dec 2008
Online Status: Offline
Posts: 76
Quote AntDC Replybullet Posted: 05 Jul 2010 at 3:35am
Look at groupings
IP IP Logged
SVMS
Newbie
Newbie
Avatar

Joined: 30 Jun 2010
Location: Netherlands
Online Status: Offline
Posts: 3
Quote SVMS Replybullet Posted: 05 Jul 2010 at 4:44am
I have tried your advise but could you perhaps be more specific as I cannot get it up and running correctly.
IP IP Logged
SVMS
Newbie
Newbie
Avatar

Joined: 30 Jun 2010
Location: Netherlands
Online Status: Offline
Posts: 3
Quote SVMS Replybullet Posted: 12 Jul 2010 at 12:40am
sorry for bumping this to the top again but is there someone that could possibly help me on this subject??
 
As mentioned before, I have tried using groupings but couldn't get it to work as I then always mis a certain part.
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.000 seconds.