Unsuppress Zero is not working in TI Process.

Post Reply
Paul-TM1
Posts: 139
Joined: Tue Jun 13, 2017 3:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2010

Unsuppress Zero is not working in TI Process.

Post by Paul-TM1 »

Hi All,
I have looked for zero suppress in the forum and learnt that when a view is created, zero suppress is set. I am later turning off using the ViewSuppressZeroesSet and it does not work.

Code: Select all

ViewSuppressZeroesSet(SourceCube, SourceCubeView, 0 );
Can someone tell me where I am wrong?

Thanks,
Paul.
burnstripe
Regular Participant
Posts: 226
Joined: Wed May 06, 2020 2:58 pm
OLAP Product: Planning Analytics
Version: 2.0.9
Excel Version: 2016

Re: Unsuppress Zero is not working in TI Process.

Post by burnstripe »

Try this instead

Code: Select all

ViewExtractSkipZeroesSet(Source Cube, SourceCubeView, 0 );
Alan Kirk
Site Admin
Posts: 6643
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: Unsuppress Zero is not working in TI Process.

Post by Alan Kirk »

Paul-TM1 wrote: Thu Nov 21, 2024 8:54 pm Can someone tell me where I am wrong?
Pretty much everywhere, I'm afraid. Let's start with the thread title:
Unsuppress Zero is not working in TI Process
There is no UN-suppress zero. Because:
Paul-TM1 wrote: Thu Nov 21, 2024 8:54 pm I have looked for zero suppress in the forum and learnt that when a view is created, zero suppress is set.
I don't know where you got that from, but the opposite is true. Zeros are not suppressed by default, which has the occasionally painful result of a view returning hundreds of millions of values until the server says "Enough! View memory exceeded!".

You have to explicitly tell TI that you want zeroes suppressed for the view that it has created, and you do that by setting ViewSuppressZeroesSet to 1, not 0 assuming that this is the type of view that an end user will be using in Cube Viewer.

If instead the view is intended as a data source (all rows and columns, no titles) you would be using ViewExtractSkipZeroesSet instead.

If you do actually mean that you DO want zeroes in your data source than you don't HAVE to use those functions since the zeroes will be there regardless... but you should think very carefully about how large that will make your view.
"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.
Paul-TM1
Posts: 139
Joined: Tue Jun 13, 2017 3:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2010

Re: Unsuppress Zero is not working in TI Process.

Post by Paul-TM1 »

Thanks burnstripe and Alan. It worked like a charm.

Thanks,
Paul.
Post Reply