Skip to Content
author's profile photo Former Member
Former Member

Using offsets in query

I am using a custom calendar which will always have 52 weeks. Now i need to display 5 weeks past and 5 weeks future(forecast) data in my query.

While using offset query is taking the system weeks.

For eg. When i enter current week as 01.2005

Current week -1 ( with offset -1) should be 52.2004 in my case but it is showing 53.2004 and no data in front of it.

Is it possible to have 52 weeks for all the years as per my custom calendar and implement offsets for the same ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2006 at 05:39 PM

    See my post.

    <u>Variable Offsets for Weeks

    Thanks,

    Jeff

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2006 at 05:53 PM

    standard year has 52 weeks... whole but 52 * 7 = 364 days, what happens with 365 and 366 (when corresponded)days?.

    if you want to convert week 53 in 52 you should do it in a customer exit variable.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.