Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Line Graph (percentage) above Bar Graph
Migrateduser
You may want to take a look at the attached image first to hopefully understand what I'm trying to accomplish. <br />
<br />
I have 2 data series, one of "estimated time" and the other of "actual time" that is graphed by month (this works fine!)<br />
<br />
The data rows are structured like this:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>WORKORDERID | ESTIMATEDHOURS | REGULARHOURS | OVERTIMEHOURS | FINISHDATE
ABC123456 | 6.0 | 3.0 | 1.0 | 03/07/2012
ABC789012 | 5.0 | 6.0 | 0.0 | 03/08/2012
</pre>
<br />
"Estimated Time" is just the ESTIMATEDHOURS field. "Actual Time" is the sum of REGULARHOURS + OVERTIMEHOURS. Nothing too complicated there! My chart is working fine by grouping (by month) on the FINISHDATE on the x-axis and having the 2 y-axis series be "estimated hours" and "actual hours" (both aggregated as SUM).<br />
<br />
Now for the fun part. Above each month's bars, I'd like to have a line graph that shows a productivity percentage as (ESTIMATED / ACTUAL)*100. I know this may seem weird, my personal opinion is that it should be ACTUAL / ESTIMATED but management wants the ratio the other way, but I digress. I have successfully added a second y-axis, but I'm not sure how to aggregate the data. <br />
<br />
If the 2 sample rows listed above were the only 2 data points for March 2012, the percentage would be 110% ( Sum of all estimated hours / sum of all regular and overtime hours * 100 ) or (6+5)/(3+1+6+0)*100= 110%<br />
<br />
I tried PERCENTSUM but it didn't seem to work. Perhaps I was just doing it wrong. <br />
<br />
Any and all help is greatly appreciated!<br />
<br />
EDIT: As a better example using the sample chart below, if the blue bars were "estimated time" and the red bars were "actual time" then all that I want the line graph to be on the top is: (ignore the sample values that BIRT automatically fills in for the line graph)<br />
Jan: (6/42)*100 = 14%<br />
Feb: (4/91)*100 = 4%<br />
Apr: (12/62)*100 = 19%<br />
...etc..
Find more posts tagged with
Comments
There are no comments yet