Hide a chart if no data - pentaho

We are setting a chart on pentaho report designer 5.3 and we want it to hide if no data is returned by the query , lined to that chart .
We have used , the :
=not(isemptydata())
in the visible style expression but it shows
chart_user_no_data_available
on the chart so it is not working .
So how to solve this issue , best regards

Related

can grow field object not working in crystal report

I am working with crystal report in visual studio , the report contains data from the data base . the Problem is that the field object height in the report it is fine for short text length but for long text some characters that exceed the field object height will be hidden.
I have been used can grow property by checking it in the format object window but it didn't work the section height didn't increase automatically to wrap all text .
please how can i solve this problem ? any help would be appreciated
thanks in advance
In crystal reports, create a new formula. (it can be done by right-mouse clicking on Formular Fields in the "Field Explorer". In this formula field, drag and drop the notes field so the formula would look something like this {Command.Notes} or {TableName.Notes}. Then back in your report, right mouse click in the Details section and select Insert --> Text Object. Then drag and drop that newly created Formula field into the newly created blank text object.

Hide chart in Pentaho Report Designer if not data

We are setting a chart on Pentaho Report Designer 5.3 and we want it to hide if no data is returned by the query, aligned to that chart.
We have used, the:
=NOT(ISEMPTYDATA())
in the visible style expression but it shows
chart_user_no_data_available
on the chart, and it is not working.
How do I solve this?
You can define a function that returns true/false. True means "have data", False means "No Data". Then, write in the visible style expression the following code :
=YourFunction

updating data table when clicking on pentaho pie chart slice

Any updates for the above question( Link pie chart to data tables in Pentaho User Console ). I have a question for the same.
I have already created 1 pie chart & a data table(lists the pie chart slice details) in pentaho report designer and successfully published on server(biserver-ce 5.0.1 stable).Now, I need to make it like this: In that pie chart, it show 2 record. Let me call it as Status A & Status B. When I click a slice named status A, it should update data table of list that related to status A.
Can anyone tell me how I can do that?
Thanks in advance.
try Dashboards.fireChange("your_param", theparamsvalue); in the pie's clickAction property.theparamsvalue could be this.getValue() to store the current selection;also in the pie's properties activate clickable, selectable and so on

Export to PDF issue in SSRS

I am having two list side by side and having matrix inside it.Depending on some calculation i am hiding the list.In reportviewer i am getting correct output but when i export to PDF the list which i hided through some calculation is also getting exported .It's killing me. You can get clear idea by the belowImage
In report Viewer
http://s8.postimg.org/d53e2jput/image.png
After exporting to PDF
http://s30.postimg.org/5gwy6uz0h/image.png
Try this:
Open the Tablix Properties
Select the Visibility Tab
Select Show or hide based on an expression
Insert =IIf((Globals!RenderFormat.Name = "PDF" AND <Enter your calculation condition>) OR <Enter your calculation condition>, True, False)

Dundas Dashboards Charts

I am maintaining a product developed on Dundas Dashboards v 2.5. In one of the dashboards they are rendering data in Pie Charts and Bar Charts. For bar charts on the y axis the values appear as Million. I mean 6M , 8M. But in pie charts the value shows up as 6000000 for 6M.
Is there any setting in Bar Charts that displays data as 6M and 8M etc. One more thing to note is that they are using the same dataset to display the data. So, I am assuming that there is some setting at the chart level.
Any ideas and suggestions are appreciated!
Select the bar chart in the dashboard designer. In the property grid, drill into the "Y Axes" property, and from there into the "Scale" property. At the bottom of the Scale properties, there is one property called "Label Format". Copy this value, and paste it into the same property for the pie chart.
See here for more info: http://support.dundas.com/Dashboard3.Chart_Usage.ashx