COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Web2CRM on 16 Oct 2013 11:33:47 PM

Title: Display monthly counts in a single row (list report)
Post by: Web2CRM on 16 Oct 2013 11:33:47 PM
Hi,

I have a list report with series of columns for months Jan - Dec(calculated).

Report ID                Report Name             Jan             Feb           Mar            Apr.... etc      Total Counts
0001                       TEST01                        5
0001                       TEST01                                          7
0001                       TEST01                                                                             4
0001                       TEST01                                                          3

As you can see, the counts for every months for one unique report ID and Report name were displayed in 4 rows.

What I need to achieve is to display the counts for every months in a single row only and counts the total.

Report ID                Report Name             Jan             Feb           Mar            Apr.... etc      Total Counts
0001                       TEST01                        5                7                3               4                       19

Thanks in advance...
Title: Re: Display monthly counts in a single row (list report)
Post by: Ammus1234 on 17 Oct 2013 01:51:52 AM
Have you checked the query formed? What is the aggregate functions of the calculated dataitem?
Title: Re: Display monthly counts in a single row (list report)
Post by: Web2CRM on 17 Oct 2013 07:49:36 AM
I already figured it out and it works by using unions.. Thanks!!!