on 10-08-2014 8:47 AM
Hi Experts,
I am trying to write the formula for a local member to compare the current member with its previous member. Is there a keyword such as EMPDIM_CURRENT_MEMBER to refer to the previous member?
If not, any idea in how to do so?
Thanks.
J.I.
Hi,
EMPDIM_CURRENT_MEMBER(SOME_DIM) returns the cell reference with current member of the dimension SOME_DIM - for row or column axis. There is no formula to get a reference of previous member, but you can use the following:
For member in row axis:
Assuming that previous member is located in previous row:
=INDIRECT(ADDRESS(ROW(EMPDIM_CURRENT_MEMBER(SOME_DIM))-1,COLUMN(EMPDIM_CURRENT_MEMBER(SOME_DIM))))
Vadim
P.S. In case of fixed columns you can simply reference the cell located in the previous row of the first member in row axis column.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I try a cell reference in a local member formula, it doesn't adjust it to the current row.
If I write A8 in the formula and the report starts in row 50 (dynamic), the first row in the report will reference to A8 and the following to A9, and so on.
By the way, the INDIRECT formula doesn't work for me; it returns #NAME?
It Works now, the formula was EMP!!
Hi again,
I'm having problems when mixing the indirect formula with other EPM functions.
When trying:
=INDIRECT(ADDRESS(ROW(EPMDIM_CURRENT_MEMBER(SOME_DIM))-1,COLUMN(EPMDIM_CURRENT_MEMBER(SOME_DIM))))
It Works perfectly, returning the name of the previous member.
But if I try:
=EPMMemberID(INDIRECT(ADDRESS(ROW(EPMDIM_CURRENT_MEMBER(SOME_DIM))-1,COLUMN(EPMDIM_CURRENT_MEMBER(SOME_DIM)))))
The INDIRECT formula won't work, returning the cell reference, and then EPMMemberID doesn't work.
Is it possible that INDIRECT only Works when being at the beginning of the formula??
What for do you want to use EPMMemberID in this formula? This function is used in some other formulas...
For example the following works fine:
=EPMMemberDesc(EPMMemberID(INDIRECT(ADDRESS(ROW(EPMDIM_CURRENT_MEMBER(INACCT))-1,COLUMN(EPMDIM_CURRENT_MEMBER(INACCT))))))
For the cell's that doesn't contain valid EPMMemberO function the result will be #NoData, for correct cells - the description.
Vadim
User | Count |
---|---|
15 | |
4 | |
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.