COGNOiSe.com - The IBM Cognos Community

Planning & Consolidation => COGNOS Planning => Topic started by: StuartS on 01 Jul 2009 07:28:52 AM

Title: Identify Year - RESOLVED
Post by: StuartS on 01 Jul 2009 07:28:52 AM
Hello

I am using Planning 8.1

In a D-Cube I need to identify the year from a timescale D-List.

On another D-List I know I can use the Time bif.  BUT I can not use a date format that only displays the year, e.g. YYYY in contributor when using this Bif.  The only formats that can be used are similar to dd/mm/yy.

Has any open found an alternative way of achieving this?

Thanks

Stuart

Title: Re: Identify Year - RESOLVED
Post by: StuartS on 01 Jul 2009 07:41:06 AM
Found solution, thanks
Title: Re: Identify Year - RESOLVED
Post by: SanderH on 01 Jul 2009 08:09:15 AM
Hi,

Please share the solution, it may help other users in the future.
Title: Re: Identify Year - RESOLVED
Post by: StuartS on 09 Jul 2009 07:15:00 AM
This is one of those problems which can be achieved but not by a direct route.

The Bif function @time returns the time period from the time D-List.  However, as indicated in a previous post if you use the date format YYYY on a @time Bif it is not recognised by Contributor.

The solution is to not use a date format, but to use additional rows.  The three rows are indicated. None of which have any formatting.

RowA, @Time(4)
RowB, Conditional Calculation, (RowA/365.25)+1900
RowC, @TRound(1;D;RowB)

Of course for this to work you need to have a time D-List in your cube.

Regards

Stuart