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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
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
tresB
Champion III
Champion III

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

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

View solution in original post

6 Replies
tresB
Champion III
Champion III

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 

tresB
Champion III
Champion III

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

tresB
Champion III
Champion III

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]