Issue in creation a chart in pentaho - pentaho

I recently use pentaho BA 8 and I have a problem in the creation of a new chart with sql query in Pentaho.
I've made a query and assign that in the chart, but in the moment to see the preview view, the view appear in blank. FYI, the chart is correctly associated to a row in the layout structure.
My question is, the result of query must be assigned manually in the chart's axis?
The sql query is:
select sum(cantidad) as cantidad, id_cliente from viewdetallecaja where ptl_id = ${ptl}
and the values in the chart properties is attached
Pentaho's chart properties area

can you please add details as to what kind of chart you assigned to. Also check catalina.out which is the log file for Pentaho's BI and paste any errors here if any.

You have assigned the results of the query (Query3) to the chart in the Datasource property. Double check that the query is actually returning results.

Related

How contact sql with tableau so that if there was a mistake in report he marked it as red?

Suppose i have data source for tableau to perform report.
dbo.myreport
Also i check is the value(s) right or wrong?
Let me provide picture to be more clear
i create query that check is the value(s) right or wrong. For example 6,6 is wrong and in dbo.checkmyreport i have structure
date;variable;value;right-wrong
07.05.2021;x1;6,6;wrong
how to do to if value from dbo.checkmyreport marked is wrong then it must automatically must be marked as red in tableau report.
Is there possible?
I'm assuming that you have already added this data into Tableau and kept the column names as such right? And you have already created the desired bar chart.
In Tableau add the "right-wrong" dimension to the Color marks and set the colors as appropriate. That should let you color all the bars that are labelled as "wrong" in a specific color.

MS Access SQL Chart Issue / Chart Disappearing

I have a query that works just fine as long as the Alarms form is opened properly with StartDate1 and EndDate1 populated:
Query: AllAlarms
SELECT Table1.FtStageCd, Table1.Date, Table1.OutAl
FROM Table1
WHERE (((Table1.Date) Between [Forms]![Alarms]![StartDate1] And [Forms]![Alarms]![EndDate1]))
ORDER BY Table1.Date;
When I create a chart in MS Access using the above query as its row source using the MS Access chart wizard it is fine until I select a legend. When I select legend in design mode and in Form/Report mode it goes blank white. Without a legend (series) it loads fine.
When I remove the "WHERE (((Table1.Date) Between [Forms]![Alarms]![StartDate1] And [Forms]![Alarms]![EndDate1]))" from the query above, the charts shows data normally (not sorted as I wanted, but data is shown).
I tried generating a separate report with that chart that is separate from the "Alarms" form then load the "Alarms" form first - populating the "StardDate1" and "EndDate1" and this separate isolated form still does not work (implying it doesn't sound like a timing issue).
For reference below is the row source for the chart:
TRANSFORM Sum([AllAlarms].[OutAl]) AS SumOfOutAl
SELECT [AllAlarms].[Date]
FROM [AllAlarms]
GROUP BY [AllAlarms].[Date]
ORDER BY [AllAlarms].[Date]
PIVOT [AllAlarms].[FtStageCd];
I've tried other things like creating the chart and altering it in VBA, but did not find any property useful to edit (tried applying the date range in a different manner - can't override access chart axes). I've tried not using the Access 2016 chart wizard and I simply could not get any chart to show - may be that I don't have the right reference loaded?
I am surprised CROSSTAB works at all. AFAIK, when dynamic criteria is involved in any query that contributes to a CROSSTAB or in the CROSSTAB itself, there must be a PARAMETERS clause or CROSSTAB must specify column headings. Review http://allenbrowne.com/ser-67.html#Param

Qlikview Fast Change option is not working

I have created one QV report in which i have added one chart which shows result data.
In that chart properties i have tick fast change allowed type as: Pivot table and Straight table.
My QV desktop version is 12. While selecting one dimension and one measure and click on change the type,at that time it is not working.
I have created my another report in QV version 11 and fast change is working proper over there. Is this the issue of versioning?Or else some property issue?
After clicking on the red highlighted symbol, it still keeps as it is and does not converting to pivot data.
Straight Table:
Pivot Table:
Also below is the Screenshot of the report which i have created in QV version 11. For one dimension and measure,while click on fast change option, it is converting to pivot table as per below:
Can anyone help me out please?
I have already tried by deleting my existing chart and created another new chart with same properties but it is also not working for the new one.
Click on the title of the dimesion and drag it up and to the right. your cursor should go off of the object without releasing the mouse button. to about where my green arrow is.
Then it will look like this

Get concrete value in Pentaho Report Designer

Let me explain my problem,
in Pentaho Report Designer I want to build such a report, where I have one data set, i.e. one request to database
SELECT code, name FROM EMPLOYEES
and show result of this request not in the form of list, but put every result in appropriate place. i.e. like in below picture
Where field "code" is unique, just one result can be put into red label in picture.
How can I do this in Pentaho Report Designer?
I can solve this problem by creating 3 data set, for each of caption. But what if captions like this will be much more, creating requests for each of this caption will not be so effective.
Hope I could explain my question.
I don't know if I got it right, but If you want to use the values returned by your query, you could create a new formula called "your_formula":
=MULTIVALUEQUERY("name_of_your_query")
This will give you an array with the result of the query. Then you could use another formula to get the 1st result of the array. For example:
=ARRAYLEFT([your_formula])
and get the first result of your query. This way let you use your_formula as parameter. This means you can drag and drop it on your report and use it.
I hope it helps.
Regards,
Tatan.

bind Data table to chart in vb

I have a project that im working on at the moment in VB.
Basically I have a Data Table in VB it populates with 4 columns and a variable number of rows, the column names are as follows;
Gear, RPM, Speed, CO2
The data table appears in datagridview correctly but that's as far as I have gotten :/
What I am trying to do is to make a line chart called mainGraph to draw a graph based on these results, I'm getting stuck when trying to populate the chart.
ANY thoughts would be really appreciated.
I am guessing you are using the ms chart controls and not some 3rd party like Telerik.
This should be usefull http://blogs.msdn.com/b/alexgor/archive/2009/02/21/data-binding-ms-chart-control.aspx
Also, there is source code found at http://archive.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=4418
in short this is a way to get things displayed
mainGraph.Series(0).ChartType = DataVisualization.Charting.SeriesChartType.Line
mainGraph.Series(0).Points.DataBind(yourDataTable.DefaultView, "Speed", yourDataTable.DefaultView, "Gear")
These commands should make a line graph with Speed on your x axis, and Gear on your Y. Assigned to "Series(0)"
To add more columns, you need to add more "Series"
mainGraph.Series.Add("RPM")
Do some thinking about how you want this data displayed.
how would you like to set this graph up?
I'm assuming you would want a line graph?
What is going to be the X axis? Is there a missing column that needs to be "time" in the data table?
do you want them all on one graph/chart area?
If you would like more charts, then you need to add chart areas. A series can be assigned to a chart area.
Hopefully this helps.