Dates issue-Help needed<Urgent>

Post Reply
sathishh.mk
Posts: 38
Joined: Mon Dec 20, 2010 5:02 am
OLAP Product: Cognos TM1
Version: 9.4 and 9.5
Excel Version: 2003 and 2007

Dates issue-Help needed<Urgent>

Post by sathishh.mk »

Hi All,

We have small requirement on dates.
we need to subtract one date minus another date.
Currently we are doing this at Data base level and bringing into TM1.
So instead of that,I need to do this at TM1 end.
Can you please help me on this.

EX: First date:20/11/2011 - second Date: 18/11/2011 = 2 Days.

Environment: TM1 9.5.2,window 2008 Server R2,Oracle 10g.


Thanks in Advance for your help!!!


Regards,
Sathish
Christopher Kernahan
Community Contributor
Posts: 147
Joined: Mon Nov 29, 2010 6:30 pm
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: Office 2010

Re: Dates issue-Help needed<Urgent>

Post by Christopher Kernahan »

Create a dimension with all your dates in it then locate the DIMIX of each date and subtract that.
fliptop
Posts: 6
Joined: Mon Oct 18, 2010 1:18 pm
OLAP Product: Cognos TM1+Planning
Version: 9.5.1+8.4.1
Excel Version: 2003

Re: Dates issue-Help needed<Urgent>

Post by fliptop »

DAYNO(2011-11-20) - DAYNO(2011-11-18) = 2

DAYNO('DateString')
A date string in either YY-MM-DD or YYYY-MM-DD format.
Acc_Moonwalk
Posts: 32
Joined: Fri May 27, 2011 9:06 am
OLAP Product: TM1
Version: 9.4
Excel Version: 2003

Re: Dates issue-Help needed<Urgent>

Post by Acc_Moonwalk »

Hi,

Is there any way we can enter dates in the intersection of a cube?

we are trying to enter some dates in the cube cells and try to extract the no of days between source date and target date. How is this possible in TM1?
we have two dimensions one is month dimension having all month elements
second dimension is dates having three elements(Source date, Target date and Days Between)

Dates
Month Source date Target date Days Between
Jan 20-10-2011 25-10-2011 5
Feb 01-10-2011 21-10-2011 20

Many thanks
Naresh
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Dates issue-Help needed<Urgent>

Post by tomok »

Just like in Excel you can store the serial number for the date in the cube then it's very easy to extract dates. Did you even bother to search the forum before you posted this question? There must be literally hundreds of posts about dates logic in TM1.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Post Reply