Creating 6 month moving average key figure?

Hi-
I have a power user who needs to generate a "complaint rate".  He needs to be able to divide the number of service notifications received in a month by a 6 month moving average of units shipped.  In this same query he needs to show the complaint rate for the past 6 months.  I am not a query writer...I only know the backend.  But I am at a loss of how to select 6 months of data upon a load to calculate the 6 month moving average of units shipped.  Any suggestions/ideas would be greatly appreciated.  (Or is this a calculation that can be created in the query?) 
Thanks!
-Jenn

Hi
I think this can be done in the Starting Routine of
the Upd rules.
If you are using ODS it will be easier.
for each day you need an avg of the past 6 months, so when ever you load a record you can go to the ODS it resides in via SQL and calculate the 6 months trailing avg.
to initialize the data you run a repair full load that will make the calculation.
Reg's
Edan

Similar Messages

  • How to create a new Characteristic and  Key figure ?

    Hi !
    I am newly trying to learn APO DP and Could anyone please explain how to create a new Characteristic and Key figure in Demand Planning Administrator workbench[ RSA1] with steps?

    Hi,
    Instead of RSA1, use RSD1 to create Characteristics & Key figure.
    1. Go to transaction, select radio button for respective info object i mean Char ot key fig.
    2. Enter name of the same & click on create transaction.
    3. Suppose it will ask for APO or BW then select APO for key fig. so some new functionality come in to key fig. like key fig. fixing etc.
    4. always copy new key fig. or characteristics from standard.
    5. after creation activate the key figure.
    Hope this steps will help you to create Char. & key fig.
    Regards
    Sujay

  • How to design for YTD, Monthly & Last year Key figures

    Hi Gurus:
    Can you pls tell me how to design a data model, where a user wants to get YTD, Monthly & Last year Key figures say Sales volume...
    Is aggregates the answer?
    Pls let me know...Thanks a lot

    Hi Vijay,
    I am a beginner in BI field.
    I have a problem till now i couldnt get the right answer.
    That the reason why i write you today.
    My Problem is with a Query.
    I'm designed a dynamic query which should look like this:
    12.2005-- Jan06 --- Feb06 --- Mar06 --- Apr06 ... Dec06 --- YTD
    My Problem, if you give per e.g Dezember, all Months have to appear. Or you give may, your going to receive till may.The result i receive till now its only the month i gave.How can i get the correct answer? How i am going to calculate the YTD?
    You can directly answer hier:[email protected]
    Thanks

  • 12 Month Moving Average and 12 months rolling average

    Hi All,
    please let me know what is difference 12 Month Moving Average and 12 months rolling average
    can i get 1 example to achieve the solution

    Hey suneel,
    Both average are more or less same, for better understanding. go through below link, where you can get some clarifications.
    http://www.brighthubpm.com/project-planning/111351-guide-to-computing-rolling-averages-for-business-forecasts/

  • Month as a key Figure

    Hi,
    I have a Query where i run it for the Fiscal year suppose my current month is Nov in this case my fiscal month is 8 , so i want this 8 as my key figure.
    I need it for some calcualtion .
    How can we achive it , any help using replacement path or Exits.
    Regards.

    This is what I have done.
    For Posting period I have created a new variable for which I will calculate value using the exit.
    Then I have created a new formula under which I am using a formal variable for which the replacement path is this Posting period variable .
    But its not working this way.
    While running the report it gives error.
    Diagnosis
    Variable 43U5V5NNWD805ZH73HXV4BOJU (43U5V5NNWD805ZH73HXV4BOJU) was found in the query but in the meantime it has been deleted, or it has been used incorrectly.
    System Response
    The query was not executed.
    Procedure
    Use the Query Designer to change the query. The system provides a repair proposal for the query if the variable is missing.
    If the variable exists and is used incorrectly, find out whether or not the variable is used in the correct context.
    The faulty variable has variable type . You can use the following variable types in the following contexts:
    1.     Characteristic value variable- can be used to restrict (filter) characteristics to values (master data), in other words, in the same places where you can also use constant characteristic values.
    2.     Hierarchy node variable - can be used to restrict (filter) characteristics on hierarchy nodes, in other words, in the same places where you can also use constant hierarchy nodes.
    3.     Text variable- can be used in the query headers and can be used by structure elements.
    4.     Formula variable- can be used in all cases. Note: Formula variables can have units or be without them. Incorrect use can also arise here since the system always calculates in accordance with the units. Formula variables can also be used to create the upper and lower limits in exceptions.
    5.     Hierarchy variable- can be used to determine presentation and selection hierarchies, in other words, in the same places where you can also ise constant hierarchy names.
    Try to find the faulty variables in the query and analyze the reasons behind their incorrect use.
    You can delete the query if you no longer need it.
    Additional technical info:
    ELTUID = 43U5ZG4X89T6RAM8G50TBTUYY
      Notification Number BRAIN 418 .
    Any solution pls help.
    Regards.

  • Problems with creating badi implementation for virtual key figures

    Hi,
    I'm running BI 7.0 (unicode).
    I have been trying to follow this blog to calculate the virtual keyfigure in my infoset - Using Virtual Key Figure and Characteris in an InfoSet
    My infoset includes 1 infocube, and 3 master data infoobjects. I have created everything the blog was referring to, and activated fine. However, it seems that when the field symbols are assigned from the c_s_data structure, they do not get referenced correctly, so that no correct memory area is assigned and instead the whole c_s_data structure is assigned to the field symbol, which prevents me from referencing the right mem area correctly.
    For example, in this statement
    ASSIGN COMPONENT P_CHA_ZMYINFOSET___F120 OF STRUCTURE c_s_data
                                                                           TO  <fs_ZMYINFOSET___F120>.
    the component p_cha_zmyinfoset___F120 of c_s_data supposed to be assigned to the field symbol (point to the correct place in structure c_s_data). In other words when this statement is executed, the program looks at structure c_s_data, finds the component zmyinfoset___F120 in it, and assignes the position of that component in the structure to the field symbol, so that it could be referenced in the code. However, the correct assignment does not happen.
    When I debug the code and view the structure c_s_data, I can never find any component with any of the names I can find in my BEX query like ZMYINFOSET___F120. All I see are the components that are named like these: Z____5179 (C_S_DATA-Z____5179), C_S_DATA-S____5150, etc. I see the correct values, but components all have weired names like that. I thought in Infosets the components are named in the following fashion: INFOSETNAME___FXXX which you can see from your BEX query designer. Why is this happening? Why don't I see the correct names in the c_s_data structure? If instead I try to assign those components with their weired names directly, I still get incorrect assignment.
    what am I doing wrong?
    I was reading abap help on this statement:  assign COMPONENT comp OF STRUCTURE struc
    and the following I found:
    With this expression for mem_area, the memory area of a component comp of a structure struc is assigned to the field symbol. While the structure struc is specified directly, a data object must be specified for comp. The evaluation depends on the data type of comp:
    If the field comp has a non-text, elementary type, the content is converted to the type i and interpreted as a position of the component in the structure. if the value for comp is 0, the storage area of the entire structure is assigned to the field symbol.
    From what it says above, my value for comp is always 0, so that the entire structure is always assigned to my field symbol instead of a specific position in that structure.
    please let me know what is wrong here.
    thanks.
    Edited by: AG on Oct 11, 2008 10:41 AM
    Edited by: AG on Oct 11, 2008 10:42 AM

    Hi,
    I am facing the similar issue. Can you please tell me how you solved this problem in more details?
    which sample code and how u can find that in SE24 and where to copy that code.
    Thanks in advance..
    vamsi.

  • How to create selection variable on a Key Figure

    Dear Experts,
    I have a key figure 'No of Days' in the BEx Query. I need a selection variable which when the users provide the input, should give me the report output where the rows shows only those whose No of days are less or equal to the input value.
    I am able to create such a selection out of a Characteristics field but I am unable to create one from a key figure.
    Kindly note that we are not using the BW Portal. We are running this report in the webi from a Universe created from the BE Query.I know that it is possible to ceate such a scenario in Webi, but we want the selection coming from the BEx Query for better report performance.
    Thanks,
    Sai

    Hi Experts,
    Thanks for the suggestions. I cannot use the 'Condition' since this BEx query is being called from a Webi report. MDX will not recogonize the condition.
    I was able to create a Variable and use it in the calculated key figurare. The problem is , I am getting 1 where the condition is met and 0 when the condition is not met. But I want to see only the results where the condition is met. How to to avoid the rows where the result is not met.
    Am I getting this because there are actually 3 other key figures along in the query in addition to  the key figuare ' No of days'.
    Should I add some condition to the other key figuares also.
    Kindly confirm and help.
    Thanks,
    Sai

  • Unable to create new structure to hold key figures - BI 7.0

    Hi All,
    I am trying to create a new structure in a query - this structure will hold restricted key figures.  I right click in the Columns section and select New Structure. The system won't allow me to drag/drop the restricted key figure into the structure - it's added as another key figure in the existing structure.  If I right click on the structure and choose New Selection, the key figures are not shown as options for adding to the structure ... only characteristics are listed.  Any ideas on why this is happening?
    Thanks,
    Pam

    Hi Pam,
    i think cell restrction will solve your problem, i am not sure.
    Just try to do cell restriction.
    Just go throw the below description.
    You can use any cell that you define in a formula. If you want to reuse the value from the implicit, generic cell definition that is automatically created at the intersection of the two structural components of a query, select this cell in the Cell screen area and, using the secondary mouse button, choose New Cell Reference. A description taken from the two structural components now automatically appears in the cell. The symbol shows you that a cell reference exists for this exception cell. Now you can reference this cell. You can continue to use the implicit cell definition and do not have to manually generate this value using a new selection.
    Functions of explicitly defined cells:
    Select a defined cell and choose the required function from the context menu (secondary mouse button).
    &#9679; Edit
    &#9679; Cut
    &#9679; Copy
    &#9679; Paste
    &#9679; Remove
    &#9679; Where-Used List
    Before you delete a cell, you can check for the formulas in which the defined cell is used in the where-used list.
    You reach the properties of a defined cell by selecting the defined cell. In the Properties screen area you can also make changes such as:
    &#9679; Changing the description of the cell
    &#9679; Changing the highlighting of the cell
    &#9679; Hiding the cell ( if you do not want to see the values of the cell)
    Help cells
    In the Help Cells area you can define additional cells for help selections or help formulas. You can use the functions New Selection and New Formula in the context menu to define help cells that are not displayed in the query to serve only as objects for help selections and help formulas.
    For example, you can define an invoice in a help cell and use this in a “real” cell to calculate a duplicated invoice.
    a. Using the secondary mouse button, click on the empty cell next to Help Cells to reach the context menu. From here, choose New Selection.
    b.Use Drag&Drop to drag the Invoice key figure into the right-hand Details of the Selection area.
    c. Enter a description.
    d. Choose OK. The cell contains the description of the selection. The symbol shows you that a selection exists for this exception cell.
    e. Now choose New Formula from the context menu of the required cell of the query. The new formula that is not yet defined appears in the cell.
    f. Select the new formula and choose Edit from the context menu.
    g. Use Drag&Drop to drag the cell you have just defined, which you can find in the Available Operands window under Cells, into the Detail View window. Click on the button twice.
    h. Enter a description.
    i. Choose OK. The cell contains the description of the formula. The symbol shows you that a formula exists for this exception cell.
    Result
    You have defined one or more exception cells for a query.
    Regards,
    shailaja

  • Error When creating a new Global Calculated Key Figure or RKF

    Hi,
    Coming across this problem with NW2004s BI 7 query designer. When i create a new CKF or RKF with the query designer, i get a error message.
    Currently the SAP GUI is on SP 8 and the problem exists after applying the collective note recently released.
    Rgds
    Dinesh
    Message was edited by: Dinesh Mukundu

    Also, make sure you've got all your frontend patches configured correctly as outlined here:
    Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation

  • Error when creating a comment on a key figure from Bex

    When we try to create a comment on the query executed through a BEX Web Analyzer, we get the error message "Cannot read content from IContent instance. Error: You are not authorized to create a document with these properties".I have all authorization and all the 0tca* infoobjects are also activated.
    Any ideas?

    Adam,
        Welcome to SDN!
        Are you talking about BW Documents. Did you get a chance to look into this SAP Note. <a href="https://websmp205.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=947209&_NLANG=E">Note 947209 - No authorization for documents on library items (3.x)</a>
    all the best.  Let us know how if it helps.
    Regards,
    Nagesh Ganisetti.
    assign points if it helps.

  • Moving average about the last x records

    Hello,
    I have a question regarding moving average calculation. The query contains information about tools, the date of the tool's breakdown and the quantity of produced parts with this tool.
    Now I want to have an moving average over e.g. 3 tools back from the actual line.
    1) Tool 1 - 2007-05-16 - 6.000   pieces - Average: 10k8k6k / 3 = 8.000
    2) Tool 2 - 2007-05-13 - 8.000   pieces - Average: 9k10k8k / 3 = 9.000
    3) Tool 3 - 2007-05-03 - 10.000 pieces - Average: 5k9k10k / 3 = 8.000
    4) Tool 4 - 2007-04-24 - 9.000   pieces - Average: 9.000+5000 / 2 = 7.000
    5) Tool 5 - 2007-04-03 - 5.000   pieces - Average: 5.000 / 1 = 5.000
    Is this possible in BI 7.0?
    Best regards,
    Michael

    Hi
    Refer this
    How to implement moving average key figure?
    They are solving the same problem
    Regards
    N Ganesh

  • Key Figure aggregation settings

    Hi Guys,
    Currently I have one Key Figure, its settings are:
    KF: GOD QTY
    aggregation: SUM
    exception aggregation: LAST VALUE
    aggregation ref char: 0CALDAY.
    In the report we have 0CALMONTH in column, so we see last value of the month for the key figure (means whatever last day say 31.08.2009) and not the last value posted say 14.08.2009. In the report see value which is posted on 14.08. but using 0calmonth at report.
    Can you tell me how do I change the above KF settings to get the last value posted for the KF? I still want to put 0CALMONTH at report level. What will be the changes at exception aggregation and aggregation ref char?
    Thanks in advance,
    BMW Z4.

    The exception aggregation of LAST VALUE on calendar day will take the last value of the calendar day that your dataset is restricted to. So if you are drilling across by 0CALMONTH, each column will take the GOD QTY value of the last Calendar Day of each month.
    You could possibly get around this creating your GOD Qty Key Figure in your report as a selection or RKF and choosing the 'Constant Selection' option on the Advanced Tab - with this setting the selection becomes independent of the filter settings. So you may be able to set this as the last value and it will take this value for all columns.
    Nick

  • Loading ACE Results to LA Key Figures

    Hello,
    I try to load Arccrual Engine Costing Results from DSO (0ACE_DS01) to Leasing Accounting Key Figures DSO (0FIL_DS04) but during the data processing  I get   Error 2 in update:
    Cannot determine fiscal year/period for date 99993112 and variant.
    Errorcode: RS_BCT_CRM_FIN006
    Could somebody help? Thanx in advance

    Hi,
    Since your requirement is that the Component subtotals should pick up the last value/aggregate and that the Total Material result to be sum of the components, can you just try as below.
    1)Create a formula on the key figure . In Aggregation tab  select Exception Aggregation  as Average and Reference characteristic as Component.Keep this formula hidden
    2)Create a formula using the above formula. In Aggregation tab  select Exception Aggregation as Total and Refernce characteristic as Material.Display this formula as Hours.
    Thanks.

  • Key Figure Sorting in Workbook

    Hi Experts,
    I am creating a workbook where the key figures are supposed to be sorted in descending order. I tried using a Condition the displays the Top 100% of the results (because I want to display all, I just want to sort). The condition is working fine during the first run. However, when I save the workbook and re-open it again, the sort does not work anymore. Please advise. Any help is greatly appreciated.
    Thanks,
    Juice

    Hi Juice,
    Why dont you use the key figure sorting property present in the the Bex Analyzer.?
    Steps:
    1.  In analysis mode, select a key figure cell in the analysis grid and access the context menu. This can be done in 2 ways..
    ○       Choose the cell with your right mouse button (secondary mouse button).
    ○       From the menu, choose BEx Analyzer --> Context Menu for Selected Cell
    2. Choose Properties.
    The properties dialog box for the selected key figure appears.
    On the Sorting tab, you can configure the different sort options for the selected key figure.
    Hope this helps you!
    -Pradnya
    Edited by: Pradnya Rane on Mar 24, 2009 5:20 AM

  • Experience with creation of a large number of key figures

    Hi:
    I have a need to create a large number of Key Figures (at least about 50 of them) for DP use. Do you have any experience with automating this task if so, can you share your experience?  Thanks.
    Satish

    Hi,
    So far we have not come across a need to automate KF creation. And 50 KF is not a huge number, it would take may be a couple of hours to create them. Also, since it is a one time activity, developing an automation script for the same does not sound useful. You might want to consider creating them manually so that you can ensure all settings are proper.
    Hope this helps.
    Thanks & Regards
    Mani Suresh

Maybe you are looking for