Page 1 of 1
viewzeroout
Posted: Tue May 17, 2011 10:14 am
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?
Re: viewzeroout
Posted: Tue May 17, 2011 10:30 am
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.)
Re: viewzeroout
Posted: Tue May 17, 2011 8:43 pm
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
Re: viewzeroout
Posted: Tue May 17, 2011 8:50 pm
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...
Re: viewzeroout
Posted: Tue May 17, 2011 10:55 pm
by Martin Ryan
Ah, was skim reading and skipped the parentheses.
