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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Creating buckets based on week no's

Hi all,

i have a requirement that i'm unsure of how to do it.

Basically i have some data for current and previous year. i want to create buckets with the week commencing dates of the current year as the values but each bucket would be linked to the corresponding week of previous years.

so for example

W/C DateWeekBucket Value//
05/01/2015102/01/2017
04/01/2016102/01/2017
02/01/2017102/01/2017
12/01/2015209/01/2017
11/01/2016209/01/2017
09/01/2017209/01/2017
etc
15/06/20152412/06/2017
13/06/20162412/06/2017
12/06/20172412/06/2017
etc

so i want a bucket for each w/c date of the current year but each bucket would have the corresponding week from previous years too.

i think i only need current and previous, not -2 years, -3 years etc. so currently 2017 and previous 2016

sorry, this is a difficult one to explain!

thanks

22 Replies
sunny_talwar

Fingers crossed

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Thats great, all seems to work correctly. and ive also added the fuctionalilty to also work for a YTD chart too which is also working.

many thanks for all your help!

its very appreciated

sunny_talwar

Super....