Framework:FKT TimeDimFromDate: Difference between revisions

From CoPlanner 11
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
FKT_TimeDimFromDate(<time interval>,<date>)
FKT_TimeDimFromDate(<time interval>,<date>)


{| cellspacing="1" cellpadding="3" width={{{breite|80%}}}  border="1"
{|class="wikitable" width="80%"
|-
|- {{Tabellentitel}}
| style=background-color:#f6f6f6 |'''Parameter'''
| Parameter  
| style=background-color:#f6f6f6 |'''Description'''
| Description
|-
|-
|Time interval
|Time interval

Revision as of 11:56, 6 March 2012

Function

FKT_TimeDimFromDate(

Parameter Description
Time interval J (year), T (day), M (month), Q (quarter)
Date DD.MM.YYYY or column of the “date” data type


Result

The COPSYS_ID of a time dimension is generated from a date value. The “target type” is determined by entering the “target interval”.

Example b01_FKT_TimeDimFromDate

Table: b01_FKT_TimeDimFromDate

Source column: date = 01.04.2005

Function: b01_TimeDimFromDate: FKT_TimeDimFromDate(M, [bsp_tbl_time functions.date])

Results column: Time1 (Lookupdimension dim_sys_time) = Apr 2004 (20050403)