Dived to columns in a  hierarchy.

Hello experts
I am building a report in  bex query designer and I am trying to calculate 
Percent Of to 2 column   output /input :
My question is:
I am using hierarchy, is it possible to divide the input column
With a specific hierarchy level  that is the  parent  of the  leaf
in the output column ?
Best Regards,
Tal Shalom.

If it is versions >=11g, then you can use like this.
SELECT LISTAGG(index_name,',')WITHIN GROUP(ORDER BY table_name)
FROM USER_IND_COLUMNS
--WHERE CONDITION IF REQUIRED
GROUP BY TABLE_NAME;
If it is earlier versions you could use,
SELECT RTRIM(XMLAGG(XMLELEMENT(A,INDEX_NAME,',')).EXTRACT('//text()'),',') FROM
USER_IND_COLUMNS
--WHERE CONDITION IF REQUIRED
GROUP BY TABLE_NAME;

Similar Messages

  • Navigating from detail level column in an hierarchy  to another report

    I have a requirement as folllows:
    In one report,i have a drill-down feature enabled on "TIME DIM".
    At The detail level of this dimension is "DAY" column.
    SO,from this detail level,when i click on "DAY" column, navigation should be done to another report..
    Is it possible to navigate so from detail report..
    pls let me know the solution for this requirement..
    thanks,
    seeusass

    Instead of Drill down,Give Navigation in first report to child report.But for this you need to create n reports if you are having n number of levels in hierarchy.Then at the detail level report you can give navigation at day level.
    Thanks
    Don

  • Logical column not in hierarchy is shown as being drillable?

    I have a hierarchy created, lets say customer. Within all the levels, logical column "customer zipcode" is not added. By default then, this column would be associated with the detail or lowest level. When I create a report in answers with just this column, it shows up drillable whereby it drills to the lowest level which is apart of by default. So my question is why is this logical column drillable if it is not associated explicitly in the hierarchy?

    Thanks for the reply. Later yesterday I figured out the problem. It took some unit testing and trial and error; but, this is what I gathered during testing.
    1. logical columns for hierarchy table source that are not explicitly added to a level in the hierarchy is by default put in lowest level and they are not drillable because of that.
    2. If you add a logical column which is derived off other logical columns through an expression (for example concatenating col_nm||'('||col_cd||')' in the lowest level, add it as a key and set the key for "use for drilling" then this too will make all logical columns drillable to that. Don't know why but could be a bug.
    3. If you set preferred drill path for the lowest level to another hierarchy level, then those logical column(s) will be drillable. Probably because they are not at the lowest level any more since there is another level down now due to the preferred drill path.
    So in the end since the lowest level drillable column has to be a logical column which is built through expression and the fact that this lowest level needs to drill to another level in another hierarchy due to business requirements I am stuck with all columns not in the hierarchy being drillable. The fix around this though is to go to all these columns that are now drillable, set the aggregation rule to 'no interaction' and save as system-wide default.

  • Freezing the Name column of the hierarchy when scrolling to the right.

    Hi,
    In UCMON, the keys of the org hierarchy are frozen when you expand the task columns and scroll to the right. That way I could still see the keys of the organizations when processing the tasks far on the right.
    How do I do the same for the names column? Is there a way to have the names column frozen as well so that I could still view the names next to the keys when processing those tasks?
    Any advice is appreciated.
    Thanks,
    Sie-Sing

    Do you have an attached display to your Mac?

  • Getting unique values from a column within a hierarchy

    I'm sort of new to working with databases and oracle so this is probably a beginner-ish question. I'm using oracle 9i on this.
    I have a database that contains a table with an organizational hierarchy (dept_id, dept_name, parent_id), and another that contains a list of items for each department (like dept_id, item_id). Item_id joins with another table for the actual description of the items. Each department may have many items, and the departments may overlap with the items included in each.
    I only want to contain that item list for leaf nodes in the hierarchy and for any departments that are not at the bottom, have a query pull a list of all unique items contained by its children, without the overlap. I know I can use START WITH and CONNECT BY to traverse the hierarchy but I'm not sure how I'd put all these pieces together into one query to get what I want, so I'd really appreciate help.

    can you pls post a sample data and the output you are looking for.

  • OBIEE 11g - Navigation from Hierarchy Column

    Hi Experts,
    I have created one Organization Hierarchy (Country --> Region --> State --> City) in the Logical Layer of the rpd and pull that hierarchy with the dimension in the Presentation Layer. In the new analysis I have created dashboard prompt with the Organization hierarchy and created a report showing Total Headcount column and Organization Hierarchy column (using selection steps feature in OBIEE 11g).
    Now when I select Region from the dashboard prompt, in the report it is showing me total headcount according to my region selected in the prompt, but when I tried to navigate from the Total Headcount to see the list of employees in that particular region, I am not able to see the list of employees belonging that particular region rather it is showing me the list of total employees at the Country level.
    PS - In the navigation report I am prompting Country, Region, State and City from the Organization dimension, but I am not able to prompt Country, Region, State and City from the hierarchy column which is there in the Organization dimension.
    Please Help.

    Hi,
    You need to create the drill down report also using selection steps. I tried the drill down was working fine.
    Thanks

  • Report totals with dimension hierarchy column on pivot table incorrect

    Hi,
    I have a pivot table based report that has one dimension column, a dimension hierarchy column and various measures.
    The row totals do not match, detail to total, and I have tried both complex server based aggregate and report based aggregation, but neither are giving me the correct answer.
    I have also tried adding the column that is the same as the top level as the hierarchy, but hidden, but this does not help.
    I have also tried adding the lowest level of detail column, but hidden, but this does not give me the solution I need as all of the figures then appear at detail not aggregated level.
    Any ideas please?
    thanks,
    Robert.

    Can you validate the query hitting to the database and compare the results?
    Mark if helps.
    Thanks,

  • How to hide total value in hierarchy column?

    Hi all,
    My requirment is like this:
    Department--------Sales--------Percentage(%)
    Total---------------600---------(NULL)
    A----------------100---------- 0.5
    B-----------------200-------(NULL)
    C----------------300--------0.33
    Department column is a hierarchy column.
    The expression for Percentage(%) column is:
    CASE WHEN Department ='A' THEN Filter(Sales Using Department='A' )/ Filter(Sales Using Department='B' ) WHEN Department ='C' THEN Filter(Sales Using Department='A' )/ Filter(Sales Using Department='C' ) END
    But the total for Percentage(%) is wrong value, so I want to hide it, So anyone know how to do it?
    Regards,
    Anne

    Hi,
    Not sure about the requirement.
    But didnt you try the column properties >> Hide check box
    Hope this helped/ answered
    Regards
    MuRam

  • Dynamic columns in query depending on hierarchy nodes

    Hello all
    I want to design a query with dynamic number of columns depending on hierarchy node.
    A hierarchy node is selected while running the query and user has authorization to see all subsequent nodes below the selected node.
    e.g. consider grp hierarchy with units and sub-grps as nodes.
    level1 Grp1
    levele2 unit1     :       grp2               :      grp3
    level3              :      unit2   unit4      :    unit4 grp4
    Suppose user select node Grp1, then there should be 3 columns for unit1, grp2, grp3
    If user selects node grp2, then there should be 2 columns for unit2 and unit4
    Please help. Any suggestions highly are highly appreciated.
    Rgds
    Sanjyot

    Surekha,
    Try this.
    Place heirarchy/characteristic in columns, under this place required keyfigure.
    Restrict with variable.
    Srini

  • Hierarchy relationship report - - Critical and urgent rek

    Hello Everyone,
           I have a critical problem. I have Unit in the row column displayed as hierarchy. Current and past year quantity as RKF in the column and share in relation to US as CKF in the column. US, northeast and southeast are all part of worldwide. When we rollup to worldwide the result should show up just US results in total and not add up all three. I tried many ways but its in vain. Is it possible to get the desired result?? Please any idea would be of great great help.
    CURRENT REPORT RESULT
    Unit--Current-PastShare in relation to US
    Worldwide---10000-5000---200%
    US--5000-2500---100%
    NorthEast3000-1500---60%
    SouthEast2000-1000---40%
    DESIRED RESULT
    Unit--Current-PastShare in relation to US
    Worldwide----5000-2500---100%
    US--5000-2500---100%
    NorthEast3000-1500---60%
    SouthEast2000-1000---40%

    Aneesh,
              This is a display hierarchy created at the characteristic level but each with a different node. US has the states covered by each individual region and Worldwide has US and 2 other regions under it. Is there a way to write a condition stating the worldwide to take just US values and nothing below it.
              Please experts let me know if there is a possibility and hopefully there should be a work around.
    Thanks,

  • Script populate parent-child hierarchy not running

    Hallo guys
    I have problem when running script populate Parent-Child Relationship Table.
    Here is the script.I don't even change the script.just run it in PL/SQL
    declare
    v_max_depth integer;
    v_stmt varchar2(32000);
    i integer;
    begin
    select max(level) into v_max_depth
    from V_D_BRANCH
    connect by prior BRANCH_KEY=PARENT_BRANCH_KEY
    start with PARENT_BRANCH_KEY is null;
    v_stmt := 'insert into DM_ANALYTICS.BRANCH_HIERARCHY (MEMBER_KEY, ANCESTOR_KEY, DISTANCE, IS_LEAF)
                select BRANCH_KEY as member_key, null, null, 0 from V_D_BRANCH where PARENT_BRANCH_KEY is null
                union all
                select  member_key,
                replace(replace(ancestor_key,''\p'', ''|''), ''\'', ''\'') as ancestor_key,
                case when depth is null then 0
                else max(depth) over (partition by member_key) - depth + 1
                end as distance, is_leaf
    from
    select member_key,depth,
    case     when depth is null then '' || member_key
    when instr(hier_path, ''|'', 1, depth + 1) = 0 then null
       else substr(hier_path, instr(hier_path, ''|'', 1, depth) + 1, instr(hier_path, ''|'', 1, depth + 1) - instr(hier_path, ''|'', 1, depth) - 1)
    end ancestor_key,
    is_leaf
    from
        (    select BRANCH_KEY as member_key, PARENT_BRANCH_KEY as ancestor_key, sys_connect_by_path(replace(replace(BRANCH_KEY, ''\'', ''\''), ''|'', ''\p''), ''|'') as hier_path,
          case when BRANCH_KEY in (select PARENT_BRANCH_KEY from V_D_BRANCH ) then 0 else 1 end as IS_LEAF
    from V_D_BRANCH 
    connect by prior BRANCH_KEY = PARENT_BRANCH_KEY
    start with PARENT_BRANCH_KEY is null
      ( select null as depth from dual;
    for i in 1..v_max_depth - 1 loop
    v_stmt := v_stmt || union all select '' || i || '' from dual;
    end loop;
    v_stmt := v_stmt || ) )
    where ancestor_key is not null;
    execute immediate v_stmt;
    end;
    but I got errors like following:
    Error report -
    ORA-06550: line 19, column 12:
    PLS-00103: Encountered the symbol "insert into DM_ANALYTICS.BRANCH_HIERARCHY (MEMBER_KEY, ANCESTOR_" when expecting one of the following:
       ( - + case mod new not null <an identifier>
       <a double-quoted delimited-identifier> <a bind variable>
       continue avg count current exists max min prior sql stddev
       sum variance execute forall merge time timestamp interval
       date <a string literal with character set specification>
       <a number> <a single-quoted SQL string> pipe
       <an alternatively-quoted string
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    what should I do guys?any idea,any solution would be appreciated.thanks alot guys

    956850 wrote:
    hi,
    i tried making "Dimension with Parent-Child Hierarchy" as described in your tutorials.
    i finished with the admin tool and database changes and with no errors.
    when trying to create a new answer, by only puting the hierarchy column in the answer.
    the result show "no result" exist.
    i am not sure what i am doing wrong. maybe you can point me to the problem?
    thanks
    Mirit.Hi Mirit,
    What is the table that you created hierarchy on?
    Which column in the hierarchy you pulled into your reports to see the No Result message?
    Please query the table and see if has data.
    Thanks,
    G. SK

  • How to create the Hierarchial table using ALV.in WD4A

    Hi All,
    I am struggling hard to make the hierarchial ALV,  But could not do it.
    Could you help me.
    Actually I want the column to be hierarchial. For this i am using
    if_salv_wd_column_hierarchy~set_hierarchy_column.
    Also i tried to display the whole table as Hierarchial
        lr_table_settings->set_display_type( if_salv_wd_c_table_settings=>display_type_hierarchy ).
    For both the possibilities the result is not as desired.
    Regards,
    Arti.

    Hi Aleem,
    The link u have provided gives the solution for the Table.
    I want the implementation for ALV.
    Also my requirement is that the first column of the ALV should be hierarchial.
    On expanding the table cell of first column one more table should open of same type.
    This way user can navigate to three diffierent database tables.
    The tree is populated at runtime with the data. So the depth of branches is unknown at design time.
    I hope the requirements are clear to u now.
    Thanks and Regards,
    Arti.

  • OBIEE-11g Double columns question

    Hi guys, on my pc i've installed business intelligence suite 11.1.3 and now I need support about double columns feature. In the business model I've this hierarchy
    Region -> Province -> Municipality
    where the keys for each level are represented by the name of the element, the problem is that this keys are used to map geometric shapes to enable the map views features and the Municipality values are ambiguous in their domain (could exist two municipality with the same name but different province) in the official documentation is wrote that to unique identify a shape should be used a double columns field but when I 'apply the double field feature to the hierarchy levels the drill feature doesn't work properly and I get a strange filter error (seems that the system filter the value by id on the wrong field). Somebody could help me to understand if I can define a hierarchy where the keys have a descriptor id associated ?
    Thanks a lot Regards

    I 've also come up with the same issue. I am using OBIEE 11G (11.1.1.5.0) and Oracle Mapviewer Ver11_1_1_4_B110225.
    On the RPD, My hierarchy is defined as: District -> Quarter -> Neighbourhood.
    For each hierarchy level I am using:
    District Logical Level keys:
    District Id: Primary Key
    District Name: Use for Display
    Quarter Logical Level Keys:
    Quarter Id: Primary Key
    Quarter Name: Use for Display
    Neighbourhood Logical Level Keys:
    Neighbourhood Id: Primary Key
    Neighbourhood Name: Use for Display
    I need to associate each Mapviewer theme's ID (District ID, Quarter ID, Neighbourhood ID) with a relevant BI column, because the theme names are not distinct.
    I have set the double column (Descriptor Id) feature: (District ID, Quarter ID, Neighbourhood ID) on each BI name column (BI Distict Name, BI Quarter Name, BI
    Neighbourhood Name) of the business model and associated the layer key (ID) of each Mapviewer theme with the corresponding BI name column.
    On the map view, drilling down from District to Quarter works properly, but I get the following action error while drilling down from quarter to neighbourhood:
    An error occurred while trying to generate drill down query.
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError:
    46036] Internal Assertion: Condition rowValues.size() == numColumns, file server\Query\Src\SQNavigatorAccess.cpp, line 495. (HY000)
    SQL Issued: {CALL NQSGenerateDrillDownQuery('SELECT District Name saw_0, Quarter Name saw_1, DESCRIPTOR_IDOF(District Name) saw_2, DESCRIPTOR_IDOF(Quarter Name)
    saw_3 FROM "Subject Area" WHERE DESCRIPTOR_IDOF(District) = 5','1','''5'',''31'',31','-1 -1 -1 -1 -1','0,2,3')}
    However, if I add a table view on my analysis and click on the table view's quarter link, drilling down works ok both for the table and for the map view.
    Moreover, I tried removing the double column (descriptor Id) feature from the business model while maintaining the hierarchy as described above.
    I then associated the layer key (ID) of each Mapviewer theme with the corresponding BI ID column instead of the BI name column.
    On the map view while drilling down from District to Quarter, a filter to a specific District is applied, but the associated Quarters theme is not displayed.
    Finally, if I enable the "Use for Display" checkbox for each hierarchy level's primary key on the RPD, and maintain the association between the layer key (ID) of
    each Mapviewer theme with the corresponding BI ID column, drilling down works correctly but only on the ID.
    I need drilling down to work while clicking on the each name BI column of the hierarchy while defining the association on the layer key ID of each mapviewer
    theme. Is this possible? Any ideas?

  • Company Hierarchy Displayed as Flat List

    Dear Experts,
    I have a problem as described below.
    My query has 0COMPANY in its column. The hierarchy for 0COMPANY has been defined but not activated by default. Whenever users from Group A execute this query, they need to view 0COMPANY as hierarchy by activating it via Property.
    However, what happened is that, they are unable to view the hierarchy and the company and its subsidiaries are being displayed as flat list.
    I suspect this has to do with authorization but unable to figure out what causes it to happen. Could anyone give me some pointers on how to move forward?
    Notes:
    - In RSECADMIN, I have Authorization: Z_COMPA
    - 0COMPANY is included in the Authorization Structure.
    - I have the node 050005 defined in Hierarchy Authorization
    with the following settings:
    Type of Authorization for a Hierarchy = 1
    Hierarchy Level = 0
    Area of Validity = 0
    Many thanks!

    Hi Diogo,
    Thanks a lot for your reply. It keeps me moving.
    I have copied the query into a different name and tried to change 0COMPANY hierarchy setting as active by default. However, I got the following error message in Query Designer:
    Erros: Default values 'Drilldown Characteristic' 'Company' are not permitted for display hierarchy 'HIER1 100'
    Is the error message related to my problem? I have checked the Hierarchy Attributes Settings in RSH1 and noticed the followings:
    - Do Not Display Leaves for Inner-Nodes in the Query (Checked)
    - Display Behavior for Leaves of Internal Nodes Not Changeable (Unchecked)
    - Suppress 'Unassigned' Node (Unchecked)
    - Root/Totals Item Appears Above (Selected)
    - Drilldown Start Level: 00
    Is my Hierarchy Attribute Settings caused the problem?
    Appreciate further help. Thanks!

  • Siebel Analytics: Disabling a Drill column

    I am trying to disable a drill column in my hierarchy
    I have the following hierarchy set-up:
    Resource Hierarchy
    --- Total Resource (top most level)
    ------ Department (1st level)
    ------ Department Key
    ------ Department Name
    --- Resource (2nd level)
    ------ Resource Key
    ------ Resource Name
    I have the following for my presentation layer:
    Resource
    --- Resource Name
    --- Department Name
    --- Department Description
    From Department I can drill into Resource
    I have a report where I want to display Department Name, Department Description and a measure.
    I noticed that both the Department Name and Department Description are enabled so that I can drill on it to the Resource. I would like to have just Department Name enabled (and not Department Description) so that I only have one way to drill into the Resource.
    Does anyone know how I can do this?
    Thanks,
    Mary

    Mary,
    Before you disable the drill down capability you need to make sure if no other reports get impacted by disableing the dept hierarchy.
    2 ways
    1. Build new dept hierarchy for only one lvl that you want.
    2. Go to the hierarchy lvl you want to disable ->click on property->click on Keys tab-> double click on the col you want to disable for drill down -> you will see a check box "use for drilldown" uncheck that, save it restart the server.
    Thanks
    Girish

Maybe you are looking for

  • Macbook Doesnt REcognize when i plug in my charger help

    Macbook Doesnt REcognize when i plug in my charger please help me i dont know what to do and my computer curently as 8 minute battery left please provide me an answer also i woud appreciate if you could email me the answer as well becuase i mite not

  • How do I update my MacBook Pro os x 10.4.11?

    How do I update my MacBook Pro os x 10.4.11? Help PLEASE!!!

  • Wrong count of 'messages read' in user statistics

    I added up all the messages from all the forums. Total: 489 messages. According to 'my' statistics, so far I have already read: 2020 messages. Slight  discrepancy. Explain please. Looks like everytime I open a thread, the posts get added to my total.

  • From ninja to McCrash

    So i have this macbook that i bought late summer 2011, and it has bern turned on about 70% of the time, since then. In other words; I have used it quite a lot. Since I got some cash from apple to spent on apple, i bought 4 ekstra gb of ram (so i have

  • No reconoce mi mobile broadband huawei E156B

    actualice mi  os y ya no reconoce el usb mobile broadband marca huawei E156B de la compañia telcel en mexico... alguna sugerencia?? he intentado conseguir alguna actualizacion de la misma pero sin tener exito