Just curious, for the purpose of clearing out portions of cubes, is there a difference between using the above functions in TI? e.g. any difference in effect in terms of logging, performance, effect on consolidated values etc...?
thanks!
ViewZeroOut vs CellPutProportionalSpread?
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: ViewZeroOut vs CellPutProportionalSpread?
It doesn't really matter which "might" be faster because you can't use CellPutProportionalSpread to zero out any portion of a cube. You'll get an error message about an invalid function. You have to actually provide a non-zero value to spread.
-
- Regular Participant
- Posts: 167
- Joined: Wed Mar 30, 2011 11:57 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: XL2010
Re: ViewZeroOut vs CellPutProportionalSpread?
Ahh ok i hadn't actually tested it yet, so just assumed you could send zeroes...
thanks for the quick response that answers that then
thanks for the quick response that answers that then

-
- MVP
- Posts: 3241
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: ViewZeroOut vs CellPutProportionalSpread?
Hello Tomok
You are not correct on this one I'm afraid.
See here for an article and sample code (go through it and adjust where necessary):
http://users.skynet.be/fa436118/wim/tm1 ... spread.htm
It's the direct link to an article on my personal website.
If I interpret the question in a different way, or I am not correct, please tell me.
Wim
You are not correct on this one I'm afraid.
See here for an article and sample code (go through it and adjust where necessary):
http://users.skynet.be/fa436118/wim/tm1 ... spread.htm
It's the direct link to an article on my personal website.
If I interpret the question in a different way, or I am not correct, please tell me.
Wim
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- Harvey
- Community Contributor
- Posts: 236
- Joined: Mon Aug 04, 2008 4:43 am
- OLAP Product: PA, TM1, CX, Palo
- Version: TM1 8.3 onwards
- Excel Version: 2003 onwards
- Contact:
Re: ViewZeroOut vs CellPutProportionalSpread?
Yeah, I'm pretty sure I used a CellputProportionalSpread to zero out a cube on a POC many years back.Wim Gielis wrote: You are not correct on this one I'm afraid.
Wim
However, I found some odd behaviour and ended up having to ditch it. Where I had negative numbers in the underlying values, the CellputProportionalSpread function would leave behind negative and positive values so that the SUM at the consolidation was 0, but not necessarily the underlying values.
If you think about it, this kinda makes sense. Imagine the simple case: a consolidation with two children. The values of the children are -1 and 1 respectively. A CellPutProportionalSpread call on the consolidation will not change any values, because your consolidation is already zero.
My take away was that you're always much better off to build a proper view and call ViewZeroOut. If it's a complex case where one view doesn't fit, break it down into multiple TI processes and call them sequentially using ExecuteProcess or a chore. This is much more maintainable and guarantees correct results.
This was a very long time ago, so I apologize if my memory is fuzzy on the details. You could do some quick testing to determine the behaviour in the current version of TM1.
Take your TM1 experience to the next level - TM1Innovators.net
-
- Regular Participant
- Posts: 167
- Joined: Wed Mar 30, 2011 11:57 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: XL2010
Re: ViewZeroOut vs CellPutProportionalSpread?
thanks for the feedback guys re: a consolidated rollup having $0 with offsetting underlying values - makes sense that the proportional spread wouldn't affect it
...ok so i guess i'll be sticking to the viewzeroout in that case... question on this though: when constructing the view, is it necessary to assign subsets to EVERY dimension, or can you just assign a subset to the dimension(s) you're wanting to filter on, and the rest will just be treated as "all elements"...?
...ok so i guess i'll be sticking to the viewzeroout in that case... question on this though: when constructing the view, is it necessary to assign subsets to EVERY dimension, or can you just assign a subset to the dimension(s) you're wanting to filter on, and the rest will just be treated as "all elements"...?
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: ViewZeroOut vs CellPutProportionalSpread?
Exactly.fleaster wrote:can you just assign a subset to the dimension(s) you're wanting to filter on, and the rest will just be treated as "all elements"...?
-
- MVP
- Posts: 3241
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: ViewZeroOut vs CellPutProportionalSpread?
Hellofleaster wrote:thanks for the feedback guys re: a consolidated rollup having $0 with offsetting underlying values - makes sense that the proportional spread wouldn't affect it
...ok so i guess i'll be sticking to the viewzeroout in that case... question on this though: when constructing the view, is it necessary to assign subsets to EVERY dimension, or can you just assign a subset to the dimension(s) you're wanting to filter on, and the rest will just be treated as "all elements"...?
I'm working on a little tool to "generate" code. (probably just Excel VBA code to generate a text file containing the code)
Not sure I will get it done and when, but I will be spreading it through my website and this forum. For the general public who wants to gain time here.
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly