Use of key figure based on period

Hello All,
I have 2 key figures in my multiprovider, e.g. Actual Amount and Budget Amount.  I need to display one of the key figure based on period.  Reports have January to December columns.  Now, if current period is October, I have to display Actual Amount from January to October.  For future periods i.e. November & December, I need to show Budget Amount. 
Can anoybody please provide a solution for this?  How should I proceed?
Thanks and Kind regards,
Ajay

HI Ajay
Looks like you are creating a Capital Forecasting report. In order to show amounts period by period what you need to do is
- Create one key figure for actual amount which might be based on 0Amount key figure with Debit/Credit indicator as S. (If this is not the case then please do so according to your requirement)
- Create one key figure for Budget amount (according to your requirement)
- Create one customer exit "Formula" variable called actual indicator. This variable will be populated with a number of 1 to 12 for each record in your cube based on the user entered month. i.e. if user enters October. assume your cube has 12 records one for each month the first 10 records will be populated with 1 and the records for Nov and Dec will be populated with a 0.
- Create one customer exit "Formula" variable called Forecast indicator. This variable will be populated with a number of 1 to 12 for each record in your cube based on the user entered month. i.e. if user enters October. assume your cube has 12 records one for each month the first 10 records will be populated with 0 and the records for Nov and Dec will be populated with a 1.
- Create a calculated key figure that is defined as (Actual Amount)Actual indicator + (Forecast Amount)Forecast Indicator.
- Create twelve restricted key figures with the CKF created in the previous step restricted with the month (Jan to Dec)
- Add the above created twelve RKFs in the query.
Regards,

Similar Messages

  • Using Virtual Key Figures/ Characteristics is possible to use in InfoSets

    Hi All,
    Is it possible Using Virtual Key Figures/ Characteristics is possible to use in InfoSets?
    I have tried all the possibilities using the BADI implementation RSR_OLAP_BADI without success.
    The VKF / Characteristics works fine when it is being used with a query based on the ODS however it is not populated when i am using the infoset. Moreover i have used the code for InfoSet as well it is not working.
    I would appreciate any help in this regard.
    Regards
    Noor

    Hi PV,
    r u sure about that, as i have tried all sort of permutation and combinations for using the same in RSR_OLAP_BADI without any luck.
    I have the got felling about the same however if you look into the following SAP note it puts me into doubt.
    Note 657690 - Virtual characteristics and key figures in InfoSets
    Note 618738 - Virtual characteristics or key figures and InfoSets.
    It describe about using the RSR00002.
    Many thanks for the information.
    Kind Regards
    Noor

  • Key Figure based on condition between characterisics

    Hello Guys
    I have a key figure which needs to be displayed based on condition between 2 characteristics.
    Scenario:
    I have 2 fiscal periods : FP1 and FP2. and a Key Figure KF.
    Condition:
    Show KF only when FP1 not equals FP2.
    EX: If FP1 = May and FP2 = May dont show KF.
          If FP1 = May and FP2 = June then show KF.
    How do i display a key figure based on a condition between 2 characteristics?
    Please advise.
    Thanks.

    Create two formula variables based on replacement path that get the FP1 and FP2 (numeric values).
    Let us say these are ckf1 and ckf2.
    Create another CKF3 which is = "ckf1==ckf2"
    Now, CKF3 will be 0 if these two are not equal, and 1 otherwise.
    Create a condition on CKF3 so as to show only the records with a 0 value.
    Finally hide CKF3.
    That should be it.

  • Calculated Key Figures based on Attributes

    Hi
    In one of our queries we need to create a calculated key figure based on an attribute. Any suggestions on the best way to do this?
    I have looked at a Virtual Key Figure, but because our Cube name contains underscores (_) it shortdumps. Is there a way around this?
    Thanks in advance.
    Chami Herath

    Hi,
    what do you mean with calculated key figure based on an attribute? Is your attribute a characteristic in the cube or is it just a attribute of a characteristic? Let me know more details.
    regards
    Siggi

  • Calculated Key figures using different key figures

    Hi All,
    I want to create a calculated key figure based on Actual and Plan.Actual values are coming from InfoCube,Plan values are loaded from Excel sheet into different key figure in another infocube.I've created a MultiProvider for these Cubes.Now I want to find the difference between plan and actual.So I created a calculated keyfigures based on the key figures.But the Query is giving error ..
    Then the connection terminated..
    Let me know how to do..
    Raji

    What is the error you are getting?
    First do this.
    In the query, filter on only 1 infoprovider. Check the KF's and see if correct and if you get the error. Then, do the same thing, for the other infoproviders. Once you get no errors that way. Remove the filter. See if the KF's are ok and no errors. Then do your calculation.
    Also, make sure in the definition of the KF's, you are filtering each on the right infoprovider. (For instance, KF1 has a filter on infoprovider1 and KF2 has a filter on infoprovider2.)
    hope this helps!
    /smw

  • Defination and use of key figure in copa

    dear experts,
       i'm new to co-pa.
       can anyone explain to me the defination and use of key figure in copa??
    many thanks
    mu

    Hi!
    Generally you use key figure for defining calculated values for use as tracing factors for  cost center assessment to COPA.
        You can use for this t.code KE2K as define calculated values as reference values.
    For Ex.
    Key Figure R1 contains below value fields through formula :
    R1 = ERLOS + VV00 + VV01 + VV02
    where ERLOS = Revenue
    VV00 = Exports Revenue
    VV01 = Domestic Discount
    VV02 = Exports Discount
    So, this key figure you can use as a base for tracing factors for cost cetner assessment to COPA.
    Hope it will clear to you. Pls ask for any further query.
    Thanks & Regards,
    Taral Patel

  • Can i use the key figure total delivery time in days in rows and how is can

    Dear all,
              Can i use the key figure total delivery time in days in rows and how is can.but all the key figures r used in rows but i cannot use in column.i want bothin rows and in column  at a time ,can this is possible,and how.

    Hi,
      yes you can.You will have to use structure in the row.
    Right click on the row and create a new structure.
    In this structure you can add key figure.
    Maximum number of structure a query can have is two
    Please assign points if it helped you.
    Regards,
    Senoy

  • Calculating count of orders using virtual key figures

    Hi All,
    In my report, i need a counter for the number of distinct orders.
    1ROWCOUNT didnt work for me as i want the count of distinct orders alone.
    I am planning to use virtual key figure for this..
    However, i donno how to code this in ZXRSRU02 and ZXRSRZZZ.
    Any help on this would be great!!
    Thanks!
    - Arun KK

    Shana,
    I dont understand your question.
    I'll give an eg.
    this is how the cube is.
    Order | Desc | Location
    101  |   'X'  | loc01
    101  |   'X'  | loc02
    102  |   'Y'  | loc01
    103  |   'Z'  | loc01
    102  |   'Y'  | loc02
    in the report, i need the o/p to  be.
    Order | Desc | count
    101  |   'X'  | 1
    102  |   'Y'  | 1
    103  |   'Z'  | 1
    i cant use 1rowcount as that counts each row and not the service orders.
    Hope this answers your question.
    Please let me know if there is a solution for this.
    Thanks!
    ~ Arun KK

  • How to controle the output of a key figure based on an attribute

    As part of following up on a select range of materials during their launch period a report is needed, where the key figures are controlled by a specific attribute.
    The attribute is called End Launch Control Date and it holds the specific day where the product goes from launch to replenishment. When the product goes into repleneshment it is no longer relevant to follow up on.
    The follow up list contains around 80 materials (SKU's) and the challenge is that they have different End Launch Control Dates.
    So, I would like to design a report that does the following:
    1) When drill on material, the key figures only show values before the End Launch Control Date for the specific material. After this date, the key figure should state either zero or blank cells.
    2) The key figures should not be controlled by a specific date in the prompt, because the End Launch Control date is different for each material.
    Does anyone have experience in constructing this functionality?

    Hi,
    you could maybe do this with using formula variables and and IF statement in the keyfigure you want to be blank after a certain date
    basically you want/need to compare a date (which date would that be, one in the columns or smth?) with the end launch control date and if this date is bigger then this leave KF 0.
    so you need to create a formula using two formula variables (of type replacement path and being replaced by the 2 dates) and compare these two in the formula. Then you use the outcome of this (which should be 0 or 1) in a new formula with the keyfigure (statement true * KF ) + (statement false * KF). This will give a value when comparison is ok and 0 when it is not ok.
    This description might be not complete and bit short but I dont have the time to fully look it up, please let me know if you didnt understand the idea behind it.
    Regards
    C.

  • Webtemplates - Disply Group Of Key Figures based on the selection criteria

    Hello,
    I have a requirement of displaying Kefigures based on the selection criteria in the browser.
    Assume that I have Query with the following set of key figures.
    Plan_KF in units CSE
    Actual_KF in units  CSE
    Difference in units CSE
    Plan_KF in units T3
    Actual_KF in units T3
    Difference in units T3
    Plan_KF in units PAK
    Actual_KF in units PAK
    Difference in units PAK
    1) I should have drop down box with values
    CSE
    T3
    PAK
    2) If user selects PAK then query should display only the key figures with units in PAK
    i.e.
    Plan_KF in units PAK
    Actual_KF in units PAK
    Difference in units PAK
    If user selects CSE the query should display only key figures
    Plan_KF in units CSE
    Actual_KF in units  CSE
    Difference in units CSE
    I tried using the DropDown Box - (not much usefull to select more than one Key Figure)
    and CheckBox web items - I have to do multiple selections (Not very much suitable if the Key figures are too many).
    I appreciate your timely help.
    system specifications:
    SAP_BW - 310
    Front-End - 6.20
    Advanced Thanks,
    Ramana

    Hi,
    One alternative would be to save two additional copies of the query (each with different units) and code your dropdown box with the RESET_DATA_PROVIDER command.
    So if your queries were:
    Z_QUERY_CSE
    Z_QUERY_T3
    Z_QUERY_PAK
    You would define the default unit (I'll assume CSE) in yoru web template, and code your dropdown box entries to switch the Data Provider (I'll asume DP1) to the appropriate query.
    The code behind "T3" in your dropdown box would be:
    <SAP_BW_URL DATA_PROVIDER='DP1' CMD='RESET_DATA_PROVIDER' INFOCUBE='Z_CUBE1' QUERY='Z_QUERY_T3'>
    http://help.sap.com/saphelp_nw04/helpdata/en/bd/43143c1ab8ff1ae10000000a11405a/frameset.htm
    Two things to look out for in this work-around:
    1) Number of queries increases by a factor of 3
    2) Performance implication in replacing the data provider with a new query.

  • Key Figure based on selection criteria

    Hi SDNers,
    I have Key figures which  i would like to display based on multiple selection criteria... for this we donot have master data data restricted at the query level it should be at the key figure leve...
    Eg:
    Sales which i would like to display based on SORG,DIV,MATERIal Etc.. Kindly can anyone will help...
    Thanks
    Sonu

    You can create restricted key figures if you want to use the same selection criteria in multiple queries.  In which you can get value for key figure for selcted filters on that perticular key figure.
    If you need it for just one query  you can create a structure and in that structure you can create a new selection which has your restrictions on that key figures.
    Search on help you will get to know hot to create structures and restricted key figures.

  • Fixed value Statistical key Figures based on Profit Centers - 9KE5

    Hi all,
    We have a Statistical Key Figure that is of Fixed Value category, based on Profit Centers. We are manually entering it in 9KE5.
    Since it is of fixed value category, am I right to say that: once we enter in one period,  it will automatically be updated in subsequent periods? But the current situation is, it does not update in subsequent periods, only the period which we enter.
    Does anyone know how to correct this? So that once it is updated in 1 period, it will be automatically be updated in subsequent periods.
    Thanks in advance!

    Hi,
    Yes, I saw the field and chose 1- Equal distribution.
    I then select period 1, enter the quantities and save. Go back to 9KE5 and choose period 2, I expect the quantities entered in period 1 to be reflected in period 2. But this is not the case- there is no value for period 2.
    I also managed to change the selection screen to have Period as select-options. If I choose Periods 1 to 12, the quantity I entered in 1 period is divided into 12, and it will only show that divided quantity. However, if I choose another Period, Period 3 for example, no value is shown.
    Is this the correct behaviour? I am expecting the quantity entered in period 1 will also be shown in any other period.
    Thanks!

  • Calculated Key-Figure based on Cumulated Key-Figure

    Hi BW-Community,
    I have problems defining a ckf based on a key-figure wich are marked as cumulated. I know this topic was discussed before
    but I did not find a acceptable solution yet.
    Here is my example (as it should be)
    *** KF1     KF2   CKF3 (KF1 % KF2)
    2            2           100%      
    4            2           200%
    6            2           300%
    And this is the Output from BW
    *** KF1    KF2   CKF3 (KF1 % KF2)
    2            2           100%      
    4            2           100%
    6            2           100%
    BW uses the not cumulated keyfigure-value instead of the cumulated value,
    I tried several things:
    1.) Use the class CL_RSR_WWW_MODIFY_TAB and redefine the method data_cell to do a manual calculation on the results. This works but
    it is very inflexible and restricted on WEb Template also the Excel Integration do not work properly.
    2.) Mark the CKF also as cumulated but this don't work either.
    My customer uses such calculation on almost every Query and Report so I need a practicable solution.
    I think the best way to solve this is in the staginf prozess, but i did not find a solution yet.
    Does anybody know a workaround, solution? We will put to NW2004s soon is there any chance that this will work
    in this release?
    Thank you in advance
    Greetings
    Timo

    Hi
    Thank you for the replies.
    I create a new CKF without percentage funktion but it didn't work. Same result as described in the first post.
    Even if i put only KF1 in a new CKF (e.g.CKF2  =KF1) the uncumuated value is shouwm
    Example:
    *** KF1    CKF2
    2           2 
    4           2
    6           2
    @ Structure
    I know that using structure is possible. But we cannot use structures, because we have a dynamic amount of characteristic-values (e.g. 0calday)

  • Use of key figure 9ADFCST in SNP

    I am using APO V5.1.
    In particular I'm using SNP heuristics, and we have forecasts in the standard key figure 9ADFCST.
    As I understand it, this key figure contains the 'unconsumed forecast', and so is the original forecast (from APO DP) minus open sales orders and minus sales order despatches.
    I want to be able to distinguish between the situation where 9ADFCST is zero because the original forecast is zero (and we have no sales orders), and where 9ADFCST is zero because it has been fully consumed by sales orders/despatches.
    Any advice on this would be appreciated...

    Hi,
    I would recommend that you do not touch the 9ADFCST Key Figure and add a new Time Series KF for storing the original forecast (let's say CORFCST).
    When you release forecast from DP to SNP, in a next step, also copy your DP forecast to CORFCST using the program /SAPAPO/RTSCOPY.
    So, use original forecast KF CORFCST to see the values of the forecast that came out of DP, while 9ADFCST will tell you how much unconsumed forecast remains. When both values are zero, it's clear that your forecasted value was zero, otherwise, you could find out the original forecast using the KF CORFCST.
    Of course, other option is to go to forecast tab in RRP3 (product view) and check the consumption situation (how much of the forecast is consumed vs how much was available initially).
    Hope this helps.
    Thanks - Pawan

  • Non cumulative key figure and fiscal period 13

    Hi,
    We have defined a non cumulative key figure. In the cube, the non
    cumulative characteristic is the fiscal period (0FISCPER).
    This non cumulative key figure works fine from period 1 to 12, but
    displays nothing for period 13 (and 14, 15, 16).
    We want to display the balance for the special periods 13 to 16, Is
    there a way to do it?
    Thanks,
    Gabriel

    Hi,
    Yes I am sure, there are some amounts posted in period 13. And even if there are no amount posted, there was a balance in period 12, so the balance should stay the same in month 13.
    The balance in month 1 of the next year is correct: balance of period 12 + amount posted in periods 12, 13...
    Gabriel

Maybe you are looking for

  • Audition 3.01 suddenly wont startup

    I've been using Audition 3.01 for a couple of years with no major problems.  I'm using it mainly as a wave editing/mastering environment so there are periods of time (e.g. weeks to months) where I don't run it. Recently I tried to start the program a

  • CS5 won't open NEF files from D600, despite updating camera raw plug in.  How do I fix this?

    CS5 won't open NEF files from D600, despite updating camera raw plug in.  How do I fix this?

  • BPM Studio 11g: New Process doesn't work

    Hi, Just downloaded JDeveloper 11.1.1.3 and extension "Oracle BPM Studio 11g". I created a BPM application, a BPM project and in this project a try to make a new Process, but after new > BPM Tier > Process, nothing happens. Am I missing something? Th

  • Mac mini sound output

    new 2014 mac mini -> two monitors setup -> upon "awake", sound output from monitor choice disappear.  Only to restart to have those output appeared again.  any solution?

  • DVD: can I extract the movie files?

    DVD: can I extract the movie files? I created a DVD (burned on DVD media). I did not archive the project since the files are too large. Can I extract the movie files from the DVD? I want to make a edit to the DVD. I know if I have the movies (clips)