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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to create week numbers from dates

Hi,

I have a file that outputs week numbers and its dates.

I can create week number etc from this for one part of the business but I need to use the date field and create other week numbers from the dates.

For example, Business A is fine as the information imported to qlikview contains both the week number and dates. (Mon - Sun)

Business B - I need to use the date field to create different week number because the week begins on different days (Sun - Sat)

Do you know how I can do this?

Gregg

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

WeekName(DateField, 0, -1) will give you Year/Week No. The -1 will offset the Monday to Sunday

Hope that helps

View solution in original post

1 Reply
Not applicable
Author

WeekName(DateField, 0, -1) will give you Year/Week No. The -1 will offset the Monday to Sunday

Hope that helps