Can a Calculated key figure be derived from characteristic value?

Hi,
I would like to know whether BW allows to derive a calculated key figure based on a characteristic value. Let us say we have a row like
PLANT-DAY-INVENTORYQTY
and based on my plant value, I want to have another column 'CALCULATEDSCRAP' which is derived from 'PLANT' and INVENTORYQTY (I know this is a crude example, but will do for my need)
Is there any way in BW to get this logic implemented?
Thanks,
Ajay Das

Hi Tom,
I have a very similar problem. In my if logic i compare to dates  but I don´t understand what you meen by
"Therefore I suggested to add an attribute to convert the characteristic in a number and use this number for the if logic."
For the moment, the condition calculates each field individualy correctly but doesn´t treat them as numbers when aggregating.
Thanks in advance,
Victor.

Similar Messages

  • Highlight a key figure based on a characteristic value

    I have a query set-up with the following information fields:
    Project_Phase (characteristic), Phase1_ForecastFinishDate (key figure), Phase2_ForecastFinishDate (key figure), Phase3_ForecastFinishDate (key figure), Phase4_ForecastFinishDate (key figure), Phase5_ForecastFinishDate (key figure)
    As you can see from the above, the first field is a characteristics and the others are key figures.
    I want to set the query up so that if for example, Project_Phase = u201CPhase 2u201D, then the corresponding ForecastFinishDate would highlight green u2013 in this case it would be Phase2_ForecastFinishDate.
    Is this possible using an exception, or any other method for that matter. We are using version 3.5.
    Cheers.

    Simon,
    The best way to create it is using exceptions and conditions.
    Follow the link to the conditions:
    http://help.sap.com/saphelp_nw70/helpdata/EN/1e/7875a998bc44409f6002e28552685a/frameset.htm
    I hope it helps.
    Thanks,
    Daniel

  • Can one call a function module in Calculated Key Figure?

    Can one call a function module in Calculated Key Figure? If  yes how, if not, what is the solution if formula does not suffice?
    I want to convert duration which is in seconds to   Duration in Hours and Minutes. There is a function module for doing it. Not sure how to do it in a formula.

    One option you have is a Virtual Key Figure and User Exit to use the Function Module to convert the time from seconds to HH:MM. Here are two documents on this subject to help you create them, based on the technology your comfortable with:
    [Implementing Virtual Key Figure/ Characteristics Makes Query More Dynamic|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e051fda8-71a9-2a10-ac9e-8d17414a8c8c&overridelayout=true]
    [Step By Step Process for Virtual Key Figures and Characteristics through BAdi|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60e34f63-f44c-2c10-488e-c89b04e0ca7c&overridelayout=true]

  • Calculated key figures from multicubes before aggregation

    Hi,
    I am calculating a total using a calculated key figure
    that has one key figure from a multicube and two other key figures from another multicube.
    Also I factor the total using a variable with a replacement path on the dummy attribute (Constant) to "force" the calculation at the material level.
    Cost = Cost(CUBE1) / Quantity(CUBE1) * Quantity(Cube2) * ZVRMATER1
    Problem:
    If I split the calculation this works before aggregation at the material level. Also this works fine using calculations that use key figures that must be calculated before aggregation if they all are from the same cube at the time.  The required formula above will not work (zero divide) since during selection the OLAP processor retrieves in phases and with value 0 from the key figure of CUBE2.
    Any suggestion on how to solve this without new back-end development?
    Thanks.

    Hi,
    I am calculating a total using a calculated key figure
    that has one key figure from a multicube and two other key figures from another multicube.
    Also I factor the total using a variable with a replacement path on the dummy attribute (Constant) to "force" the calculation at the material level.
    Cost = Cost(CUBE1) / Quantity(CUBE1) * Quantity(Cube2) * ZVRMATER1
    Problem:
    If I split the calculation this works before aggregation at the material level. Also this works fine using calculations that use key figures that must be calculated before aggregation if they all are from the same cube at the time.  The required formula above will not work (zero divide) since during selection the OLAP processor retrieves in phases and with value 0 from the key figure of CUBE2.
    Any suggestion on how to solve this without new back-end development?
    Thanks.

  • 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

  • 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

  • Using Characteristic in Calculated key figure

    Hello every one,
    I need a help. Can anyone help me in solving one requirement.
    I want to know if i can use a Characteristic in calculated key figure.
    Thanks in advance.

    Hi,
    You can try to create a formula variable of type replacement path and supply this char to pull the value from. Evaluate this value as a boolean (1 or 0 for if there is a value or not). Then you can create a new formula using this formula variable and your CKF. If the result is 1, then you get the value of the CKF, or if the indicator returns 0, then you get 0 as the result.
    Hope this helps...

  • Currency Translation for Calculated Key figures

    Hello Friends I want to use the Currency Translation for Calculated Key figures.
    But when I go to Query and go to conversion tab it is always greyed out. Does that mean we can set the fixed conversion type for calculated key figures. like ZSAD Total debit - credit -flow value.
    What is the way to do fixed currency translation in query for calculated key figures.
    All the below is done now just want to specify this in query but I can'nt since it is greyed out.
    All the below is done
    I have created a Currency Translation Type " FiscperConversion" "ZVHGR" now this has Exchange Rate Type from Variable "ZVARN" (Which is a variable single value manual input on 0RTYPE Infoobject for exchange rate.)
    2. Now Currency Tab: Target Currency is selected from Variable placed in the Report. ZRPVAR.
    3. Now the Variable Time Reference is used. Standard Infoobject 0FISCPER
    which is beginning of period.

    Hi soniya
    Your calculated KF is result of some calculation ...so system will not allow u to do any translation on it...to get CT on CKF you should do it on base key figure...still if you wish to do then you can create a formula variable having processing type a customer exit...write code in cmod to rad exchange rate and multiply ur CKF by this formula variable....
    Thanks
    Tripple k

  • How to add unit to calculated key figures in BEx

    How to add unit to BEx calculated key figures in SAP BW BEx?
    I would like to add a unit to a calculated key figure in SAP BW BEx, so that it gets visible on the end user level. Currently the unit field is empty. I calculated the value from various key figures with different units and removed the units with the NODIM()-function. Is there an inverse function to NODIM() with which you can add a specific unit (like EUR or TAG).
    The "How tou2026 Report Data in Alternate Units of Measure" does not seem to cover the point.
    "Quantity Conversion Guide for SAP Business Intelligence" refers to the "Conversion" tab.
    I suppose you have to add a conversion routine, which is 1:1 and sets the target unit defined in BEx.
    Has anyone tried this? Is there a more simple solution?
    OLAP-Quantity Conversion:
    http://help.sap.com/saphelp_nw70/helpdata/EN/27/b65c42b4e05542e10000000a1550b0/frameset.htm

    Hi,
    if your CKF will have always same unit and you have one KF in you inforpovider with this unit, you can try to do this trick
    create a new hidden CKF as new CKF = KF / KF (with this equale new CKF = 1 unit)
    change your old CKF as old CKF = old CKF * new CKF
    let me know if it works.

  • Calculated Key Figures in IP FOX

    Hi,
    I would like to modify the calculated key figures using custom Formula planning fuction (FOX). Can some one let me know how to change these calculated key figures from BEx.
    I have found a thread discussing the same topic.
    Business Planning
    So do we have to definitely create a key figure in real time cube to be able to change the values in BEx calculated key figure.
    this is only for simulation purpose based on some key figure values and not for storing values in the cube.
    Regards
    Bhav

    Hi,
    If I understood correctly, you are asking why we have that "planning" tab in the properties of Calc KFs also? I think its just that the properties tab for all KFs is the same (no special customizing for any kind of KF), but it obviously doesn't make sense to set planning properties for calc KFs.

  • Problem saving queries with calculated key figures

    Hello Experts,
    I am analyzing this problem since many hours during the last weeks and I don't know, what else to do.
    The problem is saving a key user query containing a calculated key figure in the production system (BW 3.5 SP SAPKW35015). The Error 'The query could not be saved due to a problem in transport' occures.
    If I exclude the KF from the query, saving is possible, so the calculated KF must be the source of the problem.
    The system is set to not changeable, but the 'Object Changeability' of 'Query Elements' in 'RSA1' --> 'Transport Connection' is set to 'Changeable Original'. If I set this option to 'Everything changeable', saving of the query works, but this is not possible in production, because transported standard queries would also be changeable.
    For saving queries, die authorization object S_RS_COMP and S_RS_COMP1 is included completely with *, but this does not help.
    I also transported the query and the KF again from development system ... no change, same problem.
    I found the SAP note 533413, but what does this mean? "This problem can only be solved in the next BW release ..." I heard from colleagues, that BW 7.0 has the same problems.
    Does anyone have an idea, how to solve this problem?
    I would be very thankful for any reply...
    Hannes
    Edited by: Hannes Heidrich on Jun 23, 2008 12:07 PM

    Thank you for your answer, but I have set the Object Changeability to Everything Changeable and restricted the user with S_RS_COMP. So only certain query names can be used and changed. Experiences from collegues said, that deleting and transporting again would not help.
    Best Regards,
    Hannes

  • Error when Using a Calculated Key Figure

    Hi,
    I am having a problem using calculated key figures (CKF's). I am not getting any errors
    when i am creating them but when i pull the same into the report it is giving an error
    SUB FORMULA not available. Can you please advise how to fix this issue.
    Thanks
    Rashmi.

    Hello Rashmi,
    thius is a known issue. The procedure from note 1238872 can be useful:
    Download the BI 7.0 front-end add-on for SAP GUI 7.10, Support Package
    700 from the SAP Service Marketplace.
    Then save the calculated key figures in the InfoProvider (left-hand side
    in the Query Designer):
        o  Select the calculated key figures in the InfoProvider.
        o  Save the calculated key figures using the context menu
        o  or in the properties of the calculated key figures (right-hand
           side in the Query Designer).
        o  If other calculated key figures are used in a calculated key
           figure, save them as described above.
        o  For safety reasons, also save the query definition.
    If the calculated key figure was saved correctly, the system does not
    issue any error messages when you check the query definition (by
    choosing "Menu -> Query -> Check").
    Cheers,
    Ricardo

  • Calculated key figure definition dropping off

    I have a query with lots of calculated key figures (ckf). As I create more ckfs, the underlying definition of some ckf as old as 2 years old are removed. When I run the report, it throws error. What I have done is to put pack these calculations and it works. What can I do to stop the definitions from dropping?

    Hi,
    Can you please provide us the error message you are getting?
    Thanks & Regards,
    Vipin

  • Restricted & Calculated Key figures and Structures

    Hello Gurus,
    I'm using a BW Query to create my universe and all I see is a class called Key Figures and few objects. I don't see my restricted and Calculated Key figures.
    Also I want to understand how are the Structures in BW Query brought into Universe? All I see is a column class and row class with corresponding objects in it.
    Environment: BO XI 3.1
    Appreciate your help.
    Regards,
    Vijay
    Edited by: vijay dwivedula on Jun 12, 2009 7:46 PM

    Hi Ingo,
    Sorry for getting back a little late on this issue. I've been trying to fix other issues. I'm creating my report out of BW Query and I'm not able to see all the Restricted Key Figures. Also when I try to create my report out of existing key figures and verify the data with BW analyzer the data seems to be different.
    What happens is in my universe I've two classes naming Rows_xyz, Column_abc etc and there are like 25 objects in Rows_xyz when there are supposed to be like 60 key figures and in Column class I have a single object. When I pull in this coulmn obect and pull like 3-4 key figures (which I made sure have data from BW Query Analyzer) doesn't return any data. It doesn't even throw an error as No data to fetch.
    I took the MDX Query that is generated by this report and ran it on the backend and see that there is no data even there. But from the BW Query Analyzer I can see data for this Column and the key figures that I pulled in the report.
    Thank you for your help
    Vijay

  • 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

Maybe you are looking for

  • Error while creating a view

    Hi All, I am getting the below errors while creating view. ORA-03135:connection lost contact ORA-03134:not connected to ORACLE Please suggest. Thanks AJR

  • ISE 1.1.1 temporarily unvailable during VMWare snapshot

                       Hi all, we have a distributed deployment and when we snapshot out ISE VM's, they become unavailable for 1 - 2 minutes... Is this normal? Is anyone else seeing this? they have VMWARE tools installed although VSphere Client is showin

  • TSV_TNEW_PAGE_ALLOC_FAILED Error

    Dear Experts, I have received multiple short dump Like "TSV_TNEW_PAGE_ALLOC_FAILED" in weekly twice Server : Sun solaris/Oracle 10g- 64 Bit, 32GB Ram, SAP NetWeaver 2004s one CI+DB and 3 APP servers. When I checked Work process level it says A Tue Au

  • Adding Field in DS Planning Board

    Hi Experts, In APO DS Planning board /SAPAPO/CDPS0 for "Deallocate" subscreen i want to add a field "Planning Group". Is it possible to change the layout by Customising ? Regards, Karthi.

  • HT4623 I cant update my ipod

    how do I install the iOS to my ipod?