IF statement using parent of a parent as a filter

Hello,
I need to create an IF statement in a formula that uses a parent of a parent to filter the hierarchy.  Basically, if parent A = 'ABC' then all children / dependent nodes are excluded from a specific treatment.  Can someone please point me in the right direction?  Currently I am hard-coding level 1 parent names in the formula but since all parents are children of a single parent node, it would make more sense (and a better design) to utilize the ancestor parent node in a single filter.
Many thanks!

I have the following:
Parent A
           Parent AB
                Child 123
                Child 124
           Parent BC
                Child 125
           Parent CD
                Child 234
                Child 345
                Child 456
I want to exclude all of the level 0 (base level) children of Parent A from a concatenation.  Right now I am hard-coding Parent AB / Parent BC etc in the formula using a 'not(Equals(string, PropPropValue(Core.Abbrev), Parent AB) etc clause in the formula and,of course, it works.  I tried to remove the hard-coded values and replace the multiple clauses with not(equals(string.ParentPropValue(Core,Parent), Parent A) and it did not work.  Obviously I am missing something simple?  Assistance is greatly appreciated!

Similar Messages

  • Want to use parental controls to prevent myself from being able to be on certain websites, but i can't do so on my account because i'm the administrator and parental controls don't work with the administrator. How can i do this?

    go on certain websites, but i can't use parental controls on my account because i'm the administrator. How do i prevent access to websites?

    Thanks for the reply, BUT --- i can't fool myself. I can make all the other accounts i want, but i'll still be able to get into the admin account and therefore have access to the websites i don't want to have access to. Is there a way to block websites from ALL accounts?

  • Using Parent Currency in HS.Exp

    Hi All,
    I need to use the <Parent Currency> value member as a SOURCE in my calculation.
    I have defined the variable "strVSource = HS.Value.IsTransCur()" and then use that variable in the right-hand side of my HS.Exp calculation
    The resulting Value member is "False" and the consolidation aborts. When using <Parent Currency> as the destination, the same setup works fine.
    Hence I can write to <Parent Currency>, but not read from <Parent Currency>...is that correct?
    Thanks

    When you want <Parent Currency> as your source value member, in which member are you as the target? That is, if you have a value condition that says
    If HS.Value.IsTransCur() = True Then
    Hs.Exp "A#xxx = A#ooo"
    End If
    This implicitly means the source is also the same value member you are in. I will add that this doesn't have to mean you are in <Parent Currency> but instead means that translation has taken place: that the source and target currencies are different. In other words, if you have a child in EUR and a parent in USD, the function HS.Value.IsTransCur() = True will be True not only for the parent currency "USD" but if the user translates the EUR base entity into GBP, the function will ALSO return True. So, if you are in [Proportion] for example, and want to read from <Parent Currency> you should use the ACTUAL currency of the source value member such as "GBP Total", and this should get what you want.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Reporting of Child Routed Calls Using Parent TCD table

                       The TCD records of Parent do not show RoutID, ServiceSkillTargetID filed for calls routed by Child ucce. The Calltype ID filed shows "-1" for all such records. The dbo Service Table in parent is correctly populated and contains all child calltypes as peripheral number and mapped to ServiceSkillTargetID.
    But still the TCD records on parent show routeid and serviceskilltargetid as blank for all calls that are routed by Child... any suggestions to fix this.
    My requirement is:- There are around 7 calltypes on child that terminate on a particular skillgroup. I want to report call meterics for any 5 of them and that too by using Parent system and not Child. I am not able to differentiate the calls as serviceskilltargetid field or routeid field is not populated.

    Hi Navjit,
    Is it a typical Parent-Child Call Flow ?
    Are you open to saving some information in call peripheral variable which can help in corelating call between parent & child ?

  • How to use Parental Contro; on Yosemite ?

    I want use parental control for the first time on new install Yosemite. How to do it. help is not available ?

    Re: How to use Parental Controls and Homework Time
    How do I set up different levels of protection for the computers of different aged children?

  • FSG Reports using Parent/Child relationships

    All,
    We have recently progressed to using Parent and Child values with our Cost Centres (segment1) and we now are looking at the use of these with FSG Reports.
    Is it possible, or has anyone got any experience with using, an FSG report which picks up the Parent Value description without the need for manually typing it into Row Sets when totalling all the child values (inc child value descriptions).
    Any advice would be appreciated.
    Regards,
    Gary Lythgoe

    Hi Gary,
    Account assignments level we are selecting Accounts whether it is parent or child, but not at row line level, there is no builtin functionality as per your request.
    Regards
    Prasanth

  • Calling drill through report using parent child hierarchy

    Hi,
    I am using Parent/child hierarachy and I want to open a report using drill through on that hierarchy, whenever i click on column it opens the report but showing whole data. It is not restricing the data.Please tell how can i prompt a heierachial column or parent child column at detail level.
    Another issue i am facing is after clicking on + sign at the child column acton link is not working.
    Please reply on that issue.
    Edited by: HZ on Aug 15, 2012 12:15 AM

    Refer to:
    http://www.rittmanmead.com/2010/07/obiee-11gr1-support-for-ragged-skip-level-value-based-hierarchies/
    This should give you an idea.

  • BlendModes of parent overriding children, but need to use parenting. Help!

    This is an age-old question, I know. But I am working on my first large-scale 3D flash project, which requires me (at least with the knowledge that I have) to do a lot of movieclip parenting in order to make it easy to move and rotate a large number of objects in 3D together, and around common anchor points. But the problem with this of course is that you can't have individual or different blendModes of movieclips with one or several parents. So what is my solution? I need independent blendModes, but I also need to use parents/children unless there is another way in Flash to animate a large number of movieclips around as if they were grouped together (obviously myMC.x = myOtherMC.x + 20; is not hard, my concern is having two movieclips rotate around a common point).
    So my question is this. How can I have independent blendModes and be able to easily animate objects in 3D? I've searched and searched and found nothing beyond "Well don't use parents then if you need blendingModes." I have to not be the only person the planet with this problem. What's the solution? Either there is a way to force or pass-through blendModes of children, or there is a way to animate a number of movieclips together without parenting them to something (the easiest way).
    Thanks!

    William,
    Many thanks for your response! First, let me say that I've watched many of your instructional videos. They've been incredibly helpful and I'm grateful you've made them available!
    Second, that pretty much is my set up! I've taken some screen shots... maybe there is another way or I am missing something obvious.
    This is how I want it to look when the user clicks the main help icon:
    They click on Advising or Events Management and get a list of all the documentation available:
    The two topics above are in my Parent project: EXi Help Hub
    which has Introduction.htm as its start page and default topic (similar to Index.htm)
    I created the link to the child project by highlighting Basic Features Online Help, right-clicking, and selecting add a hyperlink, then using the file browser,
    Browsed to the child project (CM) and selected its start page and default topic, which is also Introduction.htm (similar to your example above only we use just introduction as opposed to index, but if changing the name to index will remedy the issue, I'll do it in a heartbeat))
    After compiling it didn't make the path relative. So I updated it to .../CM/Introduction.htm
    Still didn't work...
    What am I missing? Is there a better way to accomplish this? We'll need separate projects for each software component and our product is being designed for responsive design so the help needs to be as well. Part of the reason we went with the RH11 upgrade.
    Again, many kind thanks for your time and help!!!
    Scottie "is my help pie in the sky" Gearing

  • Using parental control I get asked to authorise several dropbox addresses. Are these safe?

    using parental control I get asked to authorise several dropbox accounts. I only occasionally use dropbox and wonder why it asks to authorise - is this safe?

    using parental control I get asked to authorise several dropbox accounts. I only occasionally use dropbox and wonder why it asks to authorise - is this safe?

  • Can i use parental controls restrictions alone or should i purchase 3rd party software

    Can I use parental control restrictions alone or should I purchase 3rd party software?

    There isn't much 3rd party software can do in the way of parental controls on the iPhone due to the way apps are sandboxed.

  • Why we use Parent  parent adjs parent total in Value dimension in HFM

    Hi Experts
    Can any one plz give me an explanation for Why we use Parent, parent adjs and Parent total in Value dimension in HFM?
    regards
    Smilee

    Hi,
    As a quick answer, when you post a journal adjustment to <Parent Curr Adjs>, this adjustments affects all parent entities. In the contrary, if you post a journal adjustment to [Parent Adjs] then you must also select which of the parent entities should be affected by the journal (while all other parents will not be affected). In order for this discussion to be relevant, you must have your entity shared under multiple parents. If you have it under a single parent then this does not apply. Note that in order for this to work you must have AllowAdjFromChildren enabled

  • Can I buy final pro using a Mac in one State and then install it in other State using another Mac?

    Can I buy final cut pro x , using  my mac and then install it in other State using another Mac?

    Yes, as long as both Macs meet the system requirements for it.
    (112783)

  • Write an UPdate statement using the logic used in PL/SQL block (oracle 10g)

    Hi All,
    I have written the following PL/SQL block. I want to write an UPDATE statement using the logic used in the following PL/SQL block. can any one please help me out in this regards.
    DECLARE
       v_hoov_fag   gor_gold_post.hoov_flg%TYPE;
       v_b49n          gor_gold_post.b49n%TYPE;
       CURSOR c
       IS
          SELECT bs_id, loyalty_date, loyalty_period, contract_date
            FROM gor_gold_post
           WHERE tariff_code IN (169, 135, 136);
    BEGIN
       FOR rec IN c
       LOOP
          IF    (TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
                        - SYSDATE) < 304
             OR (    TRUNC (  ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
                            - SYSDATE
                           ) IS NULL
                 AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2
          THEN
             v_hoov_flg := 1;
          ELSE
             v_hoover_flag := 99;
          END IF;
          IF    (TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
                        - SYSDATE) < 121.6
             OR (    TRUNC (  ADD_MONTHS (rec.loyalty_date, rec.loyalty_period)
                            - SYSDATE
                           ) IS NULL
                 AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2
          THEN
             v_b49n := 1;
          ELSE
             v_b49n := 99;
          END IF;
          UPDATE gor_gold_post
             SET hoov_flg = v_hoov_flg,
                 b49n = v_b49n
           WHERE bs_id = rec.bs_id AND tariff_code IN (169, 135, 136);
          COMMIT;
       END LOOP;
    END;Thank you,

    Using case statement.
    UPDATE gor_gold_post
       SET hoov_flag = CASE WHEN TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) < 304
                                   OR
                                   (TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) IS NULL
                                AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2)
                           THEN 1
                           ELSE 99
                         END,
           b49n      = CASE WHEN TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) < 121.6
                             OR
                             (TRUNC (ADD_MONTHS (rec.loyalty_date, rec.loyalty_period) - SYSDATE) IS NULL
                                AND (SYSDATE - TO_DATE (rec.contract_date, 'YYYYMMDD')) > 91.2)
                           THEN 1
                           ELSE 99
                         END
    WHERE tariff_code IN (169, 135, 136);Note: Code not tested.

  • Import statement using DATA BUFFER

    Hi All,
    I am using RFC enabled FM using STARTING NEW TASK, We cannot import data from FM back to the program when we use this statement. So I am exporting data into DATA BUFFER in the FM and trying to import data in the main program. Can you please tell me how can I import data from SHARED MEMORY, Below is my code.
    call function 'YPMLR_SITEBAL_DETAILS'
        starting new task 'ID'
        exporting
          s_cyl       = s_cyl-low
          s_lifnr     = s_lifnr-low
          s_lstyp     = s_lstyp-low
        tables
          s_zlocn     = lt_zlocn
          gt_zmlr_mld = gt_zmlr_mld
          gt_zmlr_lp  = gt_zmlr_lp
          gt_zmlr_mlp = gt_zmlr_mlp
          gt_zmc_loc  = gt_zmc_loc.
    "IMPORT e_rand_no TO e_rand_no from MEMORY ID 'RAND'.
    Here is the export statement used in FM,
    EXPORT e_rand_no FROM e_rand_no  TO DATA BUFFER XSTR.

    Hi,
    Check this link for Export to database instead of memory..
    http://help.sap.com/abapdocu/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm
    Import from database instead of memory
    http://help.sap.com/abapdocu/en/ABAPIMPORT_MEDIUM.htm

  • Converting a delete statement using VPD policies and context

    Hello,
    I'm trying to convert a delete statement in a update statement using VPD policies and context.
    +/* Supose the user 'user1' already exists. This is an application user */+
    conn user1/pwd
    create table user1.test_a (
    id                number(4),
    description       varchar2(100),
    deleted           number(1)
    +);+
    alter table user1.test_a add constraint test_a_pk primary key (id);
    insert into user1.test_a (1, 'abc', 0);
    insert into user1.test_a (2, 'def', 0);
    commit;
    I'd like to convert each physical deletion into a logical deletion: statements like "delete from user1.test_a where id = 1" must be converted into "update user1.test_a set deleted = 1 where id = 1".
    I've found the following way: I will create a policy to avoid physical deletion. Additionally, the policy function should update the deletion flag too.
    conn user1/pwd
    +/* Create context package */+
    create or replace package user1.pkg_security_context is
    procedure p_set_ctx(
    i_test_a_id      in   user1.test_a.id   %type
    +);+
    end;
    +/+
    create or replace package body user1.pkg_security_context is
    procedure p_set_ctx (
    i_test_a_id      in   user1.test_a.id   %type
    +) is+
    begin
    dbms_session.set_context( 'user1_ctx', 'test_a_id', i_test_a_id );
    end;
    end;
    +/+
    show errors
    +/* Create trigger to set the context before deletion */+
    create or replace trigger user1.test_a_bef_trg
    before delete on user1.test_a
    for each row
    declare
    pragma autonomous_transaction;
    begin
    -- only commits the preceding update, not the delete that fired the trigger.
    commit;
    user1.pkg_security_context.p_set_ctx( :old.id );
    end;
    +/+
    show errors
    create context user1_ctx using user1.pkg_security_context;
    +/* Policy function */+
    create or replace function user1.f_policy_chk_dels (
    object_schema in   varchar2,
    object_name   in   varchar2
    +) return varchar2+
    is
    out_string                 varchar2(400)   default '1=2 ';
    +/*+
    * out_string is the return value.
    *  - 'WHERE 1=2' means 'nothing to access'
    begin
    if ( loc_logged_usr_authorized > 0 ) then
    +/*+
    * Set the flag deleted to 1
    update user1.test_a set deleted = 1 where id = sys_context( 'user1_ctx', 'test_a_id' );
    out_string := out_string || 'or 1=1 ';
    end if;
    return out_string;
    end;
    +/+
    show errors
    +/*+
    * Create policy
    begin
    dbms_rls.add_policy(
    object_schema   => 'user1'                   ,
    object_name     => 'test_a'                  ,
    policy_name     => 'policy_chk_dels'         ,
    function_schema => 'user1'                   , -- function schema
    policy_function => 'f_policy_chk_dels'       , -- policy function
    statement_types => 'DELETE'
    +);+
    end;
    +/+
    When I try to delete a record of the table test_a:
    conn user1/pwd
    SQL> delete from ilogdia.oplsimulaciones sim       where sim.id = 9999;
    +0 rows deleted+
    No rows has been deleted, but the update stmt does not work. That means, the "deleted" flag has not been updated.
    Any ideas?
    Thank you in advance.
    Marco A. Serrano
    Edited by: albrotar on Oct 15, 2012 8:42 AM
    Edited by: albrotar on Oct 15, 2012 8:42 AM
    Edited by: albrotar on Oct 15, 2012 8:43 AM

    The policy function is applied once per statement execution. The policy function executes first and the UPDATE statement, presumably, updates no rows because the context is not yet populated. The row-level populates the context (I'm assuming that your session can even see context values populated by an autonomous transaction-- I would guess it could but I'd have to test that) after the UPDATE statement is already complete. The COMMIT in the row-level trigger is also pointless-- it only applies to changes made by the current autonomous transaction, of which there are none-- it cannot apply to changes made in other autonomous transactions. Declaring the row-level trigger to use autonomous transactions doesn't seem to accomplish anything other than to open the question of whether the values set in the context by the autonomous transaction are visible in the caller's transaction.
    Even if this, somehow, did work, using autonomous transactions would be a very bad idea since Oracle is free to roll-back a partially executed statement (and the work done by its triggers) and re-execute it. Oracle does that with some regularity to maintain write consistency.
    Justin

Maybe you are looking for