Avg of accounts(parent member)

HI friends,
I have product dim(in row), time(in col), qty/rate/amout(act dim member ids in col).
Product    jan2010(qty) jan2010(rate) jan2010(amount).......dec 2010(amount)
p1        30 5  150
p2        10  5 50 ..
p3        20 5  100 ..
written script logic for each month wise, getting amount for p2 and p3.
P2 amount = P2 qty * p2 rate
P3 amount = p3 qty * p3 rate
Here p1 is parent of p2 & p3.
P1 qty should be summation of p2 qty & p3 qty.
P1 rate should be avg of p2 rate & p3 rate.
P1 amount should be summation p2 amount & p3 amount.
By default P1 qty, p1 rate & p1 amount are aggregated up. But i want p1 rate as avg of p2 rate & p3 rate.
Can it possilble by scipt logic or i have to simple excel for p1 rate calculation?
Thanks,

Hi Naresh,
You can try using some logic like
IIF([ACCOUNT].CURRENTMEMBER.PROPERTIES("ID")="RATE", ([PRODUCT].[p2]+[PRODUCT].[p3])/2 , [PRODUCT].[p2]+[PRODUCT].[p3])
in the formula property of product dimension.
Hope it helps.
Regards,
Shoba

Similar Messages

  • Lookup on values (parent member) of other model

    Hi everybody,
    I have to get a value from one model within my application to save it in another model.
    I tried to use the Lookup functionility of BPC but this doesn't work. I'm allways getting Zeros when I run the script.
    Here is the code I used:
    *LOOKUP MODELA
    *DIM DATASRC = DS.TOTAL //Parent member
    *DIM COMPANY = CO.2000 //Basemember
    *DIM CURRENCY = USD //Basemember
    *DIM MAC: A_ACCOUNT = A.N001  //Parent member
    *ENDLOOKUP
    *LOOKUP MODELB
    *DIM MBC: COMPANY = CO.2000 //Basemember
    *DIM MBC: CURRENCY = USD //Basemember
    *DIM MBC: DATASRC = DS.TOTAL //Parent member
    *DIM MBC: B_ACCOUNT = B.N001 //Parent member
    *DIM MBC: RANK = RA.N001 //Parent member
    *DIM MBC: NATIONALITY = NA.N001 //Parent member
    *ENDLOOKUP
    *SELECT(%CPTLF%,ID,CATEGORY,RUN_LOGIC = Y AND CALC = N)
    *SELECT(%CPTPC%,ID,PROFIT_CENTRE,CALC = N)
    *SELECT(%CPTFC%,ID,TIME,ACT_FOR = F AND LEVEL = MONTH AND CALC = N)
    *XDIM_MEMBERSET A_ACCOUNT = A.1M406 //Specific Account
    *XDIM_MEMBERSET PROFIT_CENTRE = %CPTPC%
    *XDIM_MEMBERSET CATEGORY = %CPTLF%
    *XDIM_MEMBERSET TIME = %CPTFC%
    *XDIM_MEMBERSET COMPANY = CO.NA
    *XDIM_MEMBERSET CURRENCY = USD
    *XDIM_MEMBERSET DATASRC = CALC
    *WHEN A_ACCOUNT
    *IS A.1M406
    *BEGIN
    *REC(FACTOR = -(LOOKUP(MAC)+LOOKUP(MBC)),
    DATASRC = CALC,A_ACCOUNT = A.10002,COMPANY = CO.2000)
    *END
    *ENDWHEN
    When I run this script out of Model A everything seems to be working. But the Problem is that the lookup values for Model B are allways Zero. The strange thing is that this code worked last year correctly. This year the script doesn't calculates correctly. The difference is that we did a patch Level upgrade.
    Regards
    Derk

    Hi Derk,
    Now it's clear!
    First of all - you script is executed in OPERATIONS - then first LOOKUP is better to replace with tuples! Like:
    *LOOKUP MANNING
    *DIM CPT: COMPANY = CO.2700
    *DIM CPT: CURRENCY = USD
    *DIM CPT: DATASRC = DS.TOTAL
    *DIM CPT: MA_ACCOUNT = MA.N001
    *DIM CPT: RANK = RA.N001
    *DIM CPT: NATIONALITY = NA.N001
    *ENDLOOKUP
    *SELECT(%CPTLF%,ID,CATEGORY,RUN_LOGIC = Y AND CALC = N)
    *SELECT(%CPTPC%,ID,PROFIT_CENTRE,CALC = N)
    *SELECT(%CPTFC%,ID,TIME,ACT_FOR = F AND LEVEL = MONTH AND CALC = N)
    *XDIM_MEMBERSET OP_ACCOUNT = OP.1M406 //Cost Pass Thru Income Type
    *XDIM_MEMBERSET PROFIT_CENTRE = %CPTPC%
    *XDIM_MEMBERSET CATEGORY = %CPTLF%
    *XDIM_MEMBERSET TIME = %CPTFC%
    *XDIM_MEMBERSET COMPANY = CO.NA
    *XDIM_MEMBERSET CURRENCY = USD
    *XDIM_MEMBERSET DATASRC = CALC
    *WHEN OP_ACCOUNT
    *IS *    //already scoped to OP.1M406
    *REC(FACTOR = -(([OP_ACCOUNT].[OP.N006],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+([OP_ACCOUNT].[OP.N011],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+([OP_ACCOUNT].[OP.N014],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+([OP_ACCOUNT].[OP.N034],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+([OP_ACCOUNT].[OP.N035],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+LOOKUP(CPT)),DATASRC = CALC,OP_ACCOUNT = OP.10002,COMPANY = CO.2700)
    *ENDWHEN
    Also it's necessary to understand which values can be missing in the cube... then different logic may be required!
    Vadim

  • How to aggregate until parent member?

    Hello all,<BR><BR>How to calculate the parent member of the current member?<BR><BR>Background: I want to offer users a limited dimension aggregation option. This to reduce the calculation time. Users are most interested in calculation of the level just above the input level. Therefore, I want to create the possibility to calculate the parent of the current member which is given with a prompt in Business Rules. <BR><BR>I have been exploring the possibility of @PARENT or @ANCESTOR but I could not find a possibility (since I can not use them in a Fix statement).<BR><BR>Do you see a possibility here?<BR><BR>Philip Hulsebosch<BR>Trexco<BR><BR><BR>

    We perform YTD calculations via member formulas in our Period (time) dimension as follows.
    P01YTD
    "P01";
    P02YTD
    IF(@ISDESC("Headcount") OR @ISMBR("Exchange Rate"))
    @AVG(SKIPNONE,"P01":"P02");
    ELSEIF(@ISACCTYPE(FIRST))
    "P01";
    ELSEIF(@ISACCTYPE(LAST))
    "P02";
    ELSE
    @SUM("P01":"P02");
    ENDIF
    (same logic used for P03YTD thru P11YTD)
    and finally, P12YTD is simply
    "Full Year";
    Retrieve performance isn't great on monster spreadsheets, but otherwise it works reasonably well.
    Hope this helps.

  • How to copy data from parent member to children members?

    Hello,
    I'm entering data on a parent level in a form, and I'm running a rule to copy the data to the below children of the selected member.
    It's running, but it's taking very long time. As I'm writing a normal member range having the children, and inside the script its having an equation of account=account->parent.
    I know that the system template is very fast, but it copies only to one member. Can we use this copy template or any similar fast way to copy from each parent to the below children ?
    Thank you.

    Here below the script, it was working in 3 seconds before adding the copying to the "DIMX" dimension, although the parent i selected in the form contains only 7 children, so I don't know why it made things harder.. so, that's why I'm thinking of using something like the copy template or something.
    The commands in the standard set used are:
    SET LCOKBLOCK HIGH;
    SET CACHE HIGH;
    SET UPDATECALC OFF;
    SET CLEARUPDATESTATUS OFF;
    SET CALCPARALLEL 3;
    SET AGGMISSING ON;
    SET CREATENONMISSINGBLK ON;
    %Script(name:="Standard Set Commands",application:="PRJ",plantype:="Plan1")
    FIX
    (/*DIM:Account*/"601010002","601010003","601010004","601010005","601010006","601010007","601010010","601010011","601010012","601010013","601010014","601010015","601010017","601010018","601010019","601010020","601010021","601020003","601020004","601020005","601030001","601030002","601030004","601030005","601030006","601030007","601030008","601030009","601030010","601030011","601030012","601010003","601010016","601030003",/*DIM:Entity*/@Relative({RTP_Entity},0),/*DIM:Currency*/"AED",/*DIM:DIMX*/@Relative({RTP_DIMX},0),/*DIM:Dim_Custom*/"DIM_7001")
    FIX ( /*DIM:Periods*/&V_First_Forecast:&V_Last_Forecast,/*DIM:Years*/&V_CURRENT_YEAR, /*DIM:Scenario*/"Forecast")
    /*STARTCOMPONENT:SCRIPT*/
    Version
    &V_WORKING_VERSION = &V_TARGET_VERSION->{RTP_Entity}->{RTP_DIMX};
    /*ENDCOMPONENT*/
    ENDFIX
    FIX ( /*DIM:Periods*/&V_First_Budget:&V_Last_Budget,/*DIM:Years*/&V_BUDGET_YEAR, /*DIM:Scenario*/"Budget")
    /*STARTCOMPONENT:SCRIPT*/
    Version
    &V_WORKING_VERSION = &V_TARGET_VERSION->{RTP_Entity}->{RTP_DIMX};
    /*ENDCOMPONENT*/
    ENDFIX
    ENDFIX
    Awaiting your feedback.
    Thank you.
    Edited by: user7304950 on Sep 14, 2012 7:41 AM

  • Cannot clear contents of an accounts dimension member

    Hello.I am trying to clear some data that was calculated - because our calculation script currently isn't correct, and the result is misleading.I need to clear the data associated with an accounts dimension member.I tried "CLEARDATA mymbr;", "CLEARDATA Actual->mymbr;", "FIX(@IDESCENDANTS(Units)) CLEARDATA mymbr; ENDFIX", ""FIX(mymbr) CLEARDATA Actual; ENDFIX", but none works.The outline is as follows :Acc - Accounts, denseMonths - Time, dense, Dynamic calc, #MissingCum - Dense, Dynamic calc, #MissingYear - Sparse, Dynamic calc, #MissingScenario - sparseUnits - sparseA - sparseB - Sparse, dynamic calcAnd some more, which are sparse (and some dynamic calc).The member I'm trying to clear has a dynamic calc parent and is a two pass calc member, with an associated calculation formula.Any idea why I can't clear the data ?Thanks.

    Thank you for your suggestion. But I doubt it would have solved my problem.The CLEARDATA did remove the values, but I had to switch the dynamic sparse dimensions to "store" to achieve my result.Thanks for your help :-)

  • Parent member values in Fact tables

    Hello,
    I want to understand something, as far as I know, we can only send data to base level members, right ?
    Then how come we find rows of data that have parent member values in the Fact tables ? (assuming we do not play manually with the database of course), I thought that this can be due to an import with the data manager, can this be right ?

    nilanjan chatterjee wrote:
    Hi,
    >
    > The data for the parent members should be available in the SQL tables.
    > For example, 2011.TOTAL is parent member. You should not have any data for this member in your database. If it is there, it might have come somehow (may be an import). But this is not right. You might want to remove these records. But be sure that you dont delete the records for the base level members.
    >
    > Hope this helps.
    I guess you meant should not, right ?

  • How can I create a dimension member formulas involving parent member?

    Hi everyone,
    I'm trying to learn BPC- Planning and I've got the following issue:
    Behind each key figure is a calculated formula which will not be calculated in the aggregated parent member ( Energie Kosten). It's a IF formula based on percentage. As far as I understood it's not possible in BPC NW 10.  to store values at parent level and parent member doesn't aggreagte child values that are calculated members. What can I do to solve the problem? The only solution will be the logic scripts?
    Any input is appreciated.
    Thank you!

    Hi Vadim,
    thank your for your answear.
    Here it's my formula:
    IIF([KENNZAHL].[S_PSTROM] = 0 , [KENNZAHL].[E_PSTROM] ,[KENNZAHL].[S_PSTROM] * ([KENNZAHL].[BELGES] *[KENNZAHL].[TAGEMON] ))
    where: S_PSTROM = percentage key figure
             E_PSTROM =  manual input key figure
             BELGES = allocation
             TAGEMON= days per month
    The formula is used to calculate the energy. If there are adjustments used then will be calculated using the percentage if there are no adjustment needed that should take automatically the manually entered values.
    It's used only a hierarchy- PARENTH1. And only the dimension without calculated members are calculated in nodes.
    Thank you a lot!

  • ITunes account parental control preferences could not be unlocked b/c my username is not authenticated.  any advice?

    iTunes account parental control preferences could not be unlocked b/c my username is not authenticated.  any advice?

    Post this in the iTunes forum since this is an issue related to iTunes and not an iPod Classic.
    https://discussions.apple.com/community/itunes
    B-rock

  • Error "Parent Member is found in dimension from selection"

    Hi,
    while running the export transaction data package we are getting the error " Parent Member is found in Dimension from selection".
    We cannot manually select each member as there are around 64K records which will have to manually selected. Is there a work around for the same?
    Regards
    Varun

    Hi Varun,
    The first thing is that if you are using the standard export DM package, then you should not be able to select any parent members. If you look at the advanced script of this package, the first statement will be SELECTINPUT. This will restrict the selection only to base level members. Technically, you should not select the parent members, because, the parent lelve members doesnt hold any data.
    Hope this helps.

  • How to write parent member (TOTAL) to basemember?

    Hi experts!
    This code doesn't work. Why? Task is - write "TOTAL" member to another member.
    *XDIM_MEMBERSET CATEGORY=ACTUAL
    *XDIM_MEMBERSET MEASURES=PERIODIC
    *XDIM_MEMBERSET RPTCURRENCY=USD
    //KBO1000000 is parent node,ZCX1000000 is basemember
    *XDIM_MEMBERSET KB_ACCT=KBO1000000,ZCX1000000
    //TOTAL MEMBERS G100,E100 are parent nodes,EMPTY are basemembers which not included to G100 or E100
    *XDIM_MEMBERSET P_CC=BAS(G100),EMPTY
    *XDIM_MEMBERSET P_ENTITY=BAS(E100),EMPTY
    *XDIM_MEMBERSET P_TIME=2010.JAN.01
    *WHEN P_TIME
    *IS 2010.JAN.01
    *WHEN CATEGORY
    *IS ACTUAL
    *WHEN P_ENTITY
    *IS E100
    *WHEN P_CC
    *IS G100
    *WHEN KB_ACCT
    *IS KBO1000000
    *REC(EXPRESSION=%value%,KB_ACCT=ZCX1000000,P_TIME=2010.JAN.01,P_ENTITY=EMPTY,P_CC=EMPTY)
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *COMMIT

    Tuple expression is used to write parent member to base member. try below code.
    *XDIM_MEMBERSET CATEGORY=ACTUAL
    *XDIM_MEMBERSET MEASURES=PERIODIC
    *XDIM_MEMBERSET RPTCURRENCY=USD
    //KBO1000000 is parent node,ZCX1000000 is basemember
    //*XDIM_MEMBERSET KB_ACCT=KBO1000000,ZCX1000000
    *XDIM_MEMBERSET KB_ACCT=ZCX1000000
    //TOTAL MEMBERS G100,E100 are parent nodes,EMPTY are basemembers which not included to G100 or E100
    //*XDIM_MEMBERSET P_CC=BAS(G100),EMPTY
    //*XDIM_MEMBERSET P_ENTITY=BAS(E100),EMPTY
    *XDIM_MEMBERSET P_CC=EMPTY
    *XDIM_MEMBERSET P_ENTITY=EMPTY
    *XDIM_MEMBERSET P_TIME=2010.JAN.01
    *WHEN_REF_DATA=MASTER_DATA
    *WHEN KB_ACCT
    *IS ZCX1000000
    *REC(EXPRESSION= ([KB_ACCT].[KBO1000000],[P_ENTITY].[E100],[P_CC].[G100]),P_ENTITY=EMPTY,P_CC=EMPTY)
    *ENDWHEN
    *COMMIT

  • Selecting a shared structure parent member

    Good day,
    With a calcscript im trying to select the parent member of a shared structure using commands @SANCESTVAL or @SPARENTVAL, however it works correctly for the 1st shared structure and it dosent work for the 2nd shared structure i have in the OTL. Does somebody knows if this is an expected behavior? Or a workaround?
    Kind Regards,
    P.d I can´t move the shared structures order, since i also have that type of calculations for the 1st structure.
    P.d.2. I have essbase ver 11.1.1.3
    Edited by: user618861 on Aug 30, 2010 1:53 AM

    Hi,
    We found the solution, we where doing something wrong, i will explain so this helps to somebody else.
    I have 1 dimension "Products" with 3 Childrens; "Total_Product", "Brand_Segment", "Total_SupplyPoint", where the store structure is "Total_Product" and the others are shared structures.
    We were trying to select Level 1 members of the "Total_Supply Point" with the following Script.
    FIX(&Load_Mth, &Load_Year,&Load_Scenario, "Working", @REMOVE(@RELATIVE("Total_SupplyPoint",0), @LIST("SRC_KK01", "SRC_PMB3", "SRC_SF02")), "NA_Customer","YTD_Input")
    "CM_YearEndBonus" = ("CM_COGS_Allocation" / @SANCESTVAL("Products", -1, "CM_COGS_Allocation")) * @SANCESTVAL("Products", -1, "CM_YearEndBonus");
    ENDFIX
    The correct calculations is as follows, where the only change is for SANCESTVAL Instead of "Products" know we have "Total_SupplyPoint"
    FIX(&Load_Mth, &Load_Year,&Load_Scenario, "Working", @REMOVE(@RELATIVE("Total_SupplyPoint",0), @LIST("SRC_KK01", "SRC_PMB3", "SRC_SF02")), "NA_Customer","YTD_Input")
    "CM_YearEndBonus" = ("CM_COGS_Allocation" / @SANCESTVAL("Total_SupplyPoint", -1, "CM_COGS_Allocation")) * @SANCESTVAL("Total_SupplyPoint", -1, "CM_YearEndBonus");
    ENDFIX
    The literature saids,
    @SANCESTVAL (rootMbr,genLevNum [, mbrName])
    Where rootMbr: Defines a member that is used to search for the nearest occurrence of an ancestor of a shared member.
    I hope is helpful for somebody else
    Edited by: Pavel Moreno on Aug 30, 2010 9:10 AM
    Edited by: Pavel Moreno on Aug 30, 2010 9:11 AM

  • GET 1 parent member

    Hi expert,
    in my script:
    *XDim_Memberset Product = <ALL>
    This will scan all of my children product only when i use  WHEN/ENDWHEN...
    but now i want include 1 parent member call : PD_SHEET  only one !!
    I dunt want use: *CALC_DUMMY_ORG Product=PARENTH1
    because this will make my system scan all the parent member ..and i have 100++ parent member..
    is there any idea??

    Hi Chiam,
      Since you're quite certain you only wanted to grab the value of 1 particular parent, i.e. PD_SHEET, i suggest that you hardcode the filtering of the PD_SHEET's children. I assume the necessary *SELECT and *XDIM_MEMBERSET statements have been done accordingly.
      For example, assuming the children of PD_SHEET are:
    1. PD_SHEET_Child1
    2. PD_SHEET_Child2
    3. PD_SHEET_Child3
      Then in your script logic, you can do the following:
    *WHEN PD_SHEET.ID
    *IS "PD_SHEET_CHILD1","PD_SHEET_CHILD2","PD_SHEET_CHILD3"
      *REC(EXPRESSION=%VALUE%  ......)
    *ENDWHEN
      I believed you can also do the following:
    *WHEN PRODUCT.PARENTH1
    *IS "PD_SHEET"
      *REC(EXPRESSION+%VALUE%......)
    *ENDWHEN
      You'll have to experiment with the last one, since the property PARENTH1 doesn't work with in some aspects of BPC, for example "Insert Member" in BPC Excel the last i checked, but in anycase the first logic though appearing clumsier, should work.
    Cheers,
    Lip Chean

  • Account parent/child - easy way to see the children?

    We're making extensive use of Account parent/child relationships. When you are viewing an Account, it is very easy to see the parent Account. Navigating to the parent is very easy. Users are requesting an Account related list that shows the children Accounts and the ability to easily navigate to a child Account. Is this capability possible?
    Regards,
    Jeff

    Jeff, when you are in the detailed view of a parent account there is a subobject called "Sub Accounts" which show all the child accounts for that parent.

  • Remove existing (Account) Team Member

    Hi Gurus,
    There are about 500 Account records where we want to purge or remove old Account team member (Account > Account related information section > Account Team), and replace them with new Account team members. Is it possible to remove existing team members in one shot? (We were told this can be acheived via Web Services And unfortunately, we dont have Web Services team supporting us.)
    Thanks in advance!!!
    NM
    Edited by: NMalack on Aug 28, 2012 11:35 PM

    LSC-Anne is the behavior limited to only your colleagues account or do other accounts face the same difficulty?

  • Hello.  I just bought my first Imac.  Each family member has created an account.  My question is: can each account/family member create their own imesssages, so that each family member can imessage privately?

    Hello.  I just bought my first Imac.  Each family member has created an account.  My question is: can each person use imessages privately when logged into their account?  instead of everyone seeing everyones imessages?  is there a way to do this?

    I believe the short answer tot that is "yes" however I recommend you contact AppleCare to find out You have 90 days of free AppleCare telephone support when you buy any new Mac. This is the ideal time to begin using it. I'd also recommend that you purchase AppleCare, it will extend your 1 year warranty to 3 years and offer you 3 years of telephone support in addition to other services. You can locate the correct phone number in your part of the planet (Calgary, Canada??) by clicking Contact Apple for support and service

Maybe you are looking for

  • NOKIA N8, Belle points, PROFILE , timing !

    How come that you cant time your profile change on the homescreen !  Instead you have to go to settings and so on ! ! This is a fantastic option, but should be quicker to access ! !

  • Line after  text in smartforms display

    Hi , Issue 1: I want to display a line after a text. Ex: Name _______________________________________ I am unable to display the line till the end of the page. When I save and activate, the line gets shortned itself as below.      Name ______________

  • Photoshop Elements 12 - Dropdown Menu Problem -flickers and will not stay descended to allow choice

    Photoshop Elements 12 - OS Windows 8 While PE12 Editor loads without a problem, whenever I try to select an action from the dropdown menus - File, Edit, Filters, etc - the dropdowns flicker and disappear before I can make a choice to New, Open, or Sa

  • RAID almost full, what are my options

    Hi we have a xserve RAID 5.6TB with 14 x 400Gb drives, set up as RAID 50. We are now getting to the stage where the RAID is getting quite full and need to start planning how we deal with this with the minimum disruption and cost, what are our options

  • BusinessObjects Enterprise Planning Guide

    Hi there, Can anybody tell me where I can find the "BusinessObjects Enterprise Planning Guide" which is referenced in the BOBJ Edge Series 3.1 installation guide on pages: 14, 15, 16 and 24. https://websmp104.sap-ag.de/~sapidb/01100035870000061525200