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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
mazacini
Creator III
Creator III

Convert text Date format 'Week WW YYYY' to Weekname YYYY/WW

Hi

I have a text field in the format Week 13 2015

I want to convert it into a date format.

Any ideas?

Thanks

Joe

1 Solution

Accepted Solutions
swuehl
MVP
MVP

This will give you the weekstart date:

=MakeWeekDate(subfield('Week 13 2015',' ',3),subfield('Week 13 2015',' ',2))

edit:

From the weekstart date, you can create any format you like, using Weekname(), Week() and WeekYear() function.

View solution in original post

3 Replies
sunny_talwar

You want to convert it into date or YYYY/WW??

swuehl
MVP
MVP

This will give you the weekstart date:

=MakeWeekDate(subfield('Week 13 2015',' ',3),subfield('Week 13 2015',' ',2))

edit:

From the weekstart date, you can create any format you like, using Weekname(), Week() and WeekYear() function.

mazacini
Creator III
Creator III
Author

Thank you - worked great!