Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Problems with crosstabs Post Reply Post New Topic
Author Message
Thio23
Newbie
Newbie


Joined: 23 Jul 2007
Online Status: Offline
Posts: 4
Quote Thio23 Replybullet Topic: Problems with crosstabs
    Posted: 23 Jul 2007 at 3:58am
Hello,
 
I#m a newbie to CR and I got a question about the layout of crosstabs.
 
My crosstab looks like this
 
                                 Column
Row 1                        info 1
                                  Info 2
       Row 2                 info 1
                                  Info 2
 
In Row 1 only info 2 should be visible and in Row 2 only info 1. This is basically not a problem, I just supress the fileds. But then I get a layout like this:
 
                                   Column
Row 1                         
                                   info 2
           Row 2              info 1
 
What I would like to have looks like this
 
                                  Column
Row 1                        info 2
            Row 2            info 1
 
Is there any possibillty not only to supress the information in the report, but also to supress the empty row I get wenn supressing the information? Confused
 
Thanks
 
Thio23
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 23 Jul 2007 at 12:25pm
Use a formula to check for the current row and only return the proper info 1 or 2 value. Then have the cross-tab summarize on this formula rather than the actual fields. 
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Thio23
Newbie
Newbie


Joined: 23 Jul 2007
Online Status: Offline
Posts: 4
Quote Thio23 Replybullet Posted: 23 Jul 2007 at 10:45pm
Hi Brian,
 
could you give me an example on how this formula should look like?
 
Thank you
 
Michael
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 23 Jul 2007 at 11:15pm
Ok, assume you create a formula called 'NewInfo"
If {table.Row}=1 Then
    2
else
    1;

Then use the NewInfo function in your cross-tab summary field.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
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.015 seconds.