DB function in rules with alternative hierarchies
Posted: Wed Aug 29, 2018 10:02 pm
Hi all,
I have a product dimension with about 60,000 products (leaf level) and some 10,000 consolidations.
There is an alternative hierarchy (PAW speak) to capture where the product originates from (the country).
If I include the alternative hierarchy, then I have some rules that break down and stop functioning.
In particular, a rule that retrieves a cost for a product (DB to a second cube), but the lookup is done on using an intermediate (third) product.
E.g. cost for products A, B, C, is stored at the level of X and Y. A and C map to X, B maps to Y.
That 'mapping' is done in a text measure of the same base cube. So, each product holds a mapping, say, X or Y.
This X or Y is retrieved in the SAME product dimension but in a different cube.
Technically, it's a DB inside a DB. The inner DB yields the X or Y.
If I exclude the alternative hierarchy for source country, it works fine.
If I include the alternative hierarchy for source country, it works fine if I take out the inner DB and replace it with a hard-coded value, like X.
If I include the alternative hierarchy for source country, it does not work if the DB's are nested. While I know for a fact that the inner DB gives us X, for example, the lookup of X in the cost cube returns 0 ! [Hardcoding the X gives the correct result.]
This brings me to the question: in case of a parallel hierarchy (PAW speak), how should we use the DB functions ?
Did IBM already make this available ?
Thanks,
Wim
I have a product dimension with about 60,000 products (leaf level) and some 10,000 consolidations.
There is an alternative hierarchy (PAW speak) to capture where the product originates from (the country).
If I include the alternative hierarchy, then I have some rules that break down and stop functioning.
In particular, a rule that retrieves a cost for a product (DB to a second cube), but the lookup is done on using an intermediate (third) product.
E.g. cost for products A, B, C, is stored at the level of X and Y. A and C map to X, B maps to Y.
That 'mapping' is done in a text measure of the same base cube. So, each product holds a mapping, say, X or Y.
This X or Y is retrieved in the SAME product dimension but in a different cube.
Technically, it's a DB inside a DB. The inner DB yields the X or Y.
If I exclude the alternative hierarchy for source country, it works fine.
If I include the alternative hierarchy for source country, it works fine if I take out the inner DB and replace it with a hard-coded value, like X.
If I include the alternative hierarchy for source country, it does not work if the DB's are nested. While I know for a fact that the inner DB gives us X, for example, the lookup of X in the cost cube returns 0 ! [Hardcoding the X gives the correct result.]
This brings me to the question: in case of a parallel hierarchy (PAW speak), how should we use the DB functions ?
Did IBM already make this available ?
Thanks,
Wim