Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to generate date and time and load to Dimension Date_Time table.

Hi All,

 

Can anyone help me that how can i achieve to generate Data and time and load to Dimension Dim_Date_time Table.

 

Thanks,

Arpit

Labels (3)
10 Replies
vboppudi
Partner - Creator III
Partner - Creator III

Hi,

It's depending on the attributes in your date_dim table. Please provide list of attributes in date_dim.

 

Regards,

 

 

Anonymous
Not applicable
Author

Hi Verru,

 

Here are attributes of Dim_date_time:

0683p000009LtN0.png

Thanks,

Arpit

mks02
Creator
Creator

If you want to load the data in date (only date) and datetime (date with timestamp):
Define this code in tMap OutputColumn field --> TalendDate.getCurrentDate()
and then, define any of below format in schema of tMap Out:
"dd-MM-yyyy HH:mm:ss" for date with timestamp,
"dd-MM-yyyy" for date,
" HH:mm:ss" for timestamp


For parsing the date (if required), use TalendDate.parseDate function.

Anonymous
Not applicable
Author

But Its not populate any date data in dim table.

mks02
Creator
Creator

Please attached mapping for it.
I have attached a referenced code for tMap, please have a look and let me know if it helps.


TLND_Date.PNG
Anonymous
Not applicable
Author

0683p000009LtJn.png

mks02
Creator
Creator

Please find new attachment.

I am passing the exact code written in VAR area.... Please check the "out_log" date format in below of the screen.


TLND_Date_2.PNG
vboppudi
Partner - Creator III
Partner - Creator III

Hi Arpita,

 

Are you looking for this data?

 

0683p000009LtPk.png

Regards,

 

Anonymous
Not applicable
Author

Yes exactly what i want.. Thank you @vboppudi

Can you please show me component detail so that i am also load date and time in dimension table.

 

Thanks,

Arpit