viewzeroout

Post Reply
guntupalli
Posts: 19
Joined: Mon May 16, 2011 12:15 pm
OLAP Product: tm1
Version: 10.2
Excel Version: 2010

viewzeroout

Post by guntupalli »

hi ,

ViewZeroOut( 'plan_BudgetPlan', 'Budget Input Detailed' ); it sets all data points in the 'Budget Input Detailed' view to zero and as well plan_BudgetPlan cube also. if it is correct , default view of 'plan_BudgetPlan' Cube and 'Budget Input Detailed' view to zero .
but some of views under 'plan_BudgetPlan' cube are having data.
and the second question is : same ViewZeroOut function is used for the view of another cube. prossesed succusfully, but the view of the cube is having the data.

can any one clarify with possible reasons?
User avatar
Alan Kirk
Site Admin
Posts: 6606
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: viewzeroout

Post by Alan Kirk »

guntupalli wrote:ViewZeroOut( 'plan_BudgetPlan', 'Budget Input Detailed' ); it sets all data points in the 'Budget Input Detailed' view to zero
Sounds reasonable.
guntupalli wrote:and as well plan_BudgetPlan cube also.
Doesn't sound reasonable, unless the Budget Input Detailed view covers all element combinations in the cube. Which, from the view name, seems unlikely.

The help is quite clear about this:
This function sets all data points in a view to zero.
(My emphasis.) It does not zero out the whole cube unless that view represents all of the data in the cube.
guntupalli wrote:if it is correct , default view of 'plan_BudgetPlan' Cube and 'Budget Input Detailed' view to zero .
but some of views under 'plan_BudgetPlan' cube are having data.
and the second question is : same ViewZeroOut function is used for the view of another cube. prossesed succusfully, but the view of the cube is having the data.

can any one clarify with possible reasons?
Same answer. It clears a view, not a cube. If you want to clear all entered values, use CubeClearData instead.

(Though even that won't work if some of the values are rules-based, and pulled from another cube.)
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
Martin Ryan
Site Admin
Posts: 1988
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: viewzeroout

Post by Martin Ryan »

It also won't clear out rule calculated values (unless the cells that the calculations rely on have been cleared out).

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
User avatar
Alan Kirk
Site Admin
Posts: 6606
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: viewzeroout

Post by Alan Kirk »

Martin Ryan wrote:It also won't clear out rule calculated values (unless the cells that the calculations rely on have been cleared out).

Martin
Hence me mentioning that in the last paragraph...
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
Martin Ryan
Site Admin
Posts: 1988
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: viewzeroout

Post by Martin Ryan »

Ah, was skim reading and skipped the parentheses. :oops:
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