COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: saumil287 on 22 Mar 2011 05:52:11 AM

Title: Excel month column displaying date after importing into framework manager
Post by: saumil287 on 22 Mar 2011 05:52:11 AM
I am having an excel file which is having column month but after importing into the framework manager,It displays the entire date
I want only month name to be displayed.
Any suggestion is appreciated.
Title: Re: Excel month column displaying date after importing into framework manager
Post by: blom0344 on 22 Mar 2011 08:51:22 AM
Your Excel file is probably storing the column as a date, but presenting the contents as the monthname. In FM the excel formatting is omitted, hence the entire date.
You can either add a calculated column to the excel worksheet or add a query item to the FM model:


CASE
EXTRACT(MONTH,[IMPORTEDDATE])
WHEN 1 THEN 'January'
WHEN 2 THEN 'February'
....
....
WHEN 12 THEN 'December'
ELSE NULL
END