Calculation of key figure

hi
in BI 7.0 i want to calculate 'Revenue' using formulae in Transformation like
Revenue = sale qty * unit price
where can i give the formulae whether in start routine or transfer routine.
pls give the steps.
and also i used formulae in BEx like  Revenue =saleqty * unit price.
but in the result it is showing BOTH CURRENCY&UNITS like Ex: 20,000 INR KG.
SO PLS give me steps to solve it
thanks
regards
venkat

Hi,
Here in this case youn give a simple formula inspite of routine.If you give any routine it 'll degrate your loading and query performance.
Just  creat anew info object and assign this to cube and activate it.After that go for Transformations map t he Price nad Quantity to newly created info object and double click on that new object ther you can find new window ther under "Rule Type" click the mouse here you can find the 'Formul',select that.It 'll opens a formula window ther give the formuls as price*quatity.save it and activate the transformations.
I hope this 'll help you.
assign points if this helps
Regards
JT Goud

Similar Messages

  • How to create Calculated/Restricted Key Figures in AO

    All,
    In our project we are consuming Bex Queries for AO Analysis. In these  we have lot of calculated/restricted key figures. In bex we can restrict 2 characterstics to one Keyfigure, So can we able to create calculated/restricted KF in AO
    Regards,
    John

    Hello Tammy,
    We are having a reqauirement in which we have 5 Bex queries built on the same infoporvider and we are trying to consolidate all the 5 queries to one single generic Bex query or two. So in AO we would like to consume this query and build different AO workbooks to meet all the old 5 queries requirement.
    So as part of this process, I would like to know can we create calculate/restricted KF's in AO , that way i can make a better decision to create them in Bex VS AO.
    Thanks for your inputs in advance.
    Regards,
    John
    Message was edited by: sunny johnson

  • Input readiness when "Local calculations" on key figure changes

    Hi all,
    i have a planning query with a key figure, posting period and fiscal year (just naming the important chars). the query is input ready but calculates the wrong result. so i wanted to change the way it calculates the result in the query designer, under the "calculations" tab i changed the "Local calculations" - "Calculate the result as" into e.g. "Last Value" (or average, or anything). The key figure then ceases to be input ready in a given workbook.
    any ideas why this happens? what is the connection between the results calculation and input readiness?
    Another line of thought for the same problem:
    for a given year i need this key figure to be the same for all 12 posting periods and the calculated result to be that same number. I do not want to use fiscal year/period (0fiscper) characteristic since i then can not make a flexible tool able to work always for the same 12 periods but for different years.
    is there maybe a way to make the aggregation level to derive the 0fiscper automatically from posting period and fiscal year so that when i include all three into the agg level, the query is input ready even when i don't restrict the 0fiscper?
    thanks in advance,
    K.

    Hi friends,
    Even we are facing the same problem...
    Can anyone tel me why this is happening or Is it an artifact of the 7.1 GUI ?
    Regards...
    Balaji

  • Calculated & restricted key figures

    can any body give me the defination of calculated & restricted key figure

    Hi Leela gopal,
    Calculated Keyfigure and Restricted Keyfigure both are Global Keyfigures in the Query, since we define them at infoprovider level.
    Calculated Keyfigure: When you want to do calculations on Keyfigures we go for Calculated keyfigures, and this one we can use for all the queries defiend on that infoprovider.
    Restricted Keyfigure: When you want restrict the keyfigures values with reference to some characterisrtics we will go for Restricted keyfigures. For example, you want to display sales for Jan in one columns and Feb in one column, then we have to create two restricted keyfigure on Sales objects one should be restricted with 0calmonth on Jan and other should be with 0calmonth on Feb.
    Hope you understand.
    Veerendra.

  • Calculations for Key Figure at CUBE Level or REPORTING Level

    Hi Folks,
    What are the conditions to decide whether we need to go for keyfigure calculations at infocube level or at reporting level.
    How to achieve them if done at cube level.
    Could anyone provide some KT with examples?
    Regards
    Kittu

    Hi,
    I got your point.
    Could you tell me how to use below mentioned formula at transformation time?
    In brief the formula calculates the number of policies using field  " s endorsement type".
    Formula is as below:
    SUM(CASE WHEN S Endorsementtype IN ('004','015') THEN -1 WHEN S Endorsementtype IS NULL  AND S Gross IS NOT NULL  THEN 1 ELSE 0 END)
    No of policies is a calculated keyfigure.I dont have this field in my datasource.
    could you tell me the steps ?
    Regards
    kittu

  • Using Explorer with Calculated Key Figures from BEx (BW 7.31 / BI 4.1)

    I'm looking for suggestions on how to leverage data from calculated and restricted key figures in BEx (from a BW 7.31 system) with Business Objects Explorer (from a BI 4.1 system).  Our current process involves some complicated workarounds and with the implementation of BI 4.1 and I'm hoping to streamline things a bit.
    Here is what I had in mind...
    An information space (indexed daily) sitting on a universe (hopefully UNX) that referred to a BEx query on a multiprovider in BW.  My understanding was that universes would be able to consume BEx queries (including their restricted and calculated key figures) in 4.1.  Based on a recent post (http://scn.sap.com/thread/3417905), it appears that the feature that I was hoping for may have not made it into the GA release.  Obviously, I could move the calculations and restrictions into BW ETL or maybe into the universe, but since that work has already been done and lives in the queries, I'm hoping to use them!  Also, we could use a different tool such as WebI, but at this point the user base is comfortable with Explorer and we would like to continue to use it.
    Suggestions? 
    Thanks!
    -S

    Hi McDowell,
    Regarding to the BEx connection in Explorer, SAP provide two solution
    1. BWA connection
    2. Unv on top of connection
    For the UNV situation, you could use the calculated / restricted key figure in the system but please assgin the aggregation level for them (Database delegate is not supported if I am not wrong)
    Also plese consider two points
    1. Data size (UNV cannot support large data size)
    2. Scheduling (Explorer does not support event trigger? correct me if I am wrong)
    Best regards
    Alex yang

  • Filter by Key Figure or Calculated Key Figure?

    Hi,
    Is it possible to filter a report on key figure or calculated/restricted key figures? If yes, then how?
    Here is an example of my problem:
    I have a restricted key figure for invoice – that picks out the last invoice value between two dates (variable), for instance 2004-01-01 and 2004-12-31. Now, in my query I would like to EXCLUDE materials which don’t have any invoice values between those dates:
    Now:
    Material A 1000 USD
    Material B
    Wanted:
    Material A 1000 USD
    Best Regards
    /Daniel

    Hi Daniel,
    you would use Conditions to achieve this! You can create them in the Bex Query designer.
    Regards,
    michael

  • How to calculate key figure before aggregation for complex formular?

    Hi, buddies
    <b>Here's the simplified senario</b>:
    I have a cube, in which the characteristics are 'Calendar Day' and 'Hour' (values are 01~24), and the key figures are stored by day and by hour.
    What I need is very simple, a query to display calculated key figures only by Calendar Day. I don't need Hour information.
    So I create a query: column charact is Calendar Day, rows are several calculated key figures.
    <b>Now the problem is that</b>:
    if I don't put 'Hour' as row in the query, I'll get WRONG result. But if I put 'Hour' as row in the query, I'll get CORRECT result, but all the 'Hour' details will display, which should be hided.
    <b>I know the reason is that</b>:
    the calculated key figure that I create should be calucated before aggregation, not after. But since the formular is pretty complex, I can't change the 'Time of Aggregation Calculation' in key figure's property. (It's greyed out.) So I have to put 'Hour' as row in the query to force calcuation 'before aggregation' in query and set the property 'Calculate Result As...' as 'Summary'.
    <b>My question</b> is:
    whether there's any other way to force calcuation 'before aggregation', so I don't have to put 'Hour' in the query.
    If no, is there a simple way to hide the 'Hour' details and only display summary result ON THE QUERY LEVEL? (
    <i>I can hide detail lines by using web template, or maybe using VB in excel. But I can't use either of them. I want to hide the details on the QUERY LEVEL. So I can use the query directly in any other reporting tools, like Visual Composer.</i>)
    Any idea?
    Wei

    Hi, Sudeepta
    Thanks for your reply.
    I did try to set 'No display' for 'Hour'. The result is that the Characteristics 'Hour' doesn't appear on the query result, but the detailed line of key figures still display on the result. It looks like the followings: (I put summaries on the top/right)
    Date  1/1  1/2  Overall result
    KPI1    10        11   22  (sum line)
    KPI2    20        21   41  (sum line)
    KPI1    12        13   25  (detailed line)
    KPI2    13        13   26  (detailed line)
    KPI1    11        12   23  (detailed line)
    KPI2    12        12   24  (detailed line)
    I want to suppress all the detailed lines and leave sum lines on the result.

  • Suppress cumulated key figures for actual data

    Hello all,
    I have build a query which display monthly actual and forecast order income for an ficsal year. The fiscal year starts in July and end in June
    The forecast data were loaded in BW over an flat file for the whole fiscal year. The actual data gets loaded daily from R/3.
    When I run the query and select the whole fiscal year and displayed the key figures as "cumulated" in the query properties, I can see all the cumulated forecast values (for 12 months) but the actual order income data just cumulated till the current month (December). For the next months (until June) always the last value from December remains.
    I want to provide a line diagram in a Web Application, which shows the forecast and the actual data. Right now the line for the actual data stops to raise at the current period and gets continued as a horizontal line till the end of the fiscal year.
    Therefore my question is: Is it possible to suppress values for actual data for the next periods in order to end the actual order income data line in the diagram at the current month.
    Any ideas would be great.
    Best regards from Munich,
    Stefan

    The one thing I can think of would require a very messy way of doing things, but it would probably work.
    If you created a set of calculated/restricted key figures for each period of the fiscal year (non-cumulated), you could also have a set that cumulates up to each period. Then, in the calculation, you can set the stipulation that if period x is not > 0, then don't sum that particular colum. Then, supress columns that don't have any data in the structure properties. I think you'd end up with 24 columns, 12 hidden, and some that won't display depending on which values exist.

  • Use of Aggregation tab of key figure

    Hello Gurus ,
    Please tell me use of Aggregation tab of key figure , and where it affects ?

    hi,
    check the below links for aggregation and with examples..
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/607899dcce6834e10000000a421937/frameset.htm
    To enable the calculation of key figures, the data from the InfoProvider has to be aggregated to the detail level of the query and formulas may also need to be calculated. The system has to aggregate using multiple characteristics. In regard to a selected characteristic, the system can aggregate with another rule for each key figure (exception aggregation).
    During aggregation, the OLAP Engine in BI proceeds as follows:
           1.      First, standard aggregation is executed. Possible aggregation types include summation (SUM), minimum (MIN) and maximum (MAX). Minimum and maximum can, for example, be used for date key figures.
           2.      Aggregation using a selected characteristic occurs after standard aggregation (exception aggregation). The available exception aggregation types include average, counter, first value, last value, minimum, maximum, no aggregation, standard deviation, summation, and variance. Application cases for exception aggregation include warehouse stock, for example, that cannot be totaled over time, or counters that count the number of characteristic values for a certain characteristic
    assign points if helpful
    regards
    vadlamudi

  • Aggregation ---Settings of KF(Key Figure) in Query Designer

    Hi,
       What is the impact of the following setting in the query result
    Query Designer>KF Definition>Edit-->Aggregation (TAB)
    Exception Aggregation-->MAximum and
    Ref Characterstic
    Thanks

    Hi,
    To enable the calculation of key figures, the data from the InfoProvider has to be aggregated to the detail level of the query and formulas may also need to be calculated. The system has to aggregate using multiple characteristics. In regard to a selected characteristic, the system can aggregate with another rule for each key figure (exception aggregation).
    http://help.sap.com/saphelp_nw04s/helpdata/en/75/21054da1392649948e5b94e4fc4bce/frameset.htm
    Exception aggregation ?
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/53717c223a1bcde10000000a1553f7/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/4d6d902dbb22c5e10000000a42189d/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/5dfdca3ea9427fe10000000a42189d/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/e0173f5ff48443e10000000a114084/frameset.htm
    Rgs,
    I.R.K

  • How to display the single characterstics (top one) wrt  key figure

    Hi,
    I have got a reporting issue like::
    Values in Cube-
    GL     Fiscal year/period     Doc no    Amount
    1         2004.006                 1              10000
    1          2004.006                2               15000
    1          2004.007                3                20000
    i want to show in my report as--
    1      2004.006                  1               10000
    1       2004.007                 3                20000
    i.e it should pick only the first line from cube corresponding to the 2004.006 period..

    Hi,
    You have 2 options
    1. you can create a transformation and write a starteroutine so that it takes the first record of the document number. but in practical it is not advisable because the cube contains inconsistant data and you cant develope any other reports on it.
    2. Next option is
    Step1
    You  need to write the user-exit to populate Reporting related variables in the Enhancement assignment RSR00001 and select the FM EXIT_SAPLRRS0_001 and then in the include ZXRSRU01 we need to write the code. These are helpful especially we need to derive any varible. (here in your case you can create a customer exit variable for Document number not ready for input)
    Along with that:
    BEx User Exit allows the creation and population of variables and calculations for key figures and variables on a runtime basis.
    Step2
    After creating the variable , For populating the values use the Function module RSDPL_CUBE_DATA_READ to read the data for the cube and populate the same into the internal table.
    Step3
    For the internal table you need to sort the document number and the date so that it picks the top most record in displaying the data. and in the out you will get as you requirement is
    1 2004.006 1 10000
    1 2004.007 3 20000
    Last option but looks silly
    Develop one more Cube which is above your existing cube . and develope a start routine which takes the first record from the cube. and now you can develop the report based on the new cube ( in this new cube the data will be there for the first record)
    hope this helps
    Santosh

  • Manipulate key figures using CMOD

    Hello All,
    I would like to know if we can write a customised user exit using CMOD and manipulate the restricted/calculated key figures for a particular BeX query..or is it that these exits manipulate only the standard key figures?
    Regards,
    Dipali

    Thanks for the prompt reply.
    I would like to explain the scenario in brief.
    The requirement is that I have some calculated key figures and some restricted key figures.I need to further create key figures based on these calculated/restricted key figures to dynamically achieve results based on the user input because of which some customisation on these key figures needs to be done.I therefore felt that through some ABAP code placed through CMOD would solve this purpose.
    Would it be possible?
    Regds,
    Dipali

  • ELSEIF in calculated key figure

    Dear gurus
    We have recently upgraded to NW2004s, and would need some help on the formula for my calculated key figure. This calculated key figure is meant to replicate IF... ELSEIF statement, depending on what the user enters. The logic that we have are as below :
    IF Var=1, then display key figure A
    ELSEIF Var=2, then display key figure B
    ELSEIF Var=3, then display key figure C
    ELSEIF Var=4, then display key figure D
    where Var is a Formula Variable, Processing By User Entry/Default value.
    The formula that we have originally, in BW3.5 is :
    <i>(Var == 1) * 'Amount in TC' + (Var== 2) * 'Amount in Comp Code' + (Var == 3) * 'Amount in Parall USD' + (Var == 4) * 'Amount in Hard Cur' </i>
    This formula has served us well in BW 3.1 to BW 3.5, and never had any problems with it. However, when we migrated over to BW 7.0, we could not get values for this formula (eventhough we have data in our cubes). The only data that get is when we key in Var=1, but when we try with Var=2, 3 or 4, no data is displayed in our key figure.
    We tried to debug, but somehow we could not figure out how the new BW7.0 calculates these type of key figures, and whether is there a change in the formula variable. We believe that the problem may lie in the way that BW 7.0 interprets the formula above, and only obtains the first portion of the formula (Var==1).
    We would appreciate any helps, and of course, points will be awarded if problem can be solved.
    Thanks a lot

    Dear all
    With some luck in searching, I manage to find an OSS note which depicts this error and resolve it. For those who have the same problem, please use this OSS Note 994194.
    Cheers

  • Problem in Calculated Key Figure in BEx 7.0

    Hi All,
    In Bex 7.0
    We have a requirement where we need to display a key figure which is having unit price of an Article. In our InfoProvider we have Article, Store and Date and the report is based on Article. As we have to display only the latest price we have created a RKF by putting a restrcition of the latest date in the date range on the the unit price key figure. But still unit price is getting aggregated over stores.
    For example if there are 10 stores and the unit price of an article is 5, then data displayed is 50 and not 5.
    We tried to create a Calculated Key Figure using the above RKF and an exception aggregation Average of all detailed value that are not zero, null or error on reference characteristic 0PLANT. Its working fine when the query is restricted to one or two Articles. But for all the articles it gives the following error messages.
    1. Error while reading data; navigation is possible.
    2. Error occurred during parallel processing of query 17; RC3
    3. Error executing physical plan: AttributeEngine: no 6952
    4. Error reading the data of infoprovider ZXMSC01$X
    5. Amount of data that is to be read from the BIA server is too large
    6. The following error 6952 occurred in BIA server
    7. Error executing physical plan: AttributeEngine: not enough memory;BwPopMerge pop1(setIsLastMerge(1)),in executor::Executor in cube: p03_zxmsc01
    Can anyone tell me the solution for the above error. Or if there is a workaround to our requirement.
    Regards,
    Sachin

    Hi,
    Could be a memory issue.
    One of your cube in on BIA which is causing the Problem.
    So executing the query in RSRT by selecting Do not use BIA index option.
    If the query is executed with out any issue then take the cube out of BIA and push it back.
    Hope it helps.
    Regards,
    Raghu
    P.S : Also please let us know if this query is live and it is an issue that you are facing after executing it properly for few days.
    Or this is a new query created and testing now and in the process got this error?
    Edited by: Raghu tej harish reddy on Sep 24, 2009 5:53 AM

Maybe you are looking for

  • Performance issue and data getting interchanged in BO Webi report + SAP BW

    Hi, We are using SAP BW queries as the source for creating some BO reports. Environments : SAP - SAP BI 7.1 BO - BO XI 3.1 Issues : The reports were working fine in Dev and Q with less data. But when we point the universes to BW prod ( where we have

  • Error message when trying to open a newly installed Adobe Reader from Old Software reinstalled

    I am unable to open my Adobe Acrobat Professional 7 that came with Adobe CS2. There is an error message that says "No valid Acrobat Serial Number found. Acrobat will now quit." There is no area to input the serial number even though I have it on the

  • Data format

    what type of data formates r used in ws_upload and GUI_UPLOAD, what is the difference between us

  • HT201250 Time Machine Error

    Just bought a new 1 TB external hard drive specifically for a Mac and time machine error: unable to complete backup. An error occurred while copying files to the backup volume. messages keeps appearing.  Tried to restart and that didn't help.  Please

  • I want to learn how to use ActionScript

    Where Am I With Flash? I have adobe Flash CS3 Professional. I have looked at the tutorials from the 'getting started' section of the Video Workshop DVD and understood them. I can do simple things like shape tweening, adding butons ect... I would like