If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Using the Oracle ROUND function with dates

Started by cognos_guru, 23 Nov 2009 02:28:11 PM

Previous topic - Next topic

cognos_guru

Does anyone know if Cognos supports using the oracle round function with a date?  I tried adding a custom data item as follows:

round ([DATE], 'YEAR')

.. but I keep getting an error.  The tips only show rounding to an integer value.

jmwhite

Have you tried using the EXTRACT function instead?

imts

U can use - Extract ( date_name , Year ) or to_char( dat_name , 'YYYY') .

-Tarun

cognos_guru