Hi,
I am trying to write a rule that should apply after certain quarter. Say I have 3 years forecasting from 2012 - 2015. But a certain condition, my rule should apply only after 2013-Q3.
My Rule:
['Carryover Units'] = DB('ORAM', !Scenario, !Company, DIMNM('Quarter', DIMIX('Quarter', !Quarter) -1 ), !Product, 'FGI Units', !ORAM_m);
I want to start this rule apply from 2013-Q3.
I tried this for testing but not working:
['Carryover Units'] = IF(
DIMIX('2013-Q4', !Quarter) > DIMIX('Quarter', !Quarter)
, 100
, STET
);
Can you correct my logic?
Thanks
KKMK
Rule to Fix a Quarter going forward
-
- Posts: 73
- Joined: Wed Jan 25, 2012 9:08 am
- OLAP Product: IBM Cognos TM1
- Version: 10.2
- Excel Version: 2013
Rule to Fix a Quarter going forward
- Attachments
-
- error.JPG (27.93 KiB) Viewed 4096 times
-
- MVP
- Posts: 3701
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Rule to Fix a Quarter going forward
Pretty basic
DIMIX('2013-Q4', !Quarter) > DIMIX('Quarter', !Quarter)
should be
DIMIX('Quarter', '2013-Q4') > DIMIX('Quarter', !Quarter)
I doubt you have a dimension called '2013-Q4'
However for this sort of logic you are much better to 1/ not use Dimix and 2/ not have hardcoded constants in the rule
For 1/ hold incrementing index values against each quarter in a time lookup cube and test the index value
For 2/ the trigger period should be an attribute or sting value in a control cube somewhere
DIMIX('2013-Q4', !Quarter) > DIMIX('Quarter', !Quarter)
should be
DIMIX('Quarter', '2013-Q4') > DIMIX('Quarter', !Quarter)
I doubt you have a dimension called '2013-Q4'
However for this sort of logic you are much better to 1/ not use Dimix and 2/ not have hardcoded constants in the rule
For 1/ hold incrementing index values against each quarter in a time lookup cube and test the index value
For 2/ the trigger period should be an attribute or sting value in a control cube somewhere
Last edited by lotsaram on Fri May 03, 2013 8:58 pm, edited 1 time in total.
-
- Posts: 73
- Joined: Wed Jan 25, 2012 9:08 am
- OLAP Product: IBM Cognos TM1
- Version: 10.2
- Excel Version: 2013
Re: Rule to Fix a Quarter going forward
Yes, I dont have any such Dimensions.
My Rule:
['Carryover Units'] = DB('ORAM', !Scenario, !Company, DIMNM('Quarter', DIMIX('Quarter', !Quarter) -1 ), !Product, 'FGI Units', !ORAM_m);
This is the rule that should apply after current quarter, current quarter value specified in the control cube. Please attach. So i have changed my rule to:
['Carryover Units'] = N: IF(
DB('Control Cube', 'Comment' , 'Current Quarter')> DIMIX('Quarter', !Quarter)
, 100
, STET
);
My Rule:
['Carryover Units'] = DB('ORAM', !Scenario, !Company, DIMNM('Quarter', DIMIX('Quarter', !Quarter) -1 ), !Product, 'FGI Units', !ORAM_m);
This is the rule that should apply after current quarter, current quarter value specified in the control cube. Please attach. So i have changed my rule to:
['Carryover Units'] = N: IF(
DB('Control Cube', 'Comment' , 'Current Quarter')> DIMIX('Quarter', !Quarter)
, 100
, STET
);
- Attachments
-
- error.JPG (11.05 KiB) Viewed 4089 times
-
- MVP
- Posts: 3701
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Rule to Fix a Quarter going forward
Does something look strange? Well it should because you're trying to compare a string to an integer. I'm not going to write you a rule, you can think about it yourself.kkmk wrote:IF( DB('Control Cube', 'Comment' , 'Current Quarter') > DIMIX('Quarter', !Quarter)
-
- Posts: 74
- Joined: Thu Jun 17, 2010 10:35 am
- OLAP Product: TM1
- Version: 9.4 9.5.1
- Excel Version: 2003 - 2007
Re: Rule to Fix a Quarter going forward
You should lookt at NUMBR function. That must be enough to solve your issue.