Hi all,
We have two cubes (Cube A and B).
Cube A contains D1, D2 and D3 dimensions and Cube B contains D4 which is combination of D1 and D2.
I need to build another cube (Cube C) and it contains D1, D2 and D4.
I tried to set [!D1, !D2, D4:DBRW(B, !D1,!D2)]=N:DB(A,!D1,!D2); in Rules Sets of Cube C, but I get Syntax error (invalid element name).
Do you have any idea to implement conditional rule set?
Regards,
Yukiya
Rules Sets
-
- Site Admin
- Posts: 6667
- 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: Rules Sets
A couple. The first is that DBRW is a worksheet function, not a rules function.Yukiya wrote: We have two cubes (Cube A and B).
Cube A contains D1, D2 and D3 dimensions and Cube B contains D4 which is combination of D1 and D2.
I need to build another cube (Cube C) and it contains D1, D2 and D4.
I tried to set [!D1, !D2, D4:DBRW(B, !D1,!D2)]=N:DB(A,!D1,!D2); in Rules Sets of Cube C, but I get Syntax error (invalid element name).
Do you have any idea to implement conditional rule set?
The second is that most companies don't name their cubes A and B, but hey, I could be wrong.
And the third one, the most important one, is this one:
Request For Assistance Guidelines wrote: 5) For Rules and TurboIntegrator processes, posting the actual code and the real names of and structures of your cubes, dimensions and elements will be a thousand times more useful than an attempted description of them. You don't need to post real data, but the real code is needed. Pseudo code is obviously not "the real code". When you post something like "Suppose I have cube A and Cube B, and my rule is ['value'] = N:DB('CubeA', 'dim1, dim2'" etc, then three things happen. One, you reduce the chance that a syntax or typing error will be spotted, which means wasting time bouncing posts back and forth to try to get to the root of the problem. Two, you are usually describing what you think is happening, which may not be what is happening. Three, some more experienced members won't even look at the question because they've had too much time wasted by the first two issues in the past.
"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.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 22
- Joined: Wed Jun 30, 2010 3:53 am
- OLAP Product: TM1
- Version: 102
- Excel Version: 2010
Re: Rules Sets
Hi Alan,
Thank you for your advice.
We have two cubes (one is Revenue and another is Combination).
Revenue contains Location, Product, Year and Month as dimension and Combination (this contains Location and Product as dimension) hold Entity.
I need to build another cube RevPerEntity and it contains Entity, Year and Month.
I tried to set [!Year, !Month, Entity:DB('Combination', !Location,!Product)]=N:DB('Revenue','All Location', 'All product',!Year,!Month); in Rules Sets of RevPerEntity, but I get Syntax error (invalid element name).
Do you have any idea to implement conditional rule set?
Thanks and Best Regards,
Yukiya
Thank you for your advice.
We have two cubes (one is Revenue and another is Combination).
Revenue contains Location, Product, Year and Month as dimension and Combination (this contains Location and Product as dimension) hold Entity.
I need to build another cube RevPerEntity and it contains Entity, Year and Month.
I tried to set [!Year, !Month, Entity:DB('Combination', !Location,!Product)]=N:DB('Revenue','All Location', 'All product',!Year,!Month); in Rules Sets of RevPerEntity, but I get Syntax error (invalid element name).
Do you have any idea to implement conditional rule set?
Thanks and Best Regards,
Yukiya
-
- Regular Participant
- Posts: 424
- Joined: Sat Mar 10, 2012 1:03 pm
- OLAP Product: IBM TM1, Planning Analytics, P
- Version: PAW 2.0.8
- Excel Version: 2019
Re: Rules Sets
Code: Select all
I tried to set [!Year, !Month, Entity:DB('Combination', !Location,!Product)]=N:DB('Revenue','All Location', 'All product',!Year,!Month); in Rules Sets of RevPerEntity, but I get Syntax error (invalid element name)
"You Never Fail Until You Stop Trying......"
-
- MVP
- Posts: 3704
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Rules Sets
What BariAbdul has told you is 100% correct. In the left hand side "area statement" of a rule only literal strings are accepted.
The !dimension notation is only required for full function references on the right hand side of a rule equation. It would be meaningless within the square brackets as the definition of !dimension is "not defined for this dimension" or "apply the same for all members of the dimension".
The !dimension notation is only required for full function references on the right hand side of a rule equation. It would be meaningless within the square brackets as the definition of !dimension is "not defined for this dimension" or "apply the same for all members of the dimension".
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
-
- Posts: 22
- Joined: Wed Jun 30, 2010 3:53 am
- OLAP Product: TM1
- Version: 102
- Excel Version: 2010
Re: Rules Sets
Hi all,
Thank you for your help, much appreciate.
Thanks and Best Regards,
Yukiya
Thank you for your help, much appreciate.
Thanks and Best Regards,
Yukiya