Oracle BI Publisher :: Unable to Change Bar Chart to Line Chart - oracle-bi

Tool :: Oracle BI Publisher
Issue : Data has insufficient number of columns. This graph type requires atleast 2 columns of data . The data provided has 1 column.
The requirement is a Plain Line Chart to be available instead of Bar Graph.
We have initially created a Bar Chart , once we tried to change to plain Line chart the following message is being displayed -
"Data has insufficient number of columns. This graph type requires
atleast 2 columns of data . The data provided has 1 column. "
The message displayed once the chart type is changed in query builder

Related

Howto make one Power BI pie chart widget from two columns data / or merge two pies in one

I have a table with two columns (more in real life)
| firmware_check_result | software_check_result |
| -------------------------|-----------------------|
| firmware checksum error | software outated |
| firmware outated | software slow |
| | software bug |
Results can be any text from a predefined list of reasons.
But results are different in both columns. And a row can have one or no firmware check result and one or no software check result.
I need to build one unique pie chart with all the data from both columns.
Is it possible ? and how to to it ?
I tried to add both columns like this:
Drop a Pie chart on canvas
in Properties:
in Legend: I added both columns
in Values: I added both columns
Result is strange as I have one pie chart
but legend is only the legend of the 1st column, not the second.
It there a way to do this ?
This shows a result with 3 results possibilities but legend has only two and colors are the same for 2 out of 3 results.
Here is one approach. For simplicity I will use only your example columns in my answer:
Create a new query using the same data as before
Keep only the firmware_check_result and software_check_result columns, as well as an index or unique identifier (UID) column of some kind (and any other information you think may be useful later)
I will refer to the UID column as [UID]
Select and unpivot your firmware_check_result and software_check_result columns in the new query
Close and apply the changes
Create a new relationship between your original table and your new unpivoted table based on [UID]
Create a new pie chart
For your values, use Count of [UID]
In the legend, from your new unpivoted query, place Attribute first, then Value underneath
You can switch between the two levels using Drill Up and Expand all down one level in hierarchy or Go to next level in hierarchy

Oracle Reports (6i): Get difference of two items from two different queries (Multi Query Report)

I have an Oracle 6i report with Two Complex Queries (Q1 and Q2) connected by Data Link. The report was developed by some other developer who is not available now. Multiple columns are being displayed in report.
Q1 has a column Total_Issuance and Q2 has a column Total_Consumption. I have to display their difference on report. I am using a formula column to get the difference and then binding a display field to this formula column to show on report.
But since the formula column is outside both the queries, I am getting following errors.
REP-1517: Coloumn 'CF_1' references column 'Total_Issuance', which has incompatible frequency.
REP-1517: Coloumn 'CF_1' references column 'Total_Consumption', which has incompatible frequency.
Just like the formula column is outside both queries, create two additional summary columns (outside of both queries):
cs_tot_iss, which will sum total_issuance
cs_tot_con, which will sum total_consumption
Now modify formula column so that its source are newly created summary columns, e.g. let it
return :cs_tot_iss + :cs_tot_con;
As of paper layout: you don't have to display cs_tot_iss nor cs_tot_con (as you already have those values via total_issuance and total_consumption), just add formula column.
Create a new calculated field to the query that is the detail query (I asume it's Q2).
In this calculated field you can simply use:
return :Total_Issuance - :Total_Consumption;
to calculate the difference.

Not able to render line chart using d3.js for various date range

I am preparing line chart using d3.js. Wherein I have to create chart for different types of date range on x axis. For example,
For 1 month data
01-01-2018 to 31-01-2018 . This is working fine.
But when I truncate data from database and only prints for months. Like,
FEB-2018 & MAR-2018 ... It is showing repeated values on x axis ... Instead it should show only 1 value for whole month ..
For better understanding, I have prepared the same problem on github.
Please check the link below .
Problem Reproduced with code

Create multipe charts using filtered data from a table

I'm developing a report on Report Builder 3.0 that should look like following image.
Each pie chart should receive the value of the properties "Approved" and "Reproved" for a specific date and machine.
Is it possible to filter these properties on each Date/Machine group? The DataSet may include other properties that will be shown on the Property/Value table, but will not be included on the chart
At this moment I have the following model for the report
I´ve tryed to use the lookup function, but, as expected, it returns all the values on the DataSet. Is it possible to narrow the search scope?
Below is the DataSet that I'm using for the test:
|Machine|Machine_ID|Date|Property|Value|
|--------|---|----------------------|--------|---|
|Machine5|A|2017-02-12 20:00:00.000|Total|200|
|Machine5|A|2017-02-12 20:00:00.000|Approved|150|
|Machine5|A|2017-02-12 20:00:00.000|Reproved|50|
|Machine2|B|2017-02-12 20:00:00.000|Total|0|
|Machine2|B|2017-02-12 20:00:00.000|Approved|0|
|Machine2|B|2017-02-12 20:00:00.000|Reproved|0|
|Machine1|C|2017-02-12 20:00:00.000|Total|100|
|Machine1|C|2017-02-12 20:00:00.000|Approved|80|
|Machine1|C|2017-02-12 20:00:00.000|Reproved|20|
|Machine1|C|2017-02-13 20:00:00.000|Total|300|
|Machine1|C|2017-02-13 20:00:00.000|Approved|200|
|Machine1|C|2017-02-13 20:00:00.000|Reproved|100|
Thank you.
This should be doable with row groups in a list.
Insert a list
Add a parent row group to group on DATE.
Group your details region on MachineID
Insert a tablix into the detail region rectangle
Insert a graph next to it
Insert a column next to the detail region (to the left) to get the MachineID column
It should look like this..
This shows the two row groups, and the detail region with the tablix and the graph.

Oracle APEX 5 charts not working as expected

I've created a chart in Oracle APEX 5 with 3 different data series:
Series 1: Line
Series 2: Bar
Series 3: Line
I've enabled multiple y-axis with different scales.
When I create Series 1, it uses primary y-axis automatically (as expected).
When I add Series 2, it uses extra y-axis automatically (as expected).
When I add Series 3, all three series start using the primary y-axis (unexpected).
I want Series 1 and 3 to use the primary y-axis and Series 2 to use the extra y-axis. I had created similar chart before and it worked fine. This time I'm unable to get Series 2 to use the secondary y-axis, please help!
Thanks!
Based on Hilary's sample application, the 2nd series should be the one used for the extra y-axis.
https://apex.oracle.com/pls/apex/f?p=36648:7
You may get a response from the APEX dev team if you ask in the OTN forums, especially if you provide a sample on apex.oracle.com

Resources