sadakar Posted April 2, 2014 Share Posted April 2, 2014 Hi Forum,Result set is like belowA Ba 0b 0c 0When there is values 0 then the chart is not coming up ... but the title is coming for the chart (static text on title band)....Added NO data section and added the same title and message in this .. so when there is 0 values I want to display this NO Data section message .. How it is possible ?Did any one faced same issue ? Thanks in Advance.Sadakar Link to comment Share on other sites More sharing options...
kcollins Posted April 2, 2014 Share Posted April 2, 2014 Hello Sadakar,To display the No Data section, select the report element in the report inspector on the left. In the reports properties, there is a property called 'When No Data'. Here you can select 'No Data Section'.-Kris Link to comment Share on other sites More sharing options...
sadakar Posted April 2, 2014 Author Share Posted April 2, 2014 Hi Kris Thank you. I've already tried that. What I need is when the result set contains all 0's the pie/doughnut chart not displaying any thing ? For eg : if the result set is 1 0 0 then 1 is coming up on pie along with 0's. Link to comment Share on other sites More sharing options...
kcollins Posted April 2, 2014 Share Posted April 2, 2014 I'm not sure I understand your example. Your example is not all zeros; there is a 1 in the dataset. That being said I'm not sure if what you are trying to do is possible. You could try with an expression like this: $P{myfield} == 0 ? NULL : $P{myfield} With this expression, if there is a 0 in the data, it will set the value to NULL instead. However, I think the chart (or parts of it) will still show. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now