COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: sanchoniathon on 09 May 2019 01:00:22 PM

Title: Cognos Count by colA
Post by: sanchoniathon on 09 May 2019 01:00:22 PM
Hi there,

WE have a list report with 5 columns:

ColA, ColB, ColC, ColD, ColE

- Grouped on ColA
- ColE = days_between ( [Order Created], [Package Created] ))

QUESTION :
- We now need to display on another report (same or different page) to count the "number of times" all equal "ColE" values appear for each ColA value.
- For example: We want to know how many times does the value 1 is displayed on the report for each ColA. How many times does the value 2 is displayed, etc up until value 4.

ColA, NbTimesValue1, NbTimesValue2, NbTimesValue3, NbTimesValue4


regards.
Title: Re: Cognos Count by colA
Post by: BigChris on 10 May 2019 02:09:20 AM
count(distinct [ColB] for [ColA])