on ‎2018 May 28 2:14 PM
Hi all,
Our requirement is to be able to display the previous year's data on a week or technical week level.
The issue is that the number of weeks / tech. weeks is not constant each year, so a simple shift of 52 weeks or 62 tech. weeks is not accurate.
Does anybody have a solution?
Best regards,
Ivan
Request clarification before answering.
shifting with technical week does not work from business perspective in the first place, as your technical week last year will be 100% different from this year - it cannot work, has nothing to do with the technical solution but just with calendars.
Working with calendar split: here the challenge is that some years have 52 and some have 53 weeks. Usually a simplification by using 52 weeks is sufficient as that is most cases. If that should not be the case for your project, you can try with working with an integrer attribute you add to PERIODID, and which you would need to load. But still you would face the issue that if you shift "1 year" , for two years in a row one may have 52 and one 53, so which value do you want to take? You cannot skip one week or squeeze in one that does not exist, so you need to decide on one of the 2 values anyhow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Irmhild and Achal,
Many thanks for your answers. Here is the solution we've finally implemented: It is a dynamic attribute transformation at calendar week level (PERIODID4 in our case), close to what Irmhild had suggested:
As a result:
Illustration

Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shifting a technical week by 62 technical weeks may not be accurate everywhere. The only option I see here is to do attribute transformation at higher level and disaggreate it to technical week level.
Regards,
Achal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 5 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.