COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Sakthi on 02 Nov 2012 12:44:55 PM

Title: _days_between function not working in C10 RS with MS Access DB
Post by: Sakthi on 02 Nov 2012 12:44:55 PM
Hi Friends,

I'm working on a POC and we are using MS Access as a db.
I have an attribute with Date Time datatype. Assume the attribute name is [Enrollment Date].

In C10 Report Studio, i'm using a data item [Aging]to find the difference between the current system date and [Enrollment Date].
I normally use _days_between function to find the difference.
Here i'm facing an error and i do not know what function needs to be used for MS Access or shouldn't i use current_date to find the system date.

Your help is much appreciated.
Title: Re: _days_between function not working in C10 RS with MS Access DB
Post by: bi4u2 on 02 Nov 2012 02:53:23 PM
You can try using the cast function in the two query items that you are performing the _days_between against, to make sure that both items are considered dates. Example CAST([Invoice Date],date)