COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: subhash on 23 Jan 2008 10:56:23 PM

Title: regarding the distinct values
Post by: subhash on 23 Jan 2008 10:56:23 PM
hi,

  i have a date prompt in my report. when i run the report i am getting duplicate rows into the prompt. i.e i am getting the date value repeated multiple times. but i want it to get only one time. how this can be done.

thanks
subhash.
Title: Re: regarding the distinct values
Post by: Suraj on 24 Jan 2008 10:26:49 AM
Cognos automatically displays distinct values.
It'll repeat the values only if the data it is querying has distinct row combination.
Try using a separate query for the date prompt that has only date query item.
Title: Re: regarding the distinct values
Post by: almeids on 24 Jan 2008 11:08:43 AM
The problem may be that you are just displaying the date portion of a date/time value.  Use Cognos or database functions to strip the data item down to just the date portion.