How to clear values from a cube dynamically.

Post Reply
ryan
Posts: 59
Joined: Thu May 26, 2011 5:04 am
OLAP Product: COGNOS
Version: 9.0
Excel Version: 2007

How to clear values from a cube dynamically.

Post by ryan »

Is there any way(TI code or Function) to clear data from the cube (dynamically), i.e, without creating a view at the highest consolidation levels for the data that you want to clear?

Let suppose:

If I want to clear the values for the Region sales assumptions entered by business for the regions which starts with alphabet 'A'?
If I want to clear the values entered by business for a particular period (based on the element in period dimension)? and so.

I appreciate if any one could help me in providing a proto-type code or function that would be helpful for me.

Thanks in advance.
Configuration Details
Microsoft Window Server 2003 Exterprise x64 Edition Service Pack 2
RAM 32 GB
using IBM Cognos Express Xcelerator (Version 10.1)
MS-Office Excel 2010 (12.0.6514.5000)SP2 MSO (12.0.6425.1000)
Microsoft .NET Framework 3.5
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: How to clear values from a cube dynamically.

Post by David Usherwood »

Seems to me that Dynamic Subsets should do what you want. Read the eponymous section in the User Guide.
User avatar
Martin Ryan
Site Admin
Posts: 2003
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: How to clear values from a cube dynamically.

Post by Martin Ryan »

ryan wrote:Is there any way(TI code or Function) to clear data from the cube (dynamically), i.e, without creating a view at the highest consolidation levels for the data that you want to clear?
If you're happy to use TI is there any particular reason why you want to steer clear of viewcreate and viewzeroout? It's quite simple to create a generic process that will handle any cube or dimension. You don't have to create subsets for all the dimensions in the cube, only the ones that you want to restrict.

If that'd work for you I (or half a dozen others) could jot up some sample code

Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Post Reply