Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
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]