Planning Analytics

Planning Analytics

Get AI-infused integrated business planning

 View Only
  • 1.  Issue with Feeders from Consolidated Elements to Leaf Elements

    Posted 07/23/24 04:02 PM
    Hi all!

    I am facing an issue in IBM Planning Analytics where a consolidated member of a dimension does not feed a corresponding leaf member in another cube using a generic feeder statement.

    Feeder example:

    [] => DB('Cube B', !Dim1);

    Issue:

    • This feeder does not work when attempting to feed a consolidated element in Cube A to a corresponding leaf element in Cube B.

    However, the following specific feeder works:

    [Dim1:'X123'] => DB('Cube B', 'X123');

    This indicates that while specific feeders work, the generic feeder does not.

    Could you please assist with resolving this issue?

    Thank you, Asgeir



    ------------------------------
    Asgeir Thorgeirsson
    ------------------------------


  • 2.  RE: Issue with Feeders from Consolidated Elements to Leaf Elements

    Posted 07/24/24 02:57 AM

    Hi Asgeir,

    Please remember that feeders are leaf level only; so only if the names of the leaf-level children of a consolidated element of the dimension in Cube A correspond to the leaf-level elements of the corresponding dimension in Cube B, the feeders will fire correctly. If you make it specific, you basically specify that all leaf-level children of Dim1 element X123 feed element X123 of Dim2 in Cube B. The solution is one of the options below (I suppose you go one level up of that you add a feeder attribute to your elements in Dim1 specifying the element that needs to be fed).

    [] => DB('Cube B', ELPAR('Dim1, '!Dim1, 1)); or
    [] => DB('Cube B', ATTRS('Dim1, '!Dim1, 'Feeder'));


    ------------------------------
    Luc Cusiel
    ------------------------------



  • 3.  RE: Issue with Feeders from Consolidated Elements to Leaf Elements

    Posted 07/24/24 05:33 AM

    Thank you Luc!

    Given that summarizing data in one cube and using it as a leaf in another cube is a very common requirement, I am looking for a generic solution or guidance to address this issue effectively. Could you, or someone at IBM provide a robust approach or best practices for implementing such a scenario?



    ------------------------------
    Asgeir Thorgeirsson
    ------------------------------



  • 4.  RE: Issue with Feeders from Consolidated Elements to Leaf Elements
    Best Answer

    Posted 07/24/24 10:26 AM

    The generic solution is just as described. When summarizing data and moving data between 2 cubes you should store the source/target information as an attribute (or in another cube if you need more dimensional context). While this can work and scale, there are limits to performance. Which will likely require converting the summarization to a TI. 

    For example if you want to summarize data across a location dimension you might do something like this.

    Detail Dim: City   Summary Dim: City  
    Type Element ATTRS: Country Type Element ATTRS: Country
    C Ireland Ireland N Ireland Ireland
    N   Dublin Ireland N France France
    N   Cork Ireland
    N   Clare Ireland
    ....

    #Get Data from Detail cube, using the country dimension to match to consolidations in the city dimension
    ['Summary Amount'] =N: DB('Detail Cube', 'Detail Amount', !Dim2, !Country);
    
    
    #Feeds Leaf Cell to Leaf Cell using attribute on the city to find its country
    ['Detail Amount'] => DB('Summary Cube', 'Summary Amount', !Dim2, ATTRS('City', !City, 'Country'));

    Note: You could use a hierarchy reference like ELPAR but that puts a dependency on element indexing which is generally a bad idea.



    ------------------------------
    Ryan Clapp
    ------------------------------



  • 5.  RE: Issue with Feeders from Consolidated Elements to Leaf Elements

    Posted 07/25/24 03:13 AM

    Hi Ryan,

    asking about your note at the end: You mean it is a bad idea because of hierarchies might change over time but not because it is a performance issue, right?



    ------------------------------
    Matthias Holthus
    ------------------------------



  • 6.  RE: Issue with Feeders from Consolidated Elements to Leaf Elements

    Posted 07/25/24 04:20 AM

    Not sure on the performance but I don't do it due to the risk of element indexes changing and getting inconsistent results



    ------------------------------
    Edward Stuart
    ------------------------------



  • 7.  RE: Issue with Feeders from Consolidated Elements to Leaf Elements

    Posted 07/25/24 09:41 AM

    Correct, this would not be a performance problem. Using a function like ELPAR effectively, requires a significant amount of "controls" be put in place. The value returned by ELPAR is influenced by Dimension Element Sort Order and the number of Parents an Element has. Therefore you need to guarantee that Elements will only have 1 parent in a given hierarchy or if an element has multiple, the order of the elements in the dimension are always the same. These are good ideas, but difficult to implement in reality, business is messy. 



    ------------------------------
    Ryan Clapp
    ------------------------------