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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Converting dates

How do you separate a date in the format YYYYWW (i.e 201432) to year, YYYY (2014) and date WW(32)?

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

if your field is a string (as I believe) and not a date, you can use left(fieldname,4) for year and right(fieldname,2) for week, even from your load script to optimize your ram usage.

View solution in original post

1 Reply
Anonymous
Not applicable
Author

if your field is a string (as I believe) and not a date, you can use left(fieldname,4) for year and right(fieldname,2) for week, even from your load script to optimize your ram usage.