Folks, frustrations galore.....
Want to load dates from a RDBMS into a TM1 staging cube. Then pass this to a planning cube for use in calculations.
When my target measure 'Estimated Launch Date' is defined as date format, the load fails.
When my target measure 'Estimated Launch Date' is defined as text format, the load works.
When i pass this text to the date field in the planning cube it fails on the 'cell type error'
When passing the date to planning cube it must be a true date as i need to reference it in conditional calcs - 'if started = no, then do ...'
What are the considerations here please ? Do i need to treat the date as numbers then convert ....?
Thanks
Mark
TI Process : Loading Dates
- qml
- MVP
- Posts: 1096
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: TI Process : Loading Dates
TM1 only has two data types: numeric and string data. You will need to store your dates converted to one of these two types. I personally like to store data as string and with the correct order of Y/M/D you can even compare them, e.g. '2012-09-18' > '2012-09-17' (you can replace the dashes in your format with something else or remove them altogether). If you decide to store dates as numbers (e.g. 20120918 or the excel serial date format 40804) then comparison is just as easy.
Kamil Arendt
-
- Posts: 60
- Joined: Tue Jul 10, 2012 3:37 pm
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2007
Re: TI Process : Loading Dates
@qml
My conditional calc is roughly as follows.
Forecast period Start Date - setup as DATE format
Forecast period End Date - setup as DATE format
Product Active? = If 'Estimated Launch Date' falls between these two dates THEN "YES"
I cannot do this if usind differnet data types. If my 'Estimated Launch Date' is TEXT i cannot include it in my formula.
Ditto for start/end of month Buit-in-functions
Mark
My conditional calc is roughly as follows.
Forecast period Start Date - setup as DATE format
Forecast period End Date - setup as DATE format
Product Active? = If 'Estimated Launch Date' falls between these two dates THEN "YES"
I cannot do this if usind differnet data types. If my 'Estimated Launch Date' is TEXT i cannot include it in my formula.
Ditto for start/end of month Buit-in-functions
Mark
-
- 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: TI Process : Loading Dates
Format is just that...formatting for display purposes. It does not control the data type actually stored in TM1 or the type of comparisons you can do with the data. TM1 only stores two types of data, strings and floating point numeric. My personal preference is to store dates as numeric, just like you would see in Excel, and let the formatting option in TM1 (or Excel, depending on what client you are using) and control how it is displayed.Mark H wrote:Forecast period Start Date - setup as DATE format
Forecast period End Date - setup as DATE format
This post http://www.tm1forum.com/viewtopic.php?f=21&t=2441 will tell you all you need to know about dates.
-
- Posts: 60
- Joined: Tue Jul 10, 2012 3:37 pm
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2007
Re: TI Process : Loading Dates
@tomok
Hadnt spotted that posting. Thanks
Will try to digest.
Mark
Hadnt spotted that posting. Thanks
Will try to digest.
Mark
-
- Posts: 60
- Joined: Tue Jul 10, 2012 3:37 pm
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2007
Re: TI Process : Loading Dates
Folks
I followed the instructions provided by Tomok and all works perfectly.
I have attached short document with screen prints to illustrate the instructions.
Thanks
Mark H
I followed the instructions provided by Tomok and all works perfectly.
I have attached short document with screen prints to illustrate the instructions.
Thanks
Mark H
- Attachments
-
- Loading dates into TM1.docx
- Loading Dates into TM1
- (173.66 KiB) Downloaded 505 times
-
- Posts: 9
- Joined: Mon Oct 04, 2010 1:06 pm
- OLAP Product: Cognos Planning and TM1
- Version: 8.4 and 9.5
- Excel Version: 2007
Re: TI Process : Loading Dates
Thank You Mark. That document was of real help to my requirment. Thanks for putting it through.