| Get percentage value by group [message #1059533] |
Mon, 20 May 2013 06:33  |
imtinene rjeb Messages: 3 Registered: May 2013 |
Junior Member |
|
|
Hi all,
I am on BIRT 2.2.1 version and can't upgrade because I am dependent on clearquest 7.1.2 version.
I have the following input
ID Submit_Date SpentDays
X1 Feb 14, 2012 7:52 AM 1
X2 Feb 14, 2012 9:49 AM 1
X3 Feb 28, 2012 9:53 PM 0
X4 Apr 13, 2012 11:27 AM 3
X5 Apr 24, 2012 11:22 AM 0
X6 Apr 25, 2012 4:29 PM 0
X7 Apr 26, 2012 2:40 PM 0
What I would like to achieve is to compute the percentage of ID which having spentdays less then 2 grouped by Submit Date and display those values on a line chart
Which means for Feb have 100% and for April 75%.
I have been able to display the total number of defects on a line chart means for
Feb 3
April 3
But all the tries to obtain percentage values by group are failing ( The best I got is having the number of defects with spent time less then 2 / Total number of defects)
Can you help please
Thanks
|
|
|
| Re: Get percentage value by group [message #1059870 is a reply to message #1059533] |
Wed, 22 May 2013 00:15   |
|
Have you tried doing the calculation in a table, then using that as the source of your chart? You could group a table by month, add aggregations for the total under two and for the month total and create a binding in the table that takes just the year from your date. Then, in your chart, you'd use the year binding you created for the x-axis and compute your y-axis value from the two aggregation fields.
Regards,
Michael Williams
BIRT Exchange
Michael's BIRT Blog
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01570 seconds