on 02-01-2014 1:37 AM
Hi
I have a second hierarchy in the Time dimension to calculate a rolling total for forecast time base members which may be different from the calendar time totals, example PARENTH2 total for current forecast total can be 2014.FEB to 2014.FEB.
My current forecast total is for months 2014.JAN to 2014.DEC, I'm using ="epmmemberoffset(,2014.DEC,1)" and expect to get 2015.JAN in the cell but I'm getting 2014.JAN
Any ideas on what the issue is?
Thanks
William
Hi William,
Please show screenshot of your TIME dimension to understand the issue.
By the way, it's possible to use some tricky Excel formula to simulate EPMMemberOffset:
Let
A1 contain 2014.NOV
A2 contain 2014.DEC
We want to emulate EPMMemberOffset(,A1,1)
Put this formula in B1 and B2 (copy from B1):
=IF(RIGHT(A1;3)="DEC";LEFT(A1;4)+1&".JAN";LEFT(A1;4)&"." & CHOOSE((FIND(RIGHT(A1;3);"JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC")-1)/3+1+1;"JAN";"FEB";"MAR";"APR";"MAY";"JUN";"JUL";"AUG";"SEP";"OCT";"NOV";"DEC"))
The result will be:
B1: 2014.DEC
B2: 2015.JAN
B.R. Vadim
Message was edited by: Vadim Kalinin - simplify formula! +1 - is a positive shift
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also test this formula with explicit member:
=EPMMemberOffset(,"[TIME].[PARENTH1].["&D1&"]",1)
And for numeric months the Excel formula will be simple:
=IF(RIGHT(D1,2)="12",LEFT(D1,4)+1&"."&RIGHT("0"&(0+1),2),LEFT(D1,4)&"."&RIGHT("0"&(RIGHT(D1,2)*1+1),2))
Vadim
Message was edited by: Vadim Kalinin - Correction in Excel formula: +1 can be replaced by +2,+3...
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
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.