BPC Custom Measures for YTD AVG and QTD AVG

Hi,
I am am trying to modify MDX logic for YTD and QTD Measures to calculate the YTDAVG and QTDAVG.  I am having no luck so far.  Anyone, done that before or knows how to do it?
Thanks,
Mark

Hi Mark,
      Did you get a chance to look in to the following How too
[how to create custom measures|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/206cb499-990f-2c10-5aa8-84d891894979]
-sanjay.

Similar Messages

  • Calculating  YTD AVG and QTD AVG

    Hi All,
    I am trying to crate custom measure formula for calculating  YTD AVG and QTD AVG in BPC 7.0 NW any help

    For this formula I am using Sum divided by..
    MEMBER [MEASURES].[YTD] AS 'IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM(PERIODSTODATE([%TIME%].[LEVEL00], [%TIME%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA]),IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME%].[LEVEL00], [%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[LEVEL02])),IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",-([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[LEVEL02])),-[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
    can please help me..

  • How to create a custom measure for each level of a dimension

    Hi all!
    Can Anyone please explain me with an example, how to create a custom measure for each level for a dimension? I dont mine if you use
    one or more measures.
    thanks in advance
    hope someone helps me.

    For example:I create a dimension for product_dim witch has 4 levels:total, class, family and item:
    d_aben18
    n1_aben18
    n2_aben18
    n3_aben18
    n4_aben18
    herarchy:h_aben18
    cube:cubo_aben18
    measure:med_aben18
    I create this code to fetch the data to the dimension:
    TRAP ON CLEANUP
    SQL DECLARE c1 CURSOR FOR SELECT-
    total_product_id,1,'N1_ABEN18',total_product_dsc,-
    class_id,1,'N2_ABEN18',total_product_id,class_dsc,-
    family_id,1,'N3_ABEN18', class_id, family_dsc,-
    item_id,1,'N4_ABEN18',family_id,item_dsc-
    FROM PRODUCT_DIM
    "OPEN THE CURSOR
    SQL OPEN c1
    "FETCH THE DATA
    SQL FETCH c1 LOOP INTO-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N1_aben18_LEVELDEF,:D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N2_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N3_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N4_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    "SAVE THE CHANGES
    UPDATE
    COMMIT
    CLEANUP:
    SQL CLOSE c1
    SHOW 'KK2'
    Then I create a cube with use compression off, and in rules sum for example.
    After, I create a measure and I select Override the aggregation specification for the cube, in rules I put nonadditive and I would like to create aprogram to assign distinct values to each level of the dimension. For example, I put 1, 2 3, and 4 values, but at the end I would like to put count(distinct(values)).
    for that I create another program:
    VRB D_RETURN DECIMAL
    if D_ABEN18_N1_ABEN18_LEVELDEF eq 'N1_ABEN18'
    then D_RETURN = 1
    if D_ABEN18_N2_ABEN18_LEVELDEF eq 'N2_ABEN18'
    then D_RETURN = 2
    if D_ABEN18_N3_ABEN18_LEVELDEF eq 'N3_ABEN18'
    then D_RETURN = 3
    if D_ABEN18_N4_ABEN18_LEVELDEF eq 'N4_ABEN18'
    then D_RETURN = 4
    else d_return=26
    return d_return
    "SHOW D_RETURN
    cubo_aben18_med_aben18_stored=d_return
    but it doesnt work.I dont know how to put to assign or to see what I want.
    I report the measure, or I report the program, but then how can I see the values of the measure?
    thanks in advance

  • F-53 and F-28, Customized columns for cash discount and %

    Hi Expert,
    With reference to the subject of: Customized columns for cash discount and % ...
    I faced the problem of not able to set / defined hidden column for cash discount and % by creating a new variant.
    Steps:
    Create a variant
    Click <administrator> button ... mark the columns hidden, and click <activate> button
    Then click <Save> button
    Problem: Every time I using the F-53/F-28, the layout is not working, and when goto check the variant settings, the cash discount and % columns remained unchecked.
    SAP version: 4.6
    Kindly advise.
    Thanks and regards,
    sbmel

    Hi JP,
    It is not working using field status group, as I am using F-53 and F-28 and not FB50/60/70.
    The purpose I want to create variant for screen after clicking <process open item> is to control column display (hide cash discount and %).  if the variant is working, I can create a customized Tcode for the F-53 and F-28.
    Now problem is that variant seem not working.
    Thanks and regards,
    sbmel

  • I entered calculates hands and more than one account and used a credit card please raise security measure for Visa card and thank you

    I entered calculates hands and more than one account and used a credit card please raise security measure for Visa card and thank you

    Hi Eva B.,
    Please refer to the help document below:
    Adobe Store | Online order and payment FAQ
    Regards,
    Sheena

  • Custom pods for 7.0 and 7.5

    I am looking for 7.0 or 7.5 Stage Light or Count Down custom pods.
    The exchange, http://www.adobe.com/cfusion/exchange/index.cfm?from=1&o=desc&event=productHome&s=5&exc=14, has pods for 8.0. I am still working off 7.0 and 7.5.

    Here they are Shirley:
    http://dco.groups.adobe.com/index.cfm?event=post.display&postid=39109
    Mike
    Custom pods for 7.0 and 7.5
    created by shirley.m.kim<http://forums.adobe.com/people/shirley.m.kim> in Connect General Discussion - View the full discussion<http://forums.adobe.com/message/4067490#4067490

  • SAP's Customer Network for R&D and Engineering

    Just want to make the PPM folks aware that SAP started the "Customer Network for R&D and Engineering".
    See also this post in the [PLM Forum|SAP's Customer Network for R&D and Engineering;.If you are interested  to participate in the Network, just drop me a mail with your contact details.
    Regards Renato

    Dear Phillip,
    Cloud enabled software can be easily deployed on-premises but not vice versa.
    this could probably be the deciding factory, for every customer : - )
    no one would want to block their future...
    so even for on-premise, its better to start with cloud and go for hybrid model and i believe
    if this lock is there.....
    then every on-premise solutions will have a cloud solution.....  
    want to see your argument on, any one thinking, i want only on-premise, and i will not be needing
    cloud solutions in near future..... also for hybrid customers, cloud first and then on-premise would be pain area.

  • How to create customer exit for characteristic variables and for text vars.

    hi friends,
      can anybody tell me how to create customer exit for characteristic variables and for text variables in bw ides system.
    thanks,
    sree

    Hi,
    Please have a look at:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Krzys

  • Custom program for availability check and update for existing sale order at Item level(VA02)

    Hi,
    I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN  ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.   
    Regards,
    Shanmuga

    Hello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
    Points are always welcome if you feel an answer has been helpful.

  • JSF Custom component for table pagination and sorting

    hi
    i want such a custom component that render a table and table has the features of pagination and column sorting.
    any one know from where i can get such a custom component.
    (if this component is available with source then it would be more help full for me)
    thnks & regards,
    Haroon
    Message was edited by:
    HaroonAnwarPADHYAR

    I know two companies that offer JSF component for table pagination and sorting and AJAX based :
    http://www.teamdev.com/quipukit/demo/datatable/DataTable_filteringAndPaging.jsf
    http://java.samples.infragistics.com/NetAdvantage/JSF/2006.1/
    The problem? They are not open source..
    And I am too looking forward on this subject, because I want to develop my own custom component and add some features. If someone has any tips, references or samples of their own, it would be really appreciated.
    Thank you.
    Paul

  • Custom Report for the Stock and Stock value for a specific date

    Hi SAP Gurus,
    Is there any SAP standard t-code or any logic to get the transcations (additions (for example: Purchases) and subtractions (Sales) to the inventory) for a particular materials in a plant and with Total Stock and also Total Stock value when that particular transaction happened?
    Our system is R/3 4.7
    I looked at the MB5B, MBCE, MBCA, MC44, MB51 and some other standard T-codes but could not find the total stock value at the time of Transaction happened.
    The history tables MBEWH and MARDH  are updated after the month end closing procedures, right, which means I will have the inventory value changing every month if material has Price "S".
    Thank you,
    -Harter

    Hi Harter,
    Unfortunately, you cannot see in a single tcode the value of stock and stock quantity on a specific date. As you yourself have pointed out, we only have to make use of the history table MBEWH, MARDH for the month wise stock quantity and value. Along with that you should also make use of the table MBEW to take teh stock quantity and value. So the total value of stock on a particular date will be
    Stock qnty = MBEWH value until the previous month (for teh specific valuation class, period etc) + MBEW value for the present date.
    But this will nto work out if you want to find out teh stock quantity and stock value on a past date basis. For past data, only  m onthwise data is available. For this anyway you can refer to MC.1 and so on reports.

  • Unit of measurement for materials received and withdrawn

    Hi Experts,
    Base unit of material is KG whereas sales unit is M2 and conversion is maintained between both. Now I am using sale unit (M2) while entering material componenets. Then I am raising PR, PO, GR in project and withdraw the material in sale unit M2. But system updates the report in KG (under purchasing data tab of component). When I get material report, system shows reqmt qty in M2 but received and withdrawn qty in KG. Its confusing and doesn' serve the reporting purpose. Can we do something so that received and withdrawn qty will appear in M2 (sale unit) rather than KG (base unit)?
    Thanks and Regards
    Dinesh Chauhan

    Hi,
    To resolve this issue, you need to maintain the conversion factors. In material master, additional tab, unit of measure tab you need to maintain the conversion factors. Say example I Kg = How much M2. If you maintain this the system will convert automatically all the Kg in to M2, or vice versa you can do. Otherwise you can maintain the conversion factors in the Info Record also for externally procured materials.
    Regards,
    V. Suresh
    Edited by: V.SURESH on Jan 5, 2009 12:19 PM

  • Creating custom fields for manual entry and fields that gather data from Active Directory

    So I am no SQL developer but I am being asked to do this.. I've spent the last few days researching but cannot find anything related to my particular situation.
    I have made a copy of the following report to add or modify a few columns:
     Hardware 01A - Summary of computers in a specific collection
    So I have 2 questions:
    How do I create a field that will search the "Managed By" tab in the Computer Properties window in Active Directory.
    How do I create a field that can be manually updated for example: "Date Deployed" or "Deployed By: Analyst"
    I understand I need edit this in SQL report builder and think I know how to create the columns. I believe all I am really asking is.. What are the SQL statements I need to write in order to get this to work?
    I'm sure it's not as cut and dry as I hope it to be so I will be standing by to try to answer any further information that you will want to know.
    thanks!

    Before you can accomplish this you need:
    "Managed by" -attribute has to be added to your Active Directory System Discovery, more on this here: http://technet.microsoft.com/en-us/library/bb693618.aspx
    For "Date Deployed", I'd use a custom Tattoo script in your task sequence to "Tattoo" the installation info in the registry, after that I'd configure the Hardware Inventory to pick that from the registry, more on this here: http://ccmexec.com/2012/08/script-to-tattoo-the-client-registry-during-osd/
    and here: http://www.petervanderwoude.nl/post/reporting-about-the-all-the-different-os-deployment-versions-with-configmgr-2012/
    After those prerequisites, you can start working with SQL reports. More info here: http://myitforum.com/myitforumwp/2012/10/29/sccm-2012-reporting-for-dummies-creating-your-own-ssrs-reports/

  • Custom approver for Trip Request and Itinerary

    Dear Colleagues,
    In the current systems of CfTE system 1408 we see the option to select "custom approver determination" in the work distribution in the activity approval process for Expense Report.
    In the Approval Process for Itinerary & Approval Process for Trip Request we did not see the option to add custom approver determination in the value help of work distribution field.
    Thanks
    Lokesh Sharma

    Dear Colleagues,
    This feature is currently in testing phase and we may expect this option for Trips & Itinerary to add custom approver determination under work distribution in the Future releases.
    Thanks
    Lokesh Sharma

  • Can anyone provide the VI of current measurement for Agilent34901A channel21 and 22?

    I want to measure the current by the Agilent34901A channel21 or 22. The HP34901A installed on the Agilent34970A is connected to the computer via GPIB Bus. Does anyone have the subvi for this measurement?

    If you have the 34970A driver from NI, open HP34970A EZ Voltage.vi. On the diagram, the first string you'll see is "MEAS:VOLT:". Change this to "MEAS:CURR:". Save the modified VI as HP34970A EZ Current.vi. If you want, you can add this VI to HP34970A Single Point.vi just by adding an item to the "Function" slider and adding a new case.

Maybe you are looking for

  • PC card adapter question

    i just got a sandisk PC card adapter to read/write to a compact flash card. can i leave the adapter in the PC slot (w/o a card) when i'm not using it? i won't lose it that way. thanks , barbara power book G5 Mac OS X (10.4.3)

  • Oracle RAC with Admin tools

    Hello! I use Weblogic Server 10.3.2. I have a portal application and I want to manage the content with Portal Administration Console from admin-tools.war . Admin-tools is a part of my portal application. I eclipse I check for my ear project on Projec

  • Fields from 2 different Subject Area via inner or outer join

    Hi All I have a requirement where I have to pull columns which are available in 2 different Subject Areas. For eg. Col1 and Col2 in one SubjectArea1/Report1 and Col2 and Col3(obviously not available in SubjectArea1) in second SubjectArea2/Report2. Th

  • Power Button Lockout for HP2009f

    Hi, I tried all the possible ways to unlock Power Button Lockout. I tried holding the power button upto 30sec., Still not working. Anyone can help me with this problem, please? Best Regards,

  • Is it necessary to purchase a shellshock bash bug patch for Mac OS X users?

    Is it necessary to purchase a shellshock bash bug patch for Mac OS X users?