Skip hierarchy level when null is present

Hi All,
Can we skip a level from dimension hierarchy if there is a null value. If so can any one please tell me how can we achieve this.
Thanks in advance

Hi Venkat,
Thanks for the reply....
Case is in my dimension hierarchy i have a parent level which have multiple leafs at same level. As shown below..
A-->
.....B-->
..........C-->D
..........E-->F
..........G-->H
So my drills are like A->B->C->D->E->F->G->H . In the case where 'C' column has null value then the drill downs are same A->B->C->D->E->F->G->H showing null value in the column.
My requirement is , if column 'C' has null value then it should skip the level 'C' and move on to 'E' like A->B-->E->F->G->H and so on..
Thank you.

Similar Messages

  • Grouping of levels when data is present in fact & dimension(hierarchy)

    Hi,
    I have two tables like my_data and my_hierarchy as follows
    my_data
    my_id-----Level_id-----my_measure-----lvl_sch
    10-----1-----2000-----xyz
    20-----2-----2000-----xyz
    30-----3-----1000-----xyz
    40-----4-----1000-----xyz
    50-----5-----2000-----xyz
    60-----6-----2000-----xyz
    70-----7-----1000-----xyz
    80-----8----------1000-----xyz
    90-----9-----1000-----xyz
    100-----10-----3000-----xyz
    my_hierarchy
    lvl_sch-----Level_ky-----Level1_id-----level2_id-----Level3_id
    xyz-----lvl_1-----1-----2-----3
    xyz-----lvl_2-----1-----2-----4-----
    xyz-----lvl_3-----1-----2----------
    xyz-----lvl_4-----1----------
    xyz-----lvl_5-----5-----6-----7
    xyz-----lvl_6-----5-----6-----8
    xyz-----lvl_7-----5-----6-----
    xyz-----lvl_8-----5
    xyz-----lvl_9-----10-----1-----5
    xyz-----lvl_10-----10-----9
    I need to create one stored procedure that will check where the sum of the 'my_measure' for each level match with it's preceding level.
    e.g.
    for level3_id
    1) sum of 3,4 (2000) should match with 2 (2000) and sum of level2_id should match with 1 (1000).
    2 )sum of 7,8 (2000) should match with 6(2000) and sum of level2_id should match with 5 (1000).
    3 )sum of 5 (1000) should match with 1(2000)
    For level2_id
    1) sum of 2(2000) should match with 1 (2000)
    1) sum of 6(2000) should match with 5 (2000)
    1) sum of 1,9(3000) should match with 10 (3000)
    Is this possible by using pivot clause in Oracle 11g to get the sum of level3 and compare it level2 for each node and similarly for level2?
    Or is there any other way to do this in oracle 11g?
    Edited by: 861256 on May 25, 2011 1:10 AM

    Sorry indentation is not easy... i repeat the Example once again:
    EXAMPLE: before placing ARTICLE as column
    Hie Level1_______Hie Level2_______RATIO (total sales)
    bottle___________ 350ml ___________ 100
    ________________ 500ml ___________200
    After placing ARTICLE as column BEX shows:
    Hie Level1 _________ Hie Level2 _____ ARTICLE _________ RATIO (total sales)
    bottle ____________________________CokeCan350ml ______ 50
    _________________________________ SpriteCan350ml _____ 50
    __________________________________TOTAL ____________100
    ____________________ 350ml _______CokeCan350ml _______50
    _________________________________ SpriteCan350ml ______ 50
    What i need to display is the following:
    Hie Level1 __________ Hie Level2 _________ ARTICLE ______RATIO (total sales)
    bottle _________________________________TOTAL ________ 100
    ____________________ 350ml ____________CokeCan350ml __ 50
    ______________________________________ SpriteCan350ml __50

  • XML not generating when null data present in the table

    Lets consider employee and dept tables and say one employee works in multiple departments,
    Dept table data:
    case1:
    emp_id     dept_name      dept_id
    1     Oracle     55
    1     Datawarehouse     56
    case 2:
    emp_id     dept_name      dept_id
    2     Oracle     55
    2     Datawarehouse     56
    2     Clearing House     
    2     Java     
    In Production environment, the below code generates xml for case 1 but not for case 2. In test environment , xml is getting generated for both the cases. It looks like null handling issue but why the same code behaves differently in qa and prod. dbms_xmlgen.getXML is not generating any exceptions. Any help would be appreciated.
    DECLARE
    ctx dbms_xmlgen.ctxHandle;
    xml CLOB;
    emp_no NUMBER := 7369;
    i PLS_INTEGER;
    BEGIN
    ctx := dbms_xmlgen.newContext('SELECT emp_id,name,salary, cursor(select emp_id, dept_name,dept_id from dept b where a.emp_id=b.emp_id) FROM emp a WHERE a.empno = '|| emp_no);
    xml := dbms_xmlgen.getXML(ctx);
    i := dbms_xmlgen.getNumRowsProcessed(ctx);
    dbms_output.put_line(TO_CHAR(i));
    END;
    Edited by: user512219 on May 22, 2012 12:52 PM

    Give the database version anyway, it could be a known bug.
    Are the NULL column(s) part of the join predicate?
    It's difficult to help in this situation, nobody but you has the real test case, so try to give as much details as possible.
    Wild guess : does this make a difference?
    dbms_xmlgen.setNullHandling(ctx, dbms_xmlgen.EMPTY_TAG);Edited by: odie_63 on 22 mai 2012 23:40

  • CREATE DIMENSION SKIP WHEN NULL Syntax

    I noticed in Oracle 11GR2 that the CREATE DIMENSION has been enhanced to include a SKIP WHEN NULL option. Do anyone know the behaviour of this option as the documentation is relatively light?
    Thanks John

    I thought it was quite well described in the documentation...
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5006.htm#SQLRF01206
    >
    level_clause
    The level_clause defines a level in the dimension. A level defines dimension hierarchies and attributes.
    level Specify the name of the level.
    level_table . level_column Specify the columns in the level. You can specify up to 32 columns. The tables you specify in this clause must already exist.
    SKIP WHEN NULL  Specify this clause to indicate that if the specified level is NULL, then the level is to be skipped. This clause lets you preserve the hierarchical chain of parent-child relationship by an alternative path that skips over the specified level. See hierarchy_clause .
    Restrictions on Dimension Level Columns Dimension level columns are subject to the following restrictions:
    All of the columns in a level must come from the same table.
    If columns in different levels come from different tables, then you must specify the dimension_join_clause.
    The set of columns you specify must be unique to this level.
    The columns you specify cannot be specified in any other dimension.
    Each level_column must be non-null unless the level is specified with SKIP WHEN NULL. The non-null columns need not have NOT NULL constraints. The column for which you specify SKIP WHEN NULL cannot have a NOT NULL constraint).

  • OBIEE 11g: Skip a level in a parent-child hierarchy

    Hi everyone,
    I've got a parent child hierarchy setup. It's basically Total Company -> Continent -> Country. It's working fine.
    For one particular report, the end user would like to bypass continent for just Asia. The rest of the countries should go through their continent first.
    For example,
    Total Company -> Europe -> Germany
    Total Company -> North America -> Canada
    Total Company -> Japan
    Total Company -> Korea
    We do not want to change the hierarchy as it is a corporate standard and eventually we want the grouping there. Just for a single report, we want to bypass.
    Is there anyway to do this?
    I tried to remove the "Asia" node while building the report, but it also removes the children. So then I tried adding back in the children and they weren't part of the hierarchy. They were off in their own duplicate hierarchy.
    Hopefully this is possible.

    Hi,
    you mean for example you want to create a level 3 WBS under a level 1 WBS?
    is that what you mean by skip a level?
    that is not possible, i cant even think of a scenerio why you might want to do that. (but i'm curious why you asked)
    it isnt even logically feasible. you can create WBS levels only one at a time.
    Good day.

  • Skip a level in wbs hierarchy

    Hi,
    how to skip a level while creating wbs elements hierarchy?
    Thanks!

    Hi,
    you mean for example you want to create a level 3 WBS under a level 1 WBS?
    is that what you mean by skip a level?
    that is not possible, i cant even think of a scenerio why you might want to do that. (but i'm curious why you asked)
    it isnt even logically feasible. you can create WBS levels only one at a time.
    Good day.

  • Dynamic hierarchy-level entering dashboard & drill-down

    Hi there,
    I have a requirement to create a report which, depending on the user that opens the report, needs to start at a specific level within an organisation hierarchy. Once the user has opened the report (which will be part of a dashboard), he should be able to drill-down the organisation hierarchy from his entry-point down. I've been able to create that report but when drilling-down it doesn't quite work. No matter at which level a user opens the report, when drilling it will drill-down immediately to the lowest level of the hierarchy, skipping (= not showing) intermediate levels.
    Here are the details:
    Organization hierarchy:
    - Org_Level_0
    - Org_Level_1
    - Org_Level_2
    - Org_Level_3
    - Org_Level_4
    - Org_Level_5
    - Org_Level_6
    - Org_Level_7
    - Org_Level_8
    Using an InitBlock each user is assigned it's a session variable ENTRY_LEVEL which contains the user's organization hierarchy level (i.e. '5'). For Testuser5 the session variable contains '5'.
    I've created the report containing two columns:
    - A dimension column called 'Organization'
    - A measure column called 'Availability%'
    In the dimension column I've entered the following formula:
    CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='0' THEN DIM_ORGANISATIE." Org_Level_0"
    ELSE CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='1' THEN DIM_ORGANISATIE." Org_Level_1"
    ELSE CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='2' THEN DIM_ORGANISATIE." Org_Level_2"
    ELSE CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='3' THEN DIM_ORGANISATIE." Org_Level_3"
    ELSE CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='4' THEN DIM_ORGANISATIE." Org_Level_4"
    ELSE CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='5' THEN DIM_ORGANISATIE." Org_Level_5"
    ELSE CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='6' THEN DIM_ORGANISATIE." Org_Level_6"
    ELSE CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='7' THEN DIM_ORGANISATIE." Org_Level_7"
    ELSE CASE WHEN VALUEOF(NQ_SESSION.ENTRY_LEVEL)='8' THEN DIM_ORGANISATIE." Org_Level_8"
    END END END END END END END END END
    In the Column properties/Column Format tab for the dimension column I've disabled Column Heading Interaction but I've set Value Interaction to 'Drill'.
    When opening the report as Testuser5, the Dimension column shows the correct dimension object from that user: Org_Level_5. However when then clicking on the dimensionvalue, the next dimension displayed is Org_Level_8, instead of Org_level_6.
    Any suggestion on how to obtain the desired result?
    Thanks!
    Edited by: The_Dutchman on Oct 7, 2009 5:31 PM

    Check in the RPD in the BMM in the dimension wheater all levels have a key that is set to use for drill down. It seems that only Org_Level_8 (the last level, detail) has key - use for drill down checked. This allow columns on the level to be displayed when driiling from up level to the current one. So maybe this is a reason that you get only Org_Level_8 data when driiling from any level from the case statement.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Changing the dimension hierarchy level keys in RPD online mode caused issue

    Hi,
    We tried to correct the dimension hierarchy level keys and remove prefered drill path settings in the business model layer in RPD in online mode. However this caused all the reports and dashboards based off of this subject area to show incorrect, and/or restricted data. The physical query generated by the answers requests were also incorrect.
    Even restarting the server and presentation services could not resolve the issue. Can someone please help us to understand what could have caused this issue?
    Thanks in advance

    Hi,
    I am not sure why the existing reports throw an error when I change the RPD dimension hierarchy level keys. Does anyone know how I resolve this issue.
    This is urgent. Any help will be most appreciated.
    Thanks in advance.

  • " -- Failed consistency check for this level" when doing Estimate Levels

    Hello again,
    When you run "Estimate Levels" and you get "<-- Failed consistency check for this level"
    What does it really mean? Can this break, because of NULL values in logical keys? Or perhaps anything else? Thanks
    Thanks

    Thomas,
    since you've seen this before....did you have a problem doing "Estimate Levels" when you had measures in the hierarchy (usually they get there when you select a level for measure in its settings). I suspect the problem is in the measure - using FILTER function which references the dimension.
    Thanks

  • Limitation on Hierarchy levels

    Hi,
    I want to find out what is the limitation on number of Hierarchy levels (Custom Hierarchies) that can be created in BO Universe?
    And is this limitation oriented with the DB we connect?
    As I am using Netezza DB so I want to know the number of hierarchy levels that I can create for objects in  Netezza DB?

    We have a BEx query, having 9 product Hierarchy levels. When we are creating Universe, there is no issue. But when we do integrity check, getting a lot of parse errors and could not make the universe to work.
    Is there any limitation on number of herarchies to be supported from BEx query to Universe? Any OSS notes / Lessons learnt will be much appreciated. Please help urgently. Thanks.

  • Drill in BW hierarchy level in webi based on input control selection

    Hello Experts,
    I have a requirement in Webi. The Webi report is based on BW hierarchy and it is using hierarhcy both in the report output block and also in the report prompts. We are are BI 4.0 SP5,Patch 6. The report has input controls in it based on the BW Hierarchy. When the report is first executed,the user can drill down the hierarchy by clicking on the "+" nodes to the max level as shown in the screenshot below.
    Now, when the user selects an input control, the data gets filtered but the hierarchy level automatically expands. In other words, when they select a data hierarchy  showed in the input control the hierarchy in table is shown expanded and they want to see the  hierarchy in the table close automatically.
    So ideally its like this when a value from input control is selected.
    Whereas the user wants it to be like this automatically on selecting a particular value from the input control and not in expanded form.
    I'm aware of the Hierarchy depth function but that only takes us to a particular node based on depth and then doesn't allow further drilling after that.
    Is there any setting in webi/bex about always keeping all sub nodes closed to prevent this expansion on selection of input control?
    Thanks and regards,
    Abhishek

    Just did some research on on this and the SAP best practice: The question itself is logically incorrect.
    A report/table filter where there is a hierarchy may remove rows without respecting the hierarchy structure. For this reason, a filter can remove a parent node currently expanded and keep leaves or
      nodes collapsed. To avoid returning an empty table in this case the system automatically expands the hierarchy in the block to shows the resulting members
    Thats why it automoatically expands the hierarchy.
    Closing this thread. Thanks.

  • 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

  • How do I enlarge the "presenter notes" window when running my presentation on an external display?

    In the latest version of Keynote, the "Presenter Notes" window is a small horizontal field at the bottom of the presenter's computer screen.  Only 3-4 lines of text can be seen.  This means that when you have a few paragrahs of notes, you have to scroll through them as you are presenting.  This is very cumbersome.  In the previous version of Keynote you could change the relative size of the slides versus the "presenter's notes" boxes when running a presentation on an external display, but in the new version, I can't find a way of enlarging the "presenter's notes" field.
    Also, in the new version, the preview slide doesn't show the initial text on the next slide if that text emerges as a "dissolve in" build when you advance forward through your slides.  I always have the initial text on my slides automatically "dissolve in" after each slide transtion.  But in the new version of Keynote, when in presenter mode, I can't see any of the text on the "next slide."  This makes it difficult to anticipate what slide comes next . . . without going to the Navigator.  Does any one have a solution for this?
    Thank you.

    I figured it out with the help of a post from a few days ago.  Although posted for a different problem, I followed these steps from Cornelia-I and it worked like a charm:
    You can change the link of LR to the images from the network drive to your local drive, best done on parent folder level: right-click the highest folder in library left panel, and choose update storage location. In the opening dialog window point it to your internal folder.

  • Regd:hierarchy level query

    hi friends,
    i have a one employee table.
    empid mangid.
    1 0
    2 1
    3 2
    i wanted display hierarchy level of the employee like..
    wanna display uppper & lower mangid of employee.
    if suppose i pass empid=2
    then it should display hierarchy like...
    managerid
    0
    3
    because empid=2 parent of empid=3 and Chiledid of mangid=0.

    Hi,
    For this you have to use Connect by clause and Start with Class ,
    Using This we can get Hirarical Data.]
    SELECT empno,
    ename,
    job,
    mgr,
    hiredate
    FROM emp
    START WITH mgr IS NULL
    CONNECT BY PRIOR empno = mgr
    try like this
    Thanks,
    Sanjeev.

  • Identify hierarchy level

    hi experts
    i need to know in my report the hierarchy level on which user is currently on, like if he selects year/quarter/or month....
    how can i achieve this please help
    thanks and regards

    Hi Kart
    thanks for your reply.... i have tried it but i am getting dim_level column blank ....
    see the steps which i have followed:-
    1) i have created three views on top of my times view( which is being created using my main time dimension ), i have created join on d_year of my d_date_year_level to times_view.d_year, d_quarter to d_date_quarter_level, d_monthno to d_date_monthno_level
    2) after creating join in my physical layer with times_view... then i dragged all my three views to my fact table in BMM layer and removed all columns except dim_level.... in fact table source i created one inner join with time_view... in content tab i set the aggregation level to ltimes_view detail logical level.
    when i created report using year, dim_level, sales dim_level column is coming blank.
    could you please help me if i have missed any step or done something wrong..
    regards

Maybe you are looking for

  • Crawling is not working for one WebApllication

    Hi we have 1 WFE and 1APP server. we have aroud 10 We aplliaction.We configured search service application on APPLICATION server. Im facing some error while crawling for 2 web Aplliactions.Im getting  below error while crawling.I tried all possible w

  • MY keyboard is not working correctlY

    Hello, I suspect mY kids split a drink over mY macbook pro. MY keyboard has several issues: -When I type lower case Y, I onlY get uppercase Y. -When pressing the spacebar I get a space but its followed bY a closed square bracket. -When pressing enter

  • Automatic Start of "Services" in J2EE

    Hi, I'm a complete novice in J2EE and have some questions. I'm looking into using J2EE for supervising some "devices". They will send "heart-beat"s back to the J2EE server to tell their alive, and I need to take actions in the J2EE server if heartbea

  • Illustrator CS 3 - 3D problem - top color white, shadow spot color

    Hello, Is is possible to make my 3D square with the top in white color and the shadow in spot color? I can not do it myself. I am working on  this logo right now. Erwin

  • Email re-set up

    Hi, I broke my old blackberry and have recieved a replacement one. I have gone to set up my email address but it recognises me as an existing user and has asked for a username and password. I have no idea what these are and therefore cant set up an e