COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: BIsrik on 29 Sep 2005 07:10:58 AM

Title: [Solved] Display the number of records read
Post by: BIsrik on 29 Sep 2005 07:10:58 AM
I want to display the number of records read in a report. using row number..works fine when the report outputs some data. When there is no data shown in the report the row number doesnot show zero...

Suggest me how to get this...

Srik
Title: Re: display the number of records read
Post by: BIsrik on 03 Oct 2005 12:32:35 AM
i'm struggling with this...any help plz..

Srik
Title: Re: display the number of records read
Post by: asivaram_krishna on 03 Oct 2005 08:15:21 AM
Hi srik

Apply conditional formatting
ur problem will be solved
try it

thanks
siva
Title: Re: display the number of records read
Post by: BIsrik on 03 Oct 2005 09:18:48 AM
i tried even that...it works well when some data are read...if there is no data read then it doesn't outputs the ' number of records read as zero. '

Srik
Title: Re: display the number of records read
Post by: Darek on 03 Oct 2005 09:58:22 AM
Try to reverse the condition for your variable. Maybe 0 is not zero after all. It could be null.
Title: Re: display the number of records read
Post by: BIsrik on 04 Oct 2005 01:28:05 AM
tried even that...didn't work...any more suggestion plz...

Srik
Title: Re: display the number of records read
Post by: mallika on 04 Oct 2005 08:47:06 AM
instead of using the function rowcount(), create a calculation column, set the value of the column to 'null' if all the other columns are null by doing something like this:

1.if([column_1] is null and [column_2] is null and [column_3] is null)then (null) else (1)

Title: Re: display the number of records read
Post by: BIsrik on 04 Oct 2005 08:50:51 AM
Got it..

first added a data item as count(qty) and used this data item in conditional formatting. Got the result..

Thanks for the help guys...

Srik
Title: Re: display the number of records read
Post by: BIsrik on 04 Oct 2005 08:51:10 AM
SOLVED
Title: Re: display the number of records read
Post by: sir_jeroen on 04 Oct 2005 12:44:36 PM
Quote from: BIsrik on 04 Oct 2005 08:51:10 AM
SOLVED
Plz take a look a board rule number 6. Here you find the proper way to close a topic. But tnx anyway for your last post