Erase data with the exception of some members

I need to erase all the members with the exception of some census... He seems to have gotten it worked but I did not understand why an approach worked and the other didn't. Can someone pls help me understand?

First I tried to use exclude... EndExclude, but it did not work.

DIFFICULTY ("one month", "a scenario",@IDESCENDANTS ("census"))
EXCLUDE (@CHILDREN ("a country with about 50 members"))
CLEARBLOCK ALL;
ENDEXCLUDE
ENDFIX

Then I tried to use @REMOVE and it does not help too...

FIX ("One month", "A scenario", @IDESCENDANTS ("census"), @REMOVE (@RELATIVE ('World', 0), @LIST (@RELATIVE ('a country', 0)));)
CLEARBLOCK ALL;
ENDFIX;

Then I thought that even if the script above does not work, it is not good to use @RELATIVE ('World', 0) since Dim1 has two hierarchies replacing with only shared members. I could just use the stored hierarchy of members and reduce the number of Members returned.

Then I updated the script below and it worked... I'm glad that it worked, but I don't understand why it did not work when I used the world.

DIFFICULTY ("One month", "A scenario", @IDESCENDANTS ("census"), @REMOVE (@RELATIVE ('Memorized the hierarchy of countries', 0), @LIST (@RELATIVE ('a country', 0))))
CLEARBLOCK ALL;
ENDFIX

Pls help... Thank you.

There was a discussion in network54 on erasure when he shared members.

Cameron Lackpour writes a blog on the same.

Read http://www.orahyplabs.com/2012/11/share-surpises-in-essbase-part-ii-and.html (this has a link to the post of CL)

Concerning

Celvin
http://www.orahyplabs.com

Tags: Business Intelligence

Similar Questions

Maybe you are looking for