Skip to Content

Question regarding Lead Time Offset Transformation

Our planning area has a Storage Time Profile Level of “weeks”. Our root for our planning levels is weeks.

We need to report “Shipments Previous Year” for which we would like to offset by 12 months.

If we offset by our root time dimension of weeks, we have some issues with leap year.

Our offset would be 52 weeks, except in leap year the offset would be 53 weeks.

Can you suggest a way to handle this offset?

Thank you,

Greg

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2014 at 03:38 AM

    Hi Greg,

    Im assuming if you are using weekly calender, your time profile is structured like below,

    your attribute transformation should have a condition like below

    PERIODID = IF( IN ( "PERIODID3" ,''4001'',''4005'') ,"PERIODID" + 53,"PERIODID" + 52)

    In the above Formula, 4001 and 4005 are the PERIODIDs of the years that are Leap years.

    Goodluck,

    Mownesh


    PERIODS.PNG (3.2 kB)
    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.