COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: barrysaab on 24 Aug 2011 08:52:18 AM

Title: Date prompt returning zero vales
Post by: barrysaab on 24 Aug 2011 08:52:18 AM
My report is a list report which has date prompt "Start Date" and it doesn't have end date Now the end user wants to view data from Ist Aug to 18 Aug. I have changed the date prompt to in-range but the report is returning zero values.

Please help.Thanks
Title: Re: Date prompt returning zero vales
Post by: bvk.cognoise on 24 Aug 2011 09:24:14 AM
HI barrysaab,

first check whether in DB it has records between Ist Aug to 18 Aug or not, second one please check the format of  Date in  your column.whether it only contains Date  or Date and time.if it contains date and time please try to convert it into date then try it once again.

thanks
bvk

Title: Re: Date prompt returning zero vales
Post by: barrysaab on 25 Aug 2011 02:27:46 AM
It has values for particular dates,the report is working fine when i choose particular startdate but as i have changed and added "End Date" and changed the filter also,and this is giving zero values.Thanks
Title: Re: Date prompt returning zero vales
Post by: MFGF on 25 Aug 2011 07:06:57 AM
Hi,

Silly question - did you change the date filter to in_range, or did you change the date prompt 'Range' property to be 'Yes', or both?  You will need to have done both for it to work as you expect.

Regards,

MF.
Title: Re: Date prompt returning zero vales
Post by: barrysaab on 25 Aug 2011 09:22:18 AM
Thanks,i did the both.But it still behaving the same way.
Title: Re: Date prompt returning zero vales
Post by: MFGF on 25 Aug 2011 11:11:35 AM
Can you show us the expression you are using in your filter?
Title: Re: Date prompt returning zero vales
Post by: barrysaab on 27 Aug 2011 11:24:45 AM
I have applied these filters.

[Sales DM].[DATE].[Calendar Date]<=?End Date?
[Sales DM].[DATE].[Calendar Date] >= ?Start Date?
[Sales DM].[DATE].[Calendar Date] between ?Start Date? and ?End Date?

But I suspect the data is not coming correct, secondly when I changed the Calendar Date]>=?End Date? and [Sales DM].[DATE].[Calendar Date] <= ?Start Date? it is returning zero values. Could you guys please help? Thanks.
Title: Re: Date prompt returning zero vales
Post by: MFGF on 30 Aug 2011 10:27:37 AM
Ah! I see the problem! Remove the first two filters and just leave the third in place - all you need is a single filter with the expression

[Sales DM].[DATE].[Calendar Date] between ?Start Date? and ?End Date?

Regards,

MF.