Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Uma7
Contributor III
Contributor III

DATE/WEEK extraction from a column in format yy-mm-dd

Hi,

i have a column creation date in format yymmdd from which i need to extract date and weekly data to make graphs.

how can this be done?

can anyone help me?

Thanks in advance!

Labels (1)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Date#() parses string to date value. Then may be you should try like:

Date#([Creation Date], 'YYMMDD')

View solution in original post

6 Replies
tresesco
MVP
MVP

Try like:

Date(Date#([Creation Date], 'yymmdd')) as Date,

Week(Date#([Creation Date], 'yymmdd')) as Week

Uma7
Contributor III
Contributor III
Author

Its not working 
btw- my creation date column is of string type 

tresesco
MVP
MVP

Date#() parses string to date value. Then may be you should try like:

Date#([Creation Date], 'YYMMDD')

Uma7
Contributor III
Contributor III
Author

when i try the expression is ok but no data for date is displayed

tresesco
MVP
MVP

That could potentially mean that your date values are not really in YYMMDD format. Try reloading the field directly in qlik, and see how exactly your data is read by qlik, and then use parsing format accordingly. Please note, additional spaces could also create problem.

srchagas
Creator III
Creator III

Try to Use:

On load script: 

 Date(Date#([Creation Date],'YYYYMMDD'),'YYMMDD') as [Creation Date]