Hi everyone,
[] = IF (!p_Version @<> 'Current Version' & !p_Version @<> 'Budget' , Stet, continue);
I would like to confirm if I have interpreted the rules correctly.
Does the above rules means that if version = "Current Version" and "Budget", please apply all the rules listed. Else ignore all the rules ?
Stet and Continue in Rules
- Mike Cowie
- Site Admin
- Posts: 484
- Joined: Sun May 11, 2008 7:07 pm
- OLAP Product: IBM TM1/PA, SSAS, and more
- Version: Anything thru 11.x
- Excel Version: 2003 - Office 365
- Location: Alabama, USA
- Contact:
Re: Stet and Continue in Rules
Sort of. The version can't be both "Budget" AND "Current Version" at the same time for a given cell in the cube, but I think what you're hoping is for cells in the cube to be left alone (no rules) if the version is anything other than "Current Version" or "Budget". If it's "Current Version" or "Budget", then you would like later rules to apply for this cube. The rule statement below seems to cover that. You could have written it this way, too:
Which seems a bit clearer to me, but that's probably my own personal bias/preference. Also, if you expect to add more versions over time and don't want to edit the rules if additional versions need to be treated like "Current Version" or "Budget" you could consider adding an attribute to your "p_Version" dimension that helps identify which versions should have rules or not. For example:
Regards,
Mike
Code: Select all
[] = IF (!p_Version @= 'Current Version' % !p_Version @= 'Budget' , CONTINUE, STET);
Code: Select all
[] = IF (ATTRN( 'p_Version', !p_Version, 'Is Calc' ) = 1, CONTINUE, STET);
Mike
Mike Cowie
QueBIT Consulting, LLC
Are you lost without Print Reports in Planning Analytics for Excel (PAfE)? Get it back today, for free, with Print Reports for IBM Planning Analytics for Excel!
QueBIT Consulting, LLC
Are you lost without Print Reports in Planning Analytics for Excel (PAfE)? Get it back today, for free, with Print Reports for IBM Planning Analytics for Excel!
-
- Regular Participant
- Posts: 180
- Joined: Thu Jul 01, 2010 3:06 am
- OLAP Product: Cognos Express
- Version: 9.5
- Excel Version: 2007
- Location: Melbourne, Australia
Re: Stet and Continue in Rules
Yeap, you are right. the rules you mention is much clearer and easier to understand. The previous rules was put in by a consultant and it took me a while to get my head around.
[] = IF (!p_Version @= 'Current Version' % !p_Version @= 'Budget' , CONTINUE, STET);
[] = IF (!p_Version @= 'Current Version' % !p_Version @= 'Budget' , CONTINUE, STET);
- Michel Zijlema
- Site Admin
- Posts: 713
- Joined: Wed May 14, 2008 5:22 am
- OLAP Product: TM1, PALO
- Version: both 2.5 and higher
- Excel Version: 2003-2007-2010
- Location: Netherlands
- Contact:
Re: Stet and Continue in Rules
As 'Current Version' and 'Budget' appear to be the actual element names in the p_Version dimension, you alternatively could write the rule as:
[{'Current Version','Budget'}] = STET;
...other rules follow here...
I personally try to avoid the IF checks in rules where possible, as these, to my knowledge, can have a negative impact on performance (I have never tested the significance - cue Mike, Lotsa
)
Michel
[{'Current Version','Budget'}] = STET;
...other rules follow here...
I personally try to avoid the IF checks in rules where possible, as these, to my knowledge, can have a negative impact on performance (I have never tested the significance - cue Mike, Lotsa

Michel
- Steve Rowe
- Site Admin
- Posts: 2464
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: Stet and Continue in Rules
Otherway around I think Michel,
{'Current Version','Budget'}] = Continue;
[]=Stet;
Which I don't think would work as the stet rule would be the other part of the continue statement.
Sounds to me like the dev wrote all the rules for the cube and then the users said "but we only want the rules to appply to Current Version and Budget" and the rule shown was the easiest answer. They could have gone through and qualified the LHS of all the rules but that would be pain to look after if all the versions the rules apply to change.
The feeders for the rules will still need to be qualified on the LHS as there's not "stet" like function for feeders (would that be useful I wonder?)
Incidently I see not= written in this form alot
[] = IF (!p_Version @<> 'Current Version' & !p_Version @<> 'Budget' , Stet, continue);
I usually write this as follows
[] = IF (~(!p_Version @= 'Current Version' % !p_Version @= 'Budget') , Stet, continue);
IMO easier to read but I guess it is easy to miss the tilda..
Cheers Steve
{'Current Version','Budget'}] = Continue;
[]=Stet;
Which I don't think would work as the stet rule would be the other part of the continue statement.
Sounds to me like the dev wrote all the rules for the cube and then the users said "but we only want the rules to appply to Current Version and Budget" and the rule shown was the easiest answer. They could have gone through and qualified the LHS of all the rules but that would be pain to look after if all the versions the rules apply to change.
The feeders for the rules will still need to be qualified on the LHS as there's not "stet" like function for feeders (would that be useful I wonder?)
Incidently I see not= written in this form alot
[] = IF (!p_Version @<> 'Current Version' & !p_Version @<> 'Budget' , Stet, continue);
I usually write this as follows
[] = IF (~(!p_Version @= 'Current Version' % !p_Version @= 'Budget') , Stet, continue);
IMO easier to read but I guess it is easy to miss the tilda..
Cheers Steve
Technical Director
www.infocat.co.uk
www.infocat.co.uk
- Michel Zijlema
- Site Admin
- Posts: 713
- Joined: Wed May 14, 2008 5:22 am
- OLAP Product: TM1, PALO
- Version: both 2.5 and higher
- Excel Version: 2003-2007-2010
- Location: Netherlands
- Contact:
Re: Stet and Continue in Rules
Oops - I should not post between breakfast and catching a train (or at least read more carefully)...Steve Rowe wrote:Otherway around I think Michel

Michel