Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Skips 0s Post Reply Post New Topic
Author Message
waterboy550
Newbie
Newbie


Joined: 02 Jul 2007
Online Status: Offline
Posts: 2
Quote waterboy550 Replybullet Topic: Skips 0s
    Posted: 02 Jul 2007 at 5:46am
I have a program that exports data that I use Crystal Reports to make a report with. The problem is that the program that exports the data makes a row of numbers where every other row is my data and every other row is a 0. Example:

4 5 8 2 9
0 0 0 0 0
2 2 4 5 6
0 0 0 0 0
1 1 4 5 6
0 0 0 0 0

I've used formula fields to define each different row, but is there a way I can use formula fields to skip the 0's so the data above would like like this. Example:

4 5 8 2 9
2 2 4 5 6
1 1 4 5 6

I don't want to use select expert for this, because it will screw up the rest of my report.

Edited by waterboy550 - 02 Jul 2007 at 5:55am
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 02 Jul 2007 at 8:47am
Will zero ever be a valid number in a data row you want displayed? What condition causes the row of zeros to be returned? Knowing those two things might help sort out a solution.
 
Regards
 
John W.
IP IP Logged
waterboy550
Newbie
Newbie


Joined: 02 Jul 2007
Online Status: Offline
Posts: 2
Quote waterboy550 Replybullet Posted: 02 Jul 2007 at 9:49am
No, zeros will never be valid, they should always be removed. The rows of zeros are in my data source, another program writes them. Like I've said I could use select expert to show only the ones without zeros, but this would effect the whole data source and not just the fields that i need this applied to.
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 02 Jul 2007 at 9:58am
Well you could go to the SECTION (not selection) expert  and the suppress using a formula similar to
---------------
{yourFieldName} = 0
--------------------------
When that happens it should suppress that detail row from showing.
 
Regards,
 
John W.
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 02 Jul 2007 at 9:59am
Oops! I forgot to say you suppress the detail row.
 
Sorry
 
John W.
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.