Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Displaying total count of resultset on Reports

Hi,

I'm designing custom reports with some criteria.For each report I want the total count of workitems to be displayed below the chart that meet the criteria.

For example, I want a total count of workitems reopened within a period of time. I'm using Workitem_Chngs to get it. Though I'm able to generate a bar chart for this, I'm unable to display the total count on my report.

I may be missing something. Please suggest.

Thanks,
Bharath

0 votes



7 answers

Permanent link
On 12/7/2009 10:08 AM, littleheartb4u wrote:
Hi,

I'm designing custom reports with some criteria.For each report I want
the total count of workitems to be displayed below the chart that meet
the criteria.

For example, I want a total count of workitems reopened within a
period of time. I'm using Workitem_Chngs to get it. Though I'm able
to generate a bar chart for this, I'm unable to display the total
count on my report.

I may be missing something. Please suggest.

Thanks,
Bharath


Have you tried using a dynamic text element, binding it to your data
set, and then using one of the "Total" aggregation functions to
calculate the value that you're looking for?

james
RTC Reports Team Lead

0 votes


Permanent link
On 12/7/2009 10:08 AM, littleheartb4u wrote:

Have you tried using a dynamic text element, binding it to your data
set, and then using one of the "Total" aggregation functions to
calculate the value that you're looking for?

james
RTC Reports Team Lead


James, thanks for the reply. I used Total.count(). This gives the count of rows in the result set. What if I want to get total of one particular column in the result set?

Thanks,
Bharath

0 votes


Permanent link
On 12/9/2009 12:37 PM, littleheartb4u wrote:
jmoodywrote:
On 12/7/2009 10:08 AM, littleheartb4u wrote:

Have you tried using a dynamic text element, binding it to your data

set, and then using one of the "Total" aggregation
functions to
calculate the value that you're looking for?

james
RTC Reports Team Lead

James, thanks for the reply. I used Total.count(). This gives the
count of rows in the result set. What if I want to get total of one
particular column in the result set?

Thanks,
Bharath


I think you want Total.sum(row);

james
RTC Reports Team Lead

0 votes


Permanent link
You can also write some javascript in the beforeOpen and onFetch methods of the data set to compute those totals.

In beforeOpen:

totalSum = 0;

In onFetch:

totalSum += row;

This will avoid fetching the data set twice. Once to display the chart and second to compute the totals.

0 votes


Permanent link
Rafik, James thanks a lot. Also, can you please point me where I can find all the aggregate functions of Total?

Thanks,
Bharath

0 votes


Permanent link
On 12/13/2009 8:08 AM, littleheartb4u wrote:
Rafik, James thanks a lot. Also, can you please point me where I can
find all the aggregate functions of Total?

Thanks,
Bharath


I see some documentation here:

http://publib.boulder.ibm.com/infocenter/radhelp/v7r0m0/index.jsp?topic=/org.eclipse.birt.doc/birt/birt-24-4.html

Let me know if this isn't what you're looking for.

james
RTC Reports Team Lead

0 votes


Permanent link
On 12/13/2009 8:08 AM, littleheartb4u wrote:
I see some documentation here:

http://publib.boulder.ibm.com/infocenter/radhelp/v7r0m0/index.jsp?topic=/org.eclipse.birt.doc/birt/birt-24-4.html

Let me know if this isn't what you're looking for.

james
RTC Reports Team Lead


Thanks a lot James. This is exactly what I was looking for.

--Bharath

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 07 '09, 10:03 a.m.

Question was seen: 9,022 times

Last updated: Dec 07 '09, 10:03 a.m.

Confirmation Cancel Confirm