Formula Variables for Key Figure Rolling Averages 3/6 months

Dear BEx guru! I need dynamic (user selectable range from select options) 3, 6 month averages for Sales, Inventory  Key Figures. I used variable offset alone and I am not getting the results.
Mar/06 = 120 EACH, Apr/06 = 150 EACH and May/06 = 180 EACH, Jun/06 = 90 EACH, July/06 = 240
User Calendar Month select options = Mar/06 to May/06
Mar/06 (Avg) = (120150180)/3 = 150 EACH
Apr/06 (Avg) = (15018090)/3 = 140 EACH
May/06 (Avg) = (18090240)/3 = 170 EACH
PLEASE SEND ME YOUR KIND RESPONSES! I APPRECIATE YOUR HELP!! write to [email protected]

Hi,
You may have to use the customer exit.  I am not sure whether there is any sap_exit variable available to provide such a calculation.
Regards
Sundar

Similar Messages

  • How to create a variable for key figure (value will be entered by the user

    I want to create one query, where the user has to entered a max value when the query is started, so that only the query rows will be listed, where the key figure value (integer) of the row is smaller than the max value given.
    How can i define that variable which has to start at the begin of the query; and also the restricted key figure iin consideration of the KF variable.
    Thanks for helping
    Ar.

    Hi Arnaud,
                Go to Conditions-> Right click -> New Condition -> Edit -> NEw -> Selct the KEy figures from the dropdown( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
    Save & Execute, you will find it in your selction criteria.
    Regards
    Sunil

  • Create variable for key figures

    Hi all,
    I have a query with a couple of key figures, f.e. Net Revenue, Net Sales and Volume.
    Now, I want my end users to have the option to <b>select</b> which <b>key figures</b> they want <b>to see</b>. How to do this?
    All good ideas will be appreciated.
    Thanks in advance,
    Ralph

    Hi,
    You can put your key figures in a structure. A "key Figures" row will automatically appear in your navigation block. If you right clik and select filter value (in BEX) or just click on the filter icon (in 0ANALYZER BW3.5) you will be able to select the key figures to display.
    This should help the user to display and hide the relevant key figures according to their scope of analysis.
    Hope it helps (if so, please assign some points)
    Gili

  • Formula variable for date in report

    Hi All,
    I have to display the last date value of a particular date in the report.
    For a better understanding,
    I have Customer, Equipment, Service date, Amount
    In the report, I have to display
    Customer, Equipment, Last Service date, Last Service Amount.
    I have created a formula variable (Formula variable for Service date) for Service date with Replacement path.
    Replace Variable with Infoobject, Replace with Key, Dimension dates.
    And in Key figures, I have created a formula (Last Service date) with Last value in the Aggregation using the "Formula variable for Service date".
    The Last Service date is displayed as 'X' in the report since the Service date is not in the row. I cannot have the service date in the row either (not even by hiding the display).
    Kindly tell me how to rectify this problem.
    Thanks and Regards
    Adhira Anand.

    The X is appearing because, with the drill downs you have added, you have more than 1 date value to choose from when you attempt to aggregate.
    Have you tried using APD instead of exception aggregation?
    Have you built the exception aggregation calculated key figure globally or just locally (i.e. as a structure element)? It must be built globally to work properly.

  • Currency translation for key figure in bex not working.

    Hi friends,
    i want to do currency translation for key figure(invoice value in local currency).
    i have followed the steps as under:
    1st Transferring Global Table Contents: Currencies from R/3 Systems
    2nd than transfer exchange rate - from r/3 to bi
    3 than In SPRO settings of BW there is option "consider translation ratios in translation"
    4th than used transaction RSCUR for creating currency translation type: parameter(exchange rate:m, soure currency fom data records, target currency ISK, time ref: current date)
    5th than in BEX query designer have sated this for key figure
    but when i run query in RSRT, curreny amount not getting convert?
    am i missing any step?
    pl. guide.
    thanks dushyant.

    Hi Dushyant,
    Are these steps followed in Query designer??
    In the Query designer, for that particular key figure property, under Conversion tab >> Currency Translation >> Conversion Type, select the currency translation type you created in RSCUR.
    And in the target currency, select accordingly.
    If you are going to use a variable, use the following link..
    http://help.sap.com/saphelp_nw04/helpdata/en/08/81b98b95e911d4b2ca0050da4c74dc/content.htm
    See also..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/287bab90-0201-0010-f48e-cc55b0cd13d0
    Hope this helps..!
    -Pradnya
    Edited by: Pradnya Rane on Apr 8, 2009 7:58 AM

  • How to write conversion routine for key figure?

    Our customer has this requirment:
    we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this:  00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time,  BW system will report a error that say it is not acceptable time.  If we want to define a integer, but we need display it like hhmmss format.  We know we can write conversion routine for char.  but I don't how to write conversion routine for key figure.   Please give me any hint if any other solutions?
    Edited by: SY DONG on Dec 2, 2010 3:36 AM

    If you want to do in Transformation Layer :
    You can use routine ...break up the seconds into minute hour and seconds
    you will have to handle few cases in this:
    let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
    DATA: lv_seconds type i,
               lv_hrs  type  i,
              lv_sec type i,
              lv_min type i.
    lv_hrs = lv_seconds / 3600
    if lv_hrs >= 1.
    lv_min = (lv_hrs - trunc(lv_hrs))*60
    here again handle seconds if min >60.
    else.
    lv_hrs = '00'.
    lv_min = lv_hrs*60
    It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
    Regards,
    RK

  • Dynamic Texts from Bex ( for Key Figures ) not coming to WEBI Query

    Hi Gurus,
    We have a Query in BEx : Each  Key figure column text changes dynamically - Like based on Present month
    it will Display Month +1 Month +2  up to Month +12.  Used  dynamic Text variables .
    But when i created the universe and Webi report , i am missing the text in the column for Key figures .
    How should i get the column text in Webi which is same as in Bex : Points will be awarded for helpful
    answers.
    Thanks
    Magge

    Hi,
    text variables with replacement path are supported in BO4.0, see following document: SAP BusinessObjects BI4 - Supported BEx Query Elements
    As an example after entering 2012 in the prompts window, the name of the corresponding key figure will dynamically change:
    After refreshing and selecting 2013, the column name will update:
    Im not sure though if this is the case with unv universe access to BEx queries.
    Best regards,
    Victor

  • New Formula as a Key Figure in the New Selection

    Hi,
    In the Cell Editor, is it possible to include the New Formula as the Key Figure in the New Selection?
    Please find below the Cell Editor. I have just given the sample of my requirement.
    Column A                                         Column B
    A1) Net Sales ( Cell Reference)             B1)
    A2)                                             B2) Inventories ( Cell Reference)
    A3)                                             B3) Inventory Days ( New Formula)
    A4)                                             B4)
    My Requirement is in the Cell B4 I want to create a New Selection in which the Key Figure should be the Inventory Days ie the cell B3.
    Is it possible to include and if so how.
    Thanks,
    Rajesh Janardanan

    Hi,
    Yes you can change this display by following path in tcode :spro
    Goto >SPRO>SAP Reference IMG>SAP Netweaver>Business Intelligence>Settings for reporting and analysis>General settings for reporting and analysis--> Set alternative currency display(table RSRCURRDISP).
    Flag = A     After value
    Flag = B     Before value
    hope it helps..
    regards,
    Raju

  • Changing the formula to a key figure on a query

    Hello All,
    I do not have access to BEx. I would please like to know how to change the formula to a key figure "Total $" in a QD Promo Analysis query (technical name - N03_Q_D_N03_SD_502_0003). Will transaction RSRT take me to the query and eventually the formula so I can change it? If so please give me guidance as this is the first time I go into transaction RSRT. If there is another way please also give guidance.
    Thank you and kind regards
    Keith Kibuuka

    Hi Vishvesh,
    Thank you for your response. Maybe access to BEx was the wrong word - I do have access although I was trying to avoid configuring the SAP logon to add this particular client onto because I have not done this before. My boss has helped me and I have now have "access".
    Therefore from the query designer can you please guide me on how to change the formula to a key figure on a query? Input from all people is also be very much appreciated.
    Thank you and kind regards,
    Keith

  • Cannot change variable for key date in aggregate

    Hello,
    when I drag time-dependant attributes into an aggregates definition I am prompted to enter a key date or choose a variable for that. I then activate and fill that aggregate. Afterwards I deactivate it and remove the time-dependant attributes so there are no time-dependant attributes in the definition any longer. I then want to also remove the variable for the key date but I can't do so. This property is greyed out and there is no context menu for the entry "Variable for key date".
    The SAP Help says this should be possible by changing the key date variable through the context menu (see http://help.sap.com/saphelp_nw04/helpdata/en/7d/eb683cc5e8ca68e10000000a114084/frameset.htm).
    Has anyone faced this problem, too? I do not want to redefine my aggregate as this is not an elegant solution to the problem.
    Thanks to any answers in advance.
    Regards,
    Philipp

    Hey Karim,
    Because you have time dependent attributes in the aggregate you need to specify key date:
    check this
    http://help.sap.com/saphelp_nw70/helpdata/en/44/70f4bb1ffb591ae10000000a1553f7/frameset.htm

  • Formula Variable for Date/year not possible

    Hi, I have a query where I want to create a formula variable for a year that I can use in a user exit to populate other variables.  When I go to create a formula variable there is not option for a date or year variable.  I only see Amount; Quantity; Price; Number.  Is it possible just to create a formula variable for a year input without having a year time characteristic in the query?
    Thanks!

    I just ended up creating a Formual Variable as a number.  Thank You

  • Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update

    Hello Experts,
    I am getting the below warning while I am installing the business content for Purchasing Cube 0PUR_C04 update Rules
    "Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update rules"
    And the business content activation is terminated.
    Can you please let me know how i could resolve.
    Thanks
    Padma

    Hi Amrit,
    Nice to know Toons suggestions have helped you to resolve your issue.
    There is one bug waiting to explode soon although.
    Check this out after your last insert
    INSERT INTO mth_equipment_shifts_d(equipment_fk_key,availability_date,shift_workday_fk_key,from_date,To_Date,line_num,availability_flag,entity_type,creation_date,last_update_date,creation_system_id,
    last_update_system_id) (
    SELECT b.entity_pk_key entity_pk_key,a.shift_date shift_date,a.shift_workday_pk_key shift_workday_fk_key,Trunc(a.shift_date) from_date,Trunc(a.shift_date) To_Date,1 line_num,'Y',
    b.entity_type entity_type,SYSDATE,SYSDATE,-1,-99999
    --INTO l_site_id,l_entity_pk_key,l_entity_name,l_entity_type,l_production_entity,
    --l_shift_workday_pk_key,l1_shift_date,l_from_date,l_to_date
    FROM mth_workday_shifts_d a ,
    SELECT plant_fk_key site_id, entity_pk_key, entity_name, entity_type, production_entity production_entity
    FROM mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, 'Site', production_site production_entity
    FROM mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, resource_name entity_name, 'Resource', production_resource production_entity
    FROM mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, 'Equipment', production_equipment production_entity
    FROM mth.mth_equipments_d
    )b
    WHERE b.site_id = a.plant_fk_key
    AND a.plant_fk_key=l_plant_fk_key
    AND shift_date>=l_start_date
    AND shift_date<=l_end_date
    AND UPPER(a.shift_type)='BOTH'
    AND a.FROM_DATE IS NULL
    AND a .To_Date IS NULL
    --AND a.line_num=NULL
    AND a.shift_num IS NULL
    There is no COMMIT
    You may want to check that out.
    Cheers!!!
    Bhushan

  • Can we give the more than 2 decimals for key figure

    Hi,
    can we give the more than 2 decimals for key figure while entering the manuall planning.
    Ex:There is keyfigure called 0DEBIT which is having values as 1000.00 USD, 137688.00 USD.which are displaying bydefault whenever we entered the values while planing or File.
    what Customer is asking us 0DEBIT keyfigure values should be display 1000.0000 USD, 137688.0000 USD. ( added two more decimals for keyfigure value).
    Can we maintained decimals more than two.........?
    Thanks,
    Ven
    Edited by: vanarasi venkat on Apr 13, 2009 4:35 AM

    Hi,
    Though you can specify the no of decimal places for each keyfigure in the 2nd screen of layout builder but say if you have entered scaling factor as 1 and decimal places as 4 and user enters value as 15.2546, then in the cube it will be stored as 15.25 because physically the keyfigure can store values only upto two decimal places, so it will round up the figure to two decimal places. But, if you specify the scaling factor as 2 and decimal places as 4 than value 15.2546 will be stored in the cube as 1525.46.
    If above explanation doesn't help you i finding out the solution for your requirement than you have to either change the number of decimal places in the keyfigure or tell user that technically it's not possible in BPS.
    Regards,
    Deepti

  • Key figure description for key figure YKFRFCFGD does not exist in liveCache

    Dear SAP Gurus,
    We have upgraded our APO 3.10 to SCM 5.1,
    Sopport Pack details:
    SAP_BASIS 700 16
    SAP_ABA 700 16
    ST-PI 2005_1_700 6
    PI_BASIS2006_1_700 6
    SAP_BW 700 18
    SAP_AP 700 13
    LCAPPS 2006_700 4
    EA-IPPE 400 13
    SCEMSRV 510 7
    SCM 510 6
    SCMBPLUS 510 6
    SCMEWM 510 6
    SCMSNC 510 6
    SCM_BASIS 510 9
    BI_CONT 703 10
    QIE 200 5
    ST-A/PI 01K_SCM500 0
    and Live cache 7.4.02.29 from to 7.7.03.23
    We facing following issue during APO operation in live cache.
    Error details:
    "Characteristic combinations with liveCache anchor but without time series"
    "Key figure description for key figure YKFRFCFGD does not exist in liveCache"
    "There is an inconsisteny between the key figure descriptions in liveCache and in the database. The key figure description of key figure YKFRFCFGD exists in the database but not in liveCache."
    Kindly help me out on this.

    Please execute Live cache consistecny check:
    for Planning area , check all the option.
    /SAPAPO/TS_LCM_CONS_CHECK
    MPOS:
    /SAPAPO/TS_PSTRU_CONS_CHECK            
    Manish

  • Formula variable for a user input DATE value

    Hi All,
    I want to create Formula variable for a user input DATE value as I need to use it in a formula to compare between user entry date & date in the DSO. Does any body has any idea about it?
    I tried to create formula variable with manual entry but then I am not getting DATE option.
    Regards,
    Sonal

    Hi ,
    You have to create a formula variable in the formula.
    The formula variable in the general tab would have the reference characteristic as your date characteristic on which you have created a user entry variable or on which you intend to create a date entry variable.
    Give the proceesing type as replacement path.
    Next in Replacement path mention you would replace the variable with value of another variable.
    Mention the variable name.(This is the actual varaible created on the selection screen),
    Also mention you would replace only from value/to value of the variable.
    Check the following help link
    [Replacement path type formula variable|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
    Hope this helps,
    Best regards,
    Sunmit.

Maybe you are looking for

  • MSI GeForce FX 5200 bios config???

    I just bought a msi geforcefx 5200 (TDR-128), and I'd like to know what is the best configuration I can put on my bios (MSI K7N2 DL)? AGP clock? 66-120 AGP Voltage? 1.5-1.7 AGP fastwrite? Enable/disable Video cache? Enable/disable Graphic Aperture Si

  • Apple logo changing colors loop

    Hello- I have a iPhone 5c. I bought my phone October 27 of this year. I have had issues with it since the 4th day of owning it and no one can help. So I'm turning to you guys, hoping you have something! My phone will get in a constant loop, and I've

  • Reporting designer - problem with insertin query

    hi, I have problem with inserting query into reporting designer, when i do it there occurs metadata error and the system write check query, but query is ok, there are no variables. Have you any idea whats the problem. thanx

  • How to change max in "for" statement

    Hi, I am trying to set up a snow scene using the code below but I'd like to alter it so that it looks more natural... ie: a few flakes begin to fall, increasing as time progresses. Is there a way to increment the number used in the "for" statement wh

  • Problems with charging MacBook Pro with Retina display (15inch)

    Today, I connected my MacBook Pro with Retina display 15inches to my charger and it did not charge but was showing that charger is plugged but battery is not charging. I checked by disconnecting my charger and I had only 2% of charge left. By the way