load_time_dimension 1 Normal 2 / ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDNLOG_FIELD
ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS
ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID
ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD
0.0 0.0 1000 1 1 N Y 5000 N N 1000 - 2007/06/07 12:04:59.781 Set Dimension Parameters Start Date Language Length of dimension in days (Field Limit) 14 19 207 60 Microsoft Sans Serif 8 N N 0 0 0 255 255 0 100 100 100 N Unique rows for filter duplicate rows 454 328 104 35 Microsoft Sans Serif 8 N N 0 0 0 255 255 0 100 100 100 N Get the dimension level fields Quarter,Month,Week,Day with Java Calendar and javascript 25 212 174 47 Microsoft Sans Serif 8 N N 0 0 0 255 255 0 100 100 100 N Output as you need 1023 329 76 35 Microsoft Sans Serif 8 N N 0 0 0 255 255 0 100 100 100 N Day SequenceCalculate Dimension AttributesY Calculate Dimension AttributesDay Sequence 2Y Day Sequence 2Select valuesY Select valuesUnique rowsY Set Dimension ParametersDay SequenceY Unique rowsSelect values 2Y Select values 2add primary keyY add primary keyExcel OutputY Calculate Dimension Attributes ScriptValueMod Y 1 none Y 0 Script 1 //Create a Locale according to the specified language code var locale = new java.util.Locale( language_code.getString() , country_code.getString() ); //Create a calendar, use the specified initial date var calendar = new java.util.GregorianCalendar(locale); var date = new java.util.Date(calendar.getTimeInMillis()); var load_date = java.text.DateFormat.getDateInstance( java.text.DateFormat.SHORT , locale ).format(date); calendar.setTime(initial_date.getDate()); //set the calendar to the current date by adding DaySequence days calendar.add(calendar.DAY_OF_MONTH,DaySequence.getInteger() - 1); //get the calendar date var date = new java.util.Date(calendar.getTimeInMillis()); //en-us example: 9/3/07 var short_date = java.text.DateFormat.getDateInstance( java.text.DateFormat.SHORT , locale ).format(date); //day in year: 1..366 var simpleDateFormat = java.text.SimpleDateFormat("D",locale); //day in month: 1..31 simpleDateFormat.applyPattern("dd"); var day_number = simpleDateFormat.format(date); //en-us example: "Monday" simpleDateFormat.applyPattern("EEEE"); var day_week = simpleDateFormat.format(date); //4 digit representation of the year, example: 2007 simpleDateFormat.applyPattern("yyyy"); var id_year = simpleDateFormat.format(date); //week in year, 1..53 simpleDateFormat.applyPattern("ww"); var id_week = simpleDateFormat.format(date); var id_week_year = id_year+id_week; //month number in year, 1..12 simpleDateFormat.applyPattern("MM"); var month = simpleDateFormat.format(date); var id_month = id_year+simpleDateFormat.format(date); //en-us example: "September" simpleDateFormat.applyPattern("MMMM"); var des_month = simpleDateFormat.format(date); //handling Quarters is a DIY var des_quarter = "Quarter "; var quarter; switch(parseInt(month)){ case 1: case 2: case 3: quarter = "1"; break; case 4: case 5: case 6: quarter = "2"; break; case 7: case 8: case 9: quarter = "3"; break; case 10: case 11: case 12: quarter = "4"; break; } var semester; var des_semester="Semester "; switch(parseInt(quarter)){ case 1: case 2: semester = "1"; break; case 3: case 4: semester = "2"; break; } des_semester+= semester; des_quarter += quarter; var id_quarter= id_year + quarter; var id_time_nk= id_year+month+day_number; locale locale String -1 -1 N calendar calendar String -1 -1 N date date String -1 -1 N load_date load_date String -1 -1 N short_date short_date String -1 -1 N simpleDateFormat simpleDateFormat String -1 -1 N day_number day_number String -1 -1 N day_week day_week String -1 -1 N id_year id_year String -1 -1 N id_week id_week String -1 -1 N id_week_year id_week_year String -1 -1 N month month String -1 -1 N id_month id_month String -1 -1 N des_month des_month String -1 -1 N des_quarter des_quarter String -1 -1 N quarter quarter String -1 -1 N semester semester String -1 -1 N des_semester des_semester String -1 -1 N id_quarter id_quarter String -1 -1 N id_time_nk id_time_nk String -1 -1 N 291 232 Y Day Sequence Sequence N 1 none DaySequence N SEQ_ Y 1 1 9999999 291 119 Y Day Sequence 2 Sequence N 1 none d_tim_pk N SEQ_TIEMPO_HORA Y 1 1 9999999 441 232 Y Excel Output ExcelOutput Y 1 none
Y
N
N Y ${Internal.Transformation.Filename.Directory}\time_dimension.xls xls N N N N N Sheet1 N N N Encrypted 0 date String load_date String short_date String day_number String day_week String id_year String id_week String id_week_year String id_month String des_month String des_quarter String semester String des_semester String id_quarter String id_time_nk String d_tim_pk Integer id_time Integer 954 335 Y
Select values SelectValues Y 1 none language_code -2 -2 country_code -2 -2 initial_date -2 -2 local_yes -2 -2 local_no -2 -2 DaySequence -2 -2 locale -2 -2 calendar -2 -2 date -2 -2 load_date -2 -2 short_date -2 -2 simpleDateFormat -2 -2 day_number -2 -2 day_week -2 -2 id_year -2 -2 id_week -2 -2 id_week_year -2 -2 month -2 -2 id_month -2 -2 des_month -2 -2 des_quarter -2 -2 quarter -2 -2 semester -2 -2 des_semester -2 -2 id_quarter -2 -2 id_time_nk -2 -2 d_tim_pk -2 -2 N 591 232 Y Select values 2 SelectValues Y 1 none date -2 -2 load_date -2 -2 short_date -2 -2 day_number -2 -2 day_week -2 -2 id_year -2 -2 id_week -2 -2 id_week_year -2 -2 id_month -2 -2 des_month -2 -2 des_quarter -2 -2 semester -2 -2 des_semester -2 -2 id_quarter -2 -2 id_time_nk -2 -2 d_tim_pk -2 -2 N 712 335 Y Set Dimension Parameters RowGenerator N 1 none language_code String ca -1 -1 country_code String CA -1 -1 initial_date Date yyyy-MM-dd 2006-01-01 -1 -1 local_yes String si -1 -1 local_no String no -1 -1 365 291 27 Y Unique rows Unique Y 1 none N N DaySequence N load_date N short_date N day_number N day_week N id_year N id_week_year N id_month N des_month N des_quarter N quarter N semester N des_semester N id_quarter N id_time_nk N d_tim_pk N 591 335 Y add primary key Sequence Y 1 none id_time N SEQ_ Y 1 1 999999999 833 335 Y N