Multiple hierarchy levels with shared parent

Hi All,
I have multiple hierarchies having same parent level for a dimension. For example for a given dimension we have two multiple hierarchies
A->B->C->D->E
A->B->F
How should we set up the dimension hierarchies so that we can drill through both the hierarchy path having the option popping up for the user to decide?
Thanks,
Virat

Yes, I have clicked the ragged hierarchy option. I can create only one dimension hierarchy of a single dimension. I want to create multiple path on the hierarchy with same shared parent level. I could see that option while creating the hierarchy,however, on the report , only one path is working .There are numerous paths for the hierarchy in the requirement and I cannot create separate dimension for each path.
Edited by: 872073 on Oct 29, 2012 7:17 AM

Similar Messages

  • Multiple hierarchy levels from single table

    Happy 2014 for everyone!
    Here is my first problem of the year: I got a product table with "coded" hierarchy, like this:
    1
     Level
    11 
    Level
    111 
    Level
    1111 
    Level
    11111 
    Product
    11112 
    Product
    11113 
    Product
    1112 
    Level
    11121 
    Product
    112 
    Level
    1121 
    Level
    11211 
    Level
    112111 
    Product
    112112 
    Product
    112113 
    Product
    How should I go about to create an hierarchy from this table? Keeping in mind that products could be in different levels.
    Any ideas please?
    Thanks very much!

    I think you can model this as a parent-child hierarchy.  More info here: http://technet.microsoft.com/en-us/library/ms174846.aspx
    If you are using multidimensional: http://www.brustblog.com/archive/2008/06/22/analysis-services-2008-wizards-is-the-magic-gone.aspx
    If you are using tabular: http://sqlblog.com/blogs/alberto_ferrari/archive/2011/07/19/parent-child-hierarchies-in-tabular-with-denali.aspx
    Christian Wade
    http://christianwade.wordpress.com/
    Please mark correct responses as answers!

  • Multiple-reader environments with shared filesystem?

    Hi,
    we are thinking about offloading some read-only-tasks to a different server so that one server opens the JE-Environment read-write and the other server opens it read-only. What kind of filesystem is recommended to support this architecture?
    The easiest solution is of course using NFS to export the BDB-Files to the read-only-Server. But what performance does one expect?
    What would one do if there is a SAN storage infrastructure already available? Could one use Oracles OCFS2 to share the filesystem as a block device at SAN-Level between the two servers? One critical issue is that "flock" is not supported by OCFS2. Are there any other Filesystems that support multiple readers (multiple writers are not needed!) on top of a SAN?
    Any other ideas/suggestions for a high performance solution for a shared BDB-Environment within a SAN storage infrastructure?
    Stefan.

    Hi Stefan,
    Just to be clear, I am assuming that you do not want to access the r/w Environment via (say) NFS, but you do want the r/o environments to be over (say) NFS.
    We require flock to work properly so that would rule out OCFS2 (I confess ignorance on OCFS2 so I'll take your word for it that it doesn't support flock). As long as your NFS implementation supports flock, then NFS should be fine -- if it doesn't then bad things will happen. Performance over NFS will be based on how big the file system cache is on the r/o side, etc. I can't think of any reason why performance would be bad, but you should obviously try it and see how it is (please let us know).
    Regards,
    Charles Lamb

  • Debug Multiple Flex Projects with shared PHP project

    Hi ! I have a problem debugging Flex/PHP applications.
    I have many Flex projects with a shared PHP project, so I need to set the the output folder to the Flex project's folder, not the PHP's project folder.
    But it doesn't work, I mean the application works great, the PHP are executed fine, the AS3 code is debugged fine, but I can't debug PHP.
    If I put the output folder to the PHP's project, then I can debug the PHP code too.
    Please, can you tell me if it's possible to put the output folder to another folder than PHP's project???

    Hi Steven,
    Yes, I considered this option too.
    But if someone creates in the database a column for a table that belongs to "Project A", when I publish "Project B" the generated script tries to remove the column since my copy of "Project A" on my solution is not the latest
    version.
    I think I'll just have to handle this. Like, organizing with people when and ho can publish to the databases.
    Maybe the best practice is to developers use their own LocalDB while developping and only one person publish to database on the development server.

  • Multiple product install with shared configuration

    Maybe what we try to achieve is simply not possible. I can get it to work if I make manual modifications but I fear that the resulting setup will fail after an update to the p2 profile (update of a IU or new IU..)
    The setup we want to achieve is as following:
    --Installation folder, can be written to by administrator (on windows this could be program files for instance), he has p2 tooling that he can use to make modifications to the setup, these tooling will request elevation so it all plays nice.
    --Executable come in root
    /InstallFolder/Application1.exe
    /InstallFolder/Application1.ini
    /InstallFolder/Application2.exe
    /InstallFolder/Application2.ini
    --Configuration folders to which osgi.shared.configuration.area should point in the ini
    /InstallFolder/configuration/application1/config.ini
    /InstallFolder/configuration/application2/config.ini
    --Shared P2 agent with bundle pooling
    /InstallFolder/p2/org.eclipse.equinox.p2.engine/profileRegistry/application1.profile
    /InstallFolder/p2/org.eclipse.equinox.p2.engine/profileRegistry/application2.profile
    --Bundle Poll
    /InstallFolder/artifacts/plugins
    /InstallFolder/artifacts/features
    The osgi.configuration.area should point to a folder under user.home which we assume is always writable.
    The problem is that if we try to enforce this setup by setting the custom configuration folder in the p2 profile (org.eclipse.equinox.p2.configurationFolder) it will always write this folder in the ini file as -configuration {folder}. As a result the launcher ignores osgi.configuration.area in the config.ini or launcher.ini which points to the userhome.
    I cannot fill in the user.home in the p2 profile because than other users will not have a working setup. Am I missing something here?
    I could manually remove the -configuration after our installer and then the application will work but since the equinox manipulator always seems to load and write this -configuration {folder} if it is not 'configuration' I fear that this will break the setup after one touches the profile to install extra IU's which most of our customers do.
    Our current work around is to have each executable in a folder and then the default 'configuration' folder can be used. This feels more like a hack but it works because the -configuration is not written in this case because is it 'configuration'.

    schneida wrote:Are there easier mehtods to have a ArchLinux install with local packages?
    Personally I use a squid cache proxy to keep a copy of the packages that will be used across the various computers.
    The interesting sections of my /etc/squid/squid.conf file are;
    maximum_object_size 500 MB
    refresh_pattern abs.tar.gz$ 0 20% 4320 refresh-ims
    refresh_pattern db.tar.gz$ 0 20% 4320 refresh-ims
    refresh_pattern files.tar.gz$ 0 20% 4320 refresh-ims
    refresh_pattern pkg.tar.gz$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store
    The patterns will
    * Cache all pacman packages for at least a week.
    * Check the server if the database has been modified since it was last accessed.

  • [38073] dimension has multiple leaf levels which are not identical

    Hi,
    I am trying to implement a time dimension with 2 source tables.
    The time dimension is from minute to year where logical table includes 2 source tables :
    Source table#1 : Year,month,week,day
    Source table#2: hour,minute (minute is a leaf level and chronological key)
    When i try to check-in i got the following error: [38073] dimension has multiple leaf levels with are not identical.
    Thank you.
    Michael

    Hi RM
    i am able to create multiple hirerachy in time dimension and assigned time_id as chronological key which is at the dimension detail level and acting as shared child level for both of them......
    I have created AGO function for calendar year as
    AGO(Test."Fact".amount_sold, Test."Time Dim"."Calendar Year", 1)
    but when i have used AGO column in answers i am getting below mentioned error:-
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22046] To use AGO function, the query level ('Calendar Year, Fiscal Year') must be a static level. (HY000)
    any suggestion would be appreciated to solve this.
    thanks & regards

  • Displaying all GL accounts according to hierarchy level(Based on ERGSL)

    Hi all,
    I have a requirement to display balance sheet and PL account for the given period...
    1. I have to select all G L account numbers (BSEG-HKONT) with their amounts which belongs to same group (i.e. for those ERGSL value is same).
    2.Display sum at each hierarchy level with respect to company codes.
    From table FAGL_011ZC we can find the range of GL account (lower limit-VONKT upper limit-BISKT) and ERGSL using VERSN.
    In T-code FSE2 we can see the hierarchy levels.
    The table FAGL_011PC will get parent ane child relation ship for ERGSL.
    I have to display all these GL accounts according to hierarchy leve.
    please help me out in this regard.(if there any similer code it would be a great help).
    Thank you all in advance!!!!
    Ravi

    Hi Bhanu,
    thanks for your fast response, but this did not help. To make it more clear:
    Lets assume, I have the following hierarchy:
    <Root>
    |
    +- Good Customers
    |  |
    |  +- Customer_A
    |  |
    |  +- Customer_B
    |
    +- Bad Customers
        |
        +- Customer_C
        |
        +- Customer_D
    I have the customer in the free characteristics of a more complex query. I restricted it to the hierarchy node "Good Customers".
    In the web template i use a "Dropdown Box" with the customer as the assigend characteristic and read mode "Dimension".
    In this example the dropdown box would show the entries
    - All values
    - Customer_A
    - Customer_B
    But I would like to see the entries
    - All values
    - Good customers
    I already tried various settings in the query definition concerning the display hierarchy of the customer char with no success yet.
    Regards,
    Philipp

  • Are there suggestions for managing Multiple VMWare Fusion systems sharing files with a MacBook?  Suppose I have enough ram for 3 servers to share files.

    Suppose I have enough ram for 2 or three VMWare fusion systems to that could benefit from file sharing.  Is it possible to configiure each VMWare funsion instance to have a common read only file share on my desktop and a common read/write area on on my desktop? 
    This would allow me to extend the power and mustle of my Mac Book Air, Retina Display system to its best advantage.  Whether native Mac processing or speciality linux or Windows systems as needed.
    I am having trouble allowing more than one system to share the same read only and the same read/write areas so that software does the file locking and merge controls.  Even if these do not share a common read/write area, it would be truly handy for drive space management for them to share a common read only area.
    Thanks for your thoughtful input.
    20 year IT Professional that loves Mac visual interfaces, outstanding performance and a *nix command line. 
    Don

    It really denpends on the os running in the vm and what the permissions are set to on those shares.
    I run a few vms on both a mac at home and windows at work and all other computers in my home or at work can connect to the vms without any problems. Even multiple computer at the same time.
    It also depends on how you have set the vm up for networking. If you are setting it up as nat, instead of bridged, that can also cause problems access it from multiple system. With nat the vm is on its own network branch.

  • Is it possible to access a single Lightroom catalogue mounted on a shared drive from multiple computers, each with an individual Lightroom install?

    Is it possible to access a single Lightroom catalogue mounted on a shared drive from multiple computers, each with an individual Lightroom install?
    Thanks.
    Steve Greenberg

    No, Lightroom catalogs cannot be on a networked (shared) drive, and they do not support simultaneous multi-user access

  • Aggregation with a parent child hierarchy

    Hi
    I have 2 tables, hierarchy and data
    hierarchy has 2 columns parent and child
    data contains values for the lowest rungs of the hierarchy described.
    What i'd like to do is, using the hierarchy described, sum the lowest rung values up to their parent values and so on.
    Quick example:
    Hierarchy
    child parent
    1 null
    2 1
    3 1
    4 2
    5 2
    Data
    hiearchyid value
    3 10
    4 20
    5 30
    output required
    1 60
    2 50
    3 10
    4 20
    5 30
    The last 3 rows are just the 2nd table so i can just union those in but how would i work out the first two values using sql... have tried combinations of connect by, analytics (partition by etc) and rollup but to no avail...
    Any help would be appreciated..
    Cheers
    Alex

    @Aketi
    It is One way that We derive
    "sys_connect_by_path(RowIDToChar(RowID),'.') as
    RowIDList"
    Then
    We use Left Join Using
    "instr(RowIDList,RowIDToChar(RowID))".sorry, didn't catch what you mean.
    my site :-)
    http://oraclesqlpuzzle.hp.infoseek.co.jp/4-13.html
    pity, I don't know Japanese :(
    @Rob
    your query is good and simple :) probably it's the best alternative for the OP.
    But it won't work with not a plain hierarchy, e.g.:
          1
        2   3
          4
        5   6
    SQL> create table hierarchy (child,parent)
      2     as
      3     select 1, null from dual union all
      4     select 2, 1 from dual union all
      5     select 3, 1 from dual union all
      6     select 4, 3 from dual union all
      7     select 4, 2 from dual union all
      8     select 5, 4 from dual union all
      9     select 6, 4 from dual
    10  /
    Table created
    SQL>
    SQL> create table data (hierarchyid,value)
      2    as
      3    select 5, 10 from dual union all
      4    select 6, 25 from dual
      5  /
    Table created
    SQL>
    SQL> select h.child
      2           , sum(connect_by_root d.value)
      3        from hierarchy h
      4           , data d
      5       where h.child = d.hierarchyid (+)
      6     connect by prior h.parent = h.child
      7       group by h.child
      8       order by h.child
      9  /
         CHILD SUM(CONNECT_BY_ROOTD.VALUE)
             1                          70
             2                          35
             3                          35
             4                          70
             5                          10
             6                          25
    6 rows selected
    SQL>

  • No. of child Items should be printed with the parent item at row level

    Hi..
    that the number of the child Items should be printed on A/R Invoice along with the parent Item at row level.
    I want to know whether this is possible through PLD or not . if yes, please let me know how ?
    Regards
    Rakhi
    Edited by: Rakhiatsap on Jul 12, 2010 9:21 AM

    hi Joseph
    I  have defined the Sales type of BOM for the parent Item. At the of punching the A/R Invoice, all the child items appear under the parent items and changeable in terms of Numbers. and in the printed Invoice  parent item details appear.
    What i want that the only number of child items of parent item should appear at the row level.
    Regards
    Rakhi..

  • Aggregating data loaded into different hierarchy levels

    I have some problems when i try to aggregate a variable called PRUEBA2_IMPORTE dimensinated by time dimension (parent-child type).
    I read the help in DML Reference of the OLAP Worksheet and it said the follow:
    When data is loaded into dimension values that are at different levels of a hierarchy, then you need to be careful in how you set status in the PRECOMPUTE clause in a RELATION statement in your aggregation specification. Suppose that a time dimension has a hierarchy with three levels: months aggregate into quarters, and quarters aggregate into years. Some data is loaded into month dimension values, while other data is loaded into quarter dimension values. For example, Q1 is the parent of January, February, and March. Data for March is loaded into the March dimension value. But the sum of data for January and February is loaded directly into the Q1 dimension value. In fact, the January and February dimension values contain NA values instead of data. Your goal is to add the data in March to the data in Q1. When you attempt to aggregate January, February, and March into Q1, the data in March will simply replace the data in Q1. When this happens, Q1 will only contain the March data instead of the sum of January, February, and March. To aggregate data that is loaded into different levels of a hierarchy, create a valueset for only those dimension values that contain data. DEFINE all_but_q4 VALUESET time
    LIMIT all_but_q4 TO ALL
    LIMIT all_but_q4 REMOVE 'Q4'
    Within the aggregation specification, use that valueset to specify that the detail-level data should be added to the data that already exists in its parent, Q1, as shown in the following statement. RELATION time.r PRECOMPUTE (all_but_q4)
    How to do it this for more than one dimension?
    Above i wrote my case of study:
    DEFINE T_TIME DIMENSION TEXT
    T_TIME
    200401
    200402
    200403
    200404
    200405
    200406
    200407
    200408
    200409
    200410
    200411
    2004
    200412
    200501
    200502
    200503
    200504
    200505
    200506
    200507
    200508
    200509
    200510
    200511
    2005
    200512
    DEFINE T_TIME_PARENTREL RELATION T_TIME <T_TIME T_TIME_HIERLIST>
    -----------T_TIME_HIERLIST-------------
    T_TIME H_TIME
    200401 2004
    200402 2004
    200403 2004
    200404 2004
    200405 2004
    200406 2004
    200407 2004
    200408 2004
    200409 2004
    200410 2004
    200411 2004
    2004 NA
    200412 2004
    200501 2005
    200502 2005
    200503 2005
    200504 2005
    200505 2005
    200506 2005
    200507 2005
    200508 2005
    200509 2005
    200510 2005
    200511 2005
    2005     NA
    200512 2005
    DEFINE PRUEBA2_IMPORTE FORMULA DECIMAL <T_TIME>
    EQ -
    aggregate(this_aw!PRUEBA2_IMPORTE_STORED using this_aw!OBJ262568349 -
    COUNTVAR this_aw!PRUEBA2_IMPORTE_COUNTVAR)
    T_TIME PRUEBA2_IMPORTE
    200401 NA
    200402 NA
    200403 2,00
    200404 2,00
    200405 NA
    200406 NA
    200407 NA
    200408 NA
    200409 NA
    200410 NA
    200411 NA
    2004 4,00 ---> here its right!! but...
    200412 NA
    200501 5,00
    200502 15,00
    200503 NA
    200504 NA
    200505 NA
    200506 NA
    200507 NA
    200508 NA
    200509 NA
    200510 NA
    200511 NA
    2005 10,00 ---> here must be 30,00 not 10,00
    200512 NA
    DEFINE PRUEBA2_IMPORTE_STORED VARIABLE DECIMAL <T_TIME>
    T_TIME PRUEBA2_IMPORTE_STORED
    200401 NA
    200402 NA
    200403 NA
    200404 NA
    200405 NA
    200406 NA
    200407 NA
    200408 NA
    200409 NA
    200410 NA
    200411 NA
    2004 NA
    200412 NA
    200501 5,00
    200502 15,00
    200503 NA
    200504 NA
    200505 NA
    200506 NA
    200507 NA
    200508 NA
    200509 NA
    200510 NA
    200511 NA
    2005 10,00
    200512 NA
    DEFINE OBJ262568349 AGGMAP
    AGGMAP
    RELATION this_aw!T_TIME_PARENTREL(this_aw!T_TIME_AGGRHIER_VSET1) PRECOMPUTE(this_aw!T_TIME_AGGRDIM_VSET1) OPERATOR SUM -
    args DIVIDEBYZERO YES DECIMALOVERFLOW YES NASKIP YES
    AGGINDEX NO
    CACHE NONE
    END
    DEFINE T_TIME_AGGRHIER_VSET1 VALUESET T_TIME_HIERLIST
    T_TIME_AGGRHIER_VSET1 = (H_TIME)
    DEFINE T_TIME_AGGRDIM_VSET1 VALUESET T_TIME
    T_TIME_AGGRDIM_VSET1 = (2005)
    Regards,
    Mel.

    Mel,
    There are several different types of "data loaded into different hierarchy levels" and the aproach to solving the issue is different depending on the needs of the application.
    1. Data is loaded symmetrically at uniform mixed levels. Example would include loading data at "quarter" in historical years, but at "month" in the current year, it does /not/ include data loaded at both quarter and month within the same calendar period.
    = solved by the setting of status, or in 10.2 or later with the load_status clause of the aggmap.
    2. Data is loaded at both a detail level and it's ancestor, as in your example case.
    = the aggregate command overwrites aggregate values based on the values of the children, this is the only repeatable thing that it can do. The recomended way to solve this problem is to create 'self' nodes in the hierarchy representing the data loaded at the aggregate level, which is then added as one of the children of the aggregate node. This enables repeatable calculation as well as auditability of the resultant value.
    Also note the difference in behavior between the aggregate command and the aggregate function. In your example the aggregate function looks at '2005', finds a value and returns it for a result of 10, the aggregate command would recalculate based on january and february for a result of 20.
    To solve your usage case I would suggest a hierarchy that looks more like this:
    DEFINE T_TIME_PARENTREL RELATION T_TIME <T_TIME T_TIME_HIERLIST>
    -----------T_TIME_HIERLIST-------------
    T_TIME H_TIME
    200401 2004
    200402 2004
    200403 2004
    200404 2004
    200405 2004
    200406 2004
    200407 2004
    200408 2004
    200409 2004
    200410 2004
    200411 2004
    200412 2004
    2004_SELF 2004
    2004 NA
    200501 2005
    200502 2005
    200503 2005
    200504 2005
    200505 2005
    200506 2005
    200507 2005
    200508 2005
    200509 2005
    200510 2005
    200511 2005
    200512 2005
    2005_SELF 2005
    2005 NA
    Resulting in the following cube:
    T_TIME PRUEBA2_IMPORTE
    200401 NA
    200402 NA
    200403 2,00
    200404 2,00
    200405 NA
    200406 NA
    200407 NA
    200408 NA
    200409 NA
    200410 NA
    200411 NA
    200412 NA
    2004_SELF NA
    2004 4,00
    200501 5,00
    200502 15,00
    200503 NA
    200504 NA
    200505 NA
    200506 NA
    200507 NA
    200508 NA
    200509 NA
    200510 NA
    200511 NA
    200512 NA
    2005_SELF 10,00
    2005 30,00
    3. Data is loaded at a level based upon another dimension; for example product being loaded at 'UPC' in EMEA, but at 'BRAND' in APAC.
    = this can currently only be solved by issuing multiple aggregate commands to aggregate the different regions with different input status, which unfortunately means that it is not compatable with compressed composites. We will likely add better support for this case in future releases.
    4. Data is loaded at both an aggregate level and a detail level, but the calculation is more complicated than a simple SUM operator.
    = often requires the use of ALLOCATE in order to push the data to the leaves in order to correctly calculate the aggregate values during aggregation.

  • Main item and Hierarchy level items in SAP EWM

    We use ERP SAP AFS and EWM 9.1
    ERP sales order 20000 - 5PCS ( Different grid values chosen and delivery is distrubuted to EWM)
    Outbound delivery order contains main item and corresponding SKU displayed with Grid values like Color, Cup and Size. (Hierarchy Level)
    20000
    20000-0001A30
    20000-0001A32
    20000-0001C34
    20000-0001B36
    20000-0001D38
    We create Warehouse tasks for SKU items ( Items 60,70,80,90,100) for picking.
    I need to process VAS activites for this.
    Price labeling and putting on plastic bag for all SKU's ( 2 VAS activity).
    I have maintained packaging specification and tried to process it.
    But here I get an error in VAS order. Because WR Qty from ODO to VAS order is not copied. It is getting deleted at the time of VAS order creation.
    Then I tried to maintain the packaging specification for item 20000 (main item) and process the VAS order. Here VAS order got created and WR Qty also displayed.
    But Picking Warehouse tasks are created for SKU items not for main items. In this case I am not able to process it also.
    Packaging specification for main item or SKU item I should consider? If it is for SKU , need to have lot of master data. Is there any link i can make maintaining packspec for main item and process the warehouse tasks for SKU.
    Which way i have to go now?
    Any suggestion please
    Please ask me if you need more inputs

    Hi Jobi,
    I agree to Juergen, you'll need individual pack specs per subitem in order to process VAS on this level. Did you think of using batches and depending characteristics for the grid values? This is how EWM for Fashion works. Then you could define only VAS pack spec for multiple grid values.
    Best regards,
    Christian
    Remark: did you consider EWM for Fashion for your implementation?

  • How to only display specific members from dissimilar hierarchy levels?

    Hi,
    I have a Business Partner that routinely wants to build a report that displays members from dissimilar hierarchy levels. For example, she wants to display member "210_UNASSIGNED EXP/ACC" from level 8 and member "E090_ADVISOR SERVICES" from level 1. When she filters on just those two members, the reports displays as such:
    She then must manually expand the "E020_CORPORATE AND EXECUTIVE" member 7 times to see "210_UNASSIGNED EXP/ACC":
    Is there anyway to make her life easier and have the report display only the "210_UNASSIGNED EXP/ACC" member and the "E090_ADVISOR SERVICES" member, even though they are from different levels?
    Thanks,
    Michael J Titera
    BI4.0 SP8.3
    SQL Server 2012

    Hello Michael
    Displaying information from mixed hierarchy levels without the context of the parent members is a reporting workflow best suited to WebI and CR. The AOLAP content can be exported as an Analysis View and then this becomes a data source for WebI and CR.
    Our previous product Voyager used to allow member selection from mixed levels without the context of parent members but it caused a lot of confusion and misinterpretation of the data, which is why we deliberately do not have it in AOLAP.
    Worth noting that BI4.1 was a big release for AOLAP with many enhancements. One is "Expand to Level". So instead of having to click 7 times to expand the hierarchy, it now just requires one mouse right-click to do the same thing.
    Regards
    Ian

  • Hierarchy  Query  to  get  parent  nodes?

    Hi Everyone,
    I want to write a hierarchy query which should give me the path starting from given node to its parents(Grand parents). below is the sample data and the output what i am expecting. and also the output what i am getting right now from my query.
    CREATE TABLE RELATION (PARENT VARCHAR2(5),CHILD VARCHAR2(5) PRIMARY KEY);
    --Data for the tree which starts from the root 'A'
    Insert into RELATION (PARENT, CHILD) Values (NULL,'A');
    Insert into RELATION (PARENT, CHILD) Values ('A', 'B');
    Insert into RELATION (PARENT, CHILD) Values ('A', 'C');
    Insert into RELATION (PARENT, CHILD) Values ('B', 'D');
    Insert into RELATION (PARENT, CHILD) Values ('B', 'E');
    Insert into RELATION (PARENT, CHILD) Values ('D', 'F');
    Insert into RELATION (PARENT, CHILD) Values ('C', 'G');
    --Data for the tree which starts from the root 'H'
    Insert into RELATION (PARENT, CHILD) Values (NULL,'H');
    Insert into RELATION (PARENT, CHILD) Values ('H', 'I');
    Insert into RELATION (PARENT, CHILD) Values ('H', 'J');
    Expected Output by passing values as 'F' which gives the path from bottom to up.
    A<-B<-D<-F
    My Query:
    SELECT substr(sys_connect_by_path(child,'<-'),3)
    FROM relation
    WHERE connect_by_isleaf = 1
    START WITH child = 'F'
    CONNECT BY PRIOR parent = child
    ORDER BY child;
    Output of my query:
    F<-D<-B<-A
    I am getting the output in reverse order. i can use the reverse string function to reverse the string but the problem is the node can also contain the values like 'AC' 'BA'.. in future.
    Can anyone please help me in getting the correct output.
    Thank you in advance.

    I like ListAgg :D
    with RELATION(PARENT,CHILD) as(
    select NULL,'A' from dual union all
    select 'A', 'B' from dual union all
    select 'A', 'C' from dual union all
    select 'B', 'D' from dual union all
    select 'B', 'E' from dual union all
    select 'D', 'F' from dual union all
    select 'C', 'G' from dual union all
    select NULL,'H' from dual union all
    select 'H', 'I' from dual union all
    select 'H', 'J' from dual)
    SELECT ListAgg(child,'<-')
           within group(order by Level desc) as revPath
    FROM relation
    START WITH child = 'F'
    CONNECT BY PRIOR parent = child;
    revPath
    A<-B<-D<-F

Maybe you are looking for