Page 1 of 1
Same dimensions twice in the same cube
Posted: Sat Dec 26, 2009 2:22 pm
by nicola531
Hello everybody,
Is it possibile to use the same dimension twice in the same cube?
Or maybe create a rule that allows a cube to be fed by another cube, exactly equal, but with different dimensions name.
For istance:
cube A
Dimension 1
Cube B
Dimension 2
Dimension 1 is the same of Dimension 2 so a would like to have a rule for Cube A that would read data form Cube B.
Thanx for you time.
I hope that I've been almost clear.
ND
Re: Same dimensions twice in the same cube
Posted: Sat Dec 26, 2009 2:32 pm
by kpk
nicola531 wrote:Hello everybody,
Is it possibile to use the same dimension twice in the same cube?
Or maybe create a rule that allows a cube to be fed by another cube, exactly equal, but with different dimensions name.
For istance:
cube A
Dimension 1
Cube B
Dimension 2
Dimension 1 is the same of Dimension 2 so a would like to have a rule for Cube A that would read data form Cube B.
Thanx for you time.
I hope that I've been almost clear.
ND
Hello,
No, You cannot use the same dimension twice in a cube.
Yes, You can feed from different dimension.
Instead of sending the feeder to =>DB(cubeA, ...., dimension1, ....) you have to write =>DB(cubeA, ...., dimension2, ....).
Regards,
Peter
Re: Same dimensions twice in the same cube
Posted: Sat Dec 26, 2009 3:35 pm
by nicola531
I'm not sure I have understood correctly because I tried what you said but it didn't work out.
The feeder alone in the origin cube (CUBE A - dimension A) is not enough I think.
I should put a rule in the CUBE B (dimension B) to read the value from cube A.
My problem is that those two dimensions have the same value (value 1, value 2, etc) but different names (Dimension A and Dimension B ) so I can do a DB lookup with punctual value but not in general like this
In CUBE B
[] =N: DB(CUBE A, !Dimension2)
I tried to put in the CUBE A this feeder
FEEDERS;
[] => DB(Cube B, !Dimension 1)
but it doesn't anything..
Thanxs for you time,
N
Re: Same dimensions twice in the same cube
Posted: Sat Dec 26, 2009 8:52 pm
by Wim Gielis
Hello Nicola
This should do the trick, regarding
would like to have a rule for Cube A that would read data form Cube B.
In CUBE A:
[]=N:DB(CUBE B, !Dimension1);
In CUBE B:
FEEDERS;
[] => DB(Cube A, !Dimension 2);