cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding Lead Time Offset Transformation

gregory_louallen
Discoverer
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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