# target in the rule

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

• # target in the rule

Hi,
i have a problem with the implementation of two particular rules.
The code is the follow

the first

the second

The elements 'E' and 'S' are the first children of a dimension CONTO but if i activate the two rules it calculate only the first for all the CONTO's children.
If i activate only the first it calculate correctly the children of element E and if
i activate only the second it calculate correctly the children of S.
How i can calculate the elements E (with its children )
and S (with its children ) at same time?

It's possible specify one element and its children (like !'dimension') in the target of rule?

Tanks
• # RE: target in the rule

Hi,

The rules are evaluated from first to last. The first rule that applies to a certain area will be calculated. Following rules for the same area are ignored.
I don't know your exact cube structure, but I guess the solution will be that the two (now identical) rule areas will be made explicit for the area they apply to (maybe by using 'E' and 'S' in the rule area?).

Michel
• # RE: target in the rule

At a first glance I would say, the target is identical in both of the rules, only the source is different. I believe both rules are executed, and the one that runs second wins.

I believe you must make the distinction in the first part of the rules.

Regards
Holger
• # RE: target in the rule

Originally posted by holger_b
I believe both rules are executed, and the one that runs second wins.

Nope,

The first will win, see my post above (and problem description in first post).

Michel
• ok micheal,
but i can't write

and

to write my data to the children of E and S.

Some ideas?

Tnx

Andrea
• Hi Andrea,

What does your cube (or cubes?) structure look like?
If 'E' is an element in a dimension in the target cube you can simply use