Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Hiding blank graphs Post Reply Post New Topic
Author Message
sanur13
Newbie
Newbie


Joined: 25 Apr 2016
Location: France
Online Status: Offline
Posts: 18
Quote sanur13 Replybullet Topic: Hiding blank graphs
    Posted: 09 Jun 2016 at 3:08am
I'm relatively new to Crystal Reports and I'm getting trouble with this:

I created a graph on the group header section so that it shows the sales by client per month. Each client gets its own graph. The thing is that I'm getting blank graphs for the clients that didn't buy anything on the period. I tried to used the following code on the "Suppress if blank" option in the Section Expert in order to hide the blank graphs, but it didn't work:

IF COUNT(T_CMDE.ID_CMDE_LINE)=0 THEN TRUE

Any help is much apreciated.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Jun 2016 at 3:35am
you would need to use a group condition on the graph.
not sure what your graphing but something like
sum(table.sales,table.client)=0
making sure to set the formula to use default values for nulls
IP IP Logged
sanur13
Newbie
Newbie


Joined: 25 Apr 2016
Location: France
Online Status: Offline
Posts: 18
Quote sanur13 Replybullet Posted: 20 Jun 2016 at 2:39am
Thanks! It worked fine!
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.047 seconds.