Convert characteristic values in key figures in a query

Hello all,
i have a query which provides some key figures and also some probabilties (defined as characteristics). I want to multiplicate the probabilities with the key figures and therefore I need to convert the characteristic values for the different probabilities in key figures.
What is the best wys to do this.
Any help would be great.
Best Regards,
Stefan from Munich/Germany

Stefan,
You need to create a formula variable of your characteristic.
In the Create Formula screen right mouse click on Formula Variable and go through the create process.
The characteristic needs to stay in your query (you can change it's display to No Display) to pass it's value to the formula.
Once you have done this you can use the formula Variable in any other formula.
Regards
Gill

Similar Messages

  • 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...

  • Why do we see only values of key figures of a cube in SE11?

    Hi all,
    When we view the contents of a cube in SE11 why can’t we view the characteristics also? Why are only the values of key figures visible to us? Is there any way wherein we can also view the whole contents of the cube i.e. both the characteristics and the key figures?
    Please explain.
    Thank you.
    TR.

    SE11 gives you the Table View.
    A Infocube is a complex strructure where data is stored in mutiple Tables...
    KEy Figure Values in Central Fact Table...Characteristic SIDs in the DIM Table and these SIDs linked to the Master data table values.
    So, to be able to read the values , you would need to know how data is organised in an Infocube
    Regards.

  • Characteristic with a key figure attribute is displaying the currency

    In our report, we have a characteristic, Grant, with an attribute of Total Grant Amount which is a defined as a key figure.  We recently went to SPU16 and since then the currency is displaying along with the dollar amount.  It looks like this:
    <Heading>Total Grant Amount
    <Row>      USD 20,000.00
    <Row>      USD 120,000.00
    <Row>      USD 209,680.00
    Is there any way to remove USD from the report?  I can't make Total Grant Amount navigational and then filter out the currency.  It's not an option for Grant.  There's no edit capability for Grant to allow it to be navigational.
    Thanks!
    Debby

    You have two choices - new CKF with a nodim function around the key figure
    Or in query properties - display scaling factors - then the USD will go to the top of the column heading
    edit - sorry I just realised this is an attribute key figure not a normal key figure

  • Can I split the contents of characteristic into two key figures?

    Hi experts
    I have a characteristic that represents a discount.  It is entered into SAP as Nnn or Pnn where N means negative and P means positive and the nn is a two-digit number. 
    Within my query, I need to be able to add this discount to another discount type (which IS conveniently entered as -nn.nnn!) and get "total discount".  If I can get the N/P and nn parts of the characteristic into separate key figures I'll be able to create my "total discount" formula.
    This would be so simple to do in code, but can I do it within the query?
    Thanks for any guidance
    Brigitte

    Ravi
    I already tried that but couldn't get it to work.  I thought the offset stuff would do the trick but it didn't work - I just got 0 instead of the two-digit number I was expecting.  (I put in offset start = 1, offset length = 2 to try to get the nn part of the characteristic.)  Also, I couldn't figure out how to get the N or P part of the characteristic as the formula variable dimension doesn't allow characters.
    If you can be more specific about what I should be doing, please reply and I will try what you advise.
    Thanks
    Brigitte

  • Problem with virtual Key Figure in a query

    Hi Experts,
    I would like to share my problem with the virtual key figure in a query:
    I have a query with a virtual key figure and when I eject the query by analyzer, the result sometimes is displayed and sometimes is not displayed (is equal to 0), with the same initials values. And when I eject the query by RSRT always display the result for the virtual key figure.
    Why don't always display the result?
    Thanks a lot

    Hi,
    I think that the problem is the level of support package. We have BI AddOn 7.X (based on 7.20) support package 0.
    What do you think?
    Regards

  • 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

  • Removing Drill Down is not summing up the values for key figure

    Hi ,
    While analysing the data in BW report , I have encounter the problem in getting the correct data.
    BW report is showing two records for material , having different customer ie. customer1 & customer 2 .
    If i remove the customer from the Drill down , then values is not summed up , rather it is showing the values only for customer1
    Scenario:
    With  customer drill Down:
    Material    Customer   Key Figure1   Key Figure 2
    Mat1       Customer1     1000          2000
    MAt1       Customer2     3000          4000
    Without customer Drill Down
    Material  Key figure1  Key Figure2
    Mat1          3000          4000
    In the query designer there is restriction of customer on two characteristic in default value pane.
    The issue is happening for particular material , for other material , BW report is working fine.
    Please suggest , to resolve the issue.
    Regards,
    Sudheer

    Hi Sudheer,
    What properties are set on your key figures 1 & 2.  Could they be set to Min or Max.
    There may be an aggregation level set if they are calculated key figures that is worth checking.
    With regards
    Gill

  • Characteristic display after Key Figures

    Hi,
    I need to display a characteristic in last coloumn of the report.
    i.e., after all the key figures.
    is it possible ??
    regards,
    KV

    when i created new selection and dragged this field...
    display format:
    KF1          KF2      KF3
    Field 1      Field2    Field3
    and if I drag field under all the KFs.
    display format:
    KF1         KF1        KF2        KF2
    Field1-A   Field1-B  Filed-A    Field-B
    there are 2 values in field A & B.
    regards,
    kv
    Edited by: K V on Feb 24, 2009 1:29 PM

  • Passing Char Values to Key figure

    Hi All,
    I have one issue for Inventory cube.
    Every thing is fine with the cube, every thing is fine. since i wanted Last usage date i have enhanced the data source and the date is coming to cube well.
    Since i dont want to put the Date as charecter , i wanted to pass the values of dats(char) to dats(kfg).
    For example : 0APO_DAT this is char date since i need to pass the values to 0GIDATE(kfg). i mapped directly in the transformation level.
    Now the problem is i am getting some dates very well, where ever some cancelled documents(dont know exactly) There the dates are coming as 05/17/4017 instead of 03/09/2009.
    can any one Help me out
    Regards
    Ram
    Edited by: Ram on Mar 10, 2009 10:34 PM

    Ram,
    Could you please check key figure to check what aggregation level it has. It should have Max and make sure that same aggregation level exist in your transformations.
    Regards,
    Pravin

  • How to calculate the value of key figure by considering other char or kf

    Hi
    My requirement is like this:
    I have a key figure which gives me the planned issues and receipts but i know that if only from locaton is blank  and to loc is filled then that are receipts and if both the from and to location values are filled then it is issues,
    can you pls let me know how i 'll put this logic in th reporting bex and how i achieve this by user exit or any other way
    thx
    rubane

    Create two RKF, restrict first with [ from = '#' ] to get the planned receipts, and restrict the second with [ from <> '#' and to <> '#' ] to get the issues.

  • How to add Characteristic text to Key figures in Bex report?

    The result set of a report is like this
                                          Q1             Q2            Q3           Q4
    Payment amount      Payment          2000           4000          1200         1400
                        Recovery         1200           1400           100          200
    Commission          Payment          4000           5000          2000         2000
                        Recovery         2000           2000           100          100
    Total               Payment          1500           1200          5000         4000
                        Recovery          600            200          1000          200
    The first Column Payment amount, Commission and Total are key figures.
    Payment  and recovery are text of a Characteristic Infoobject ( Flag type : X = Payment, # = Recovery ).
    Now the requirement is not to have Characteristic Infobject as Column but to have them as text beside keyfigure.
    LIike this
                                          Q1             Q2            Q3           Q4
    Payment amount (Payment)             2000           4000          1200         1400
    Payment amount (Recovery)            1200           1400           100          200
    Commission (Payment)                 4000           5000          2000         2000
    Commission (Recovery)                2000           2000           100          100
    Total (Payment)                      1500           1200          5000         4000
    Total (Recovery)                      600            200          1000          200
    How to achieve this kind of result?

    Create Restricted Keyfigures to achieve this requirement.
    create 2 RKF for Payment Amount Keyfigure
    Create RKF1 with Payment Amount keyfigure and restrict flag type with "X" and then
    Create RKF2 with Payment Amount keyfigure and restrict flag type with "#".
    And use the RKF's in the query.
    Similarly create two RKF's for each Keyfigure used in the query and restrict it with flag type.
    --- Thanks...

  • How to avoid negative values of key figure

    Dear all,
    I have to create one query based on ODS, in which i will use one key figure, which has negative as well as positive values. In report, i want to avoid all negative values or make them zero. Is it possible?  Please guide me for the same.
    I cann't make any modification to the ODS.
    Regards,
    Pravin.

    Hi,
    To make negative values as possitive you can use the formula abs().
    ie:  abs(key figure)
    You can also create a condition in the query to show only values greater than or euqal to 0. Make it active, then you will get all values greater than or equal to 0.
    Now if your intention is to show the negative values as 0 then use the formula as stated above.
    Regards
    Govind.

  • Value of Key figure in report

    hellow gurus
    i'm workin on Bw 3.5
    i have created Generic DS and for that i have created Customised info objects also..
    but i;m facing one problem with one KEy Figure ( COST of SALE )
    IN PSA  and Cube Content the calue remain the same as Source System
    like
    3078.40
    2697.56
    but in Query it is comin as 307.84 and 269.75
    i have tried with Decimal properties but those r either r for Scalin or Adding dEcimal places after the Decimal
    But my problem is that i'm getting one decimal before one place
    kindly help me in solving this issue..
    Regards

    Hi,
    The automatic multiplication and division happens with the amount associated with the currencies which are present in TCURX table. Here are the details.
    The mechanism is intended to allow the use of currencies (exceptional currencies) that have different number of decimal places from the 2 that is common in many places.
    SAP stores currency values in a data type that has a fixed interpretation of two decimal places. There are some currencies that do not work well with that setting. Usually that is because for some currencies , a fraction o the currency unit is meaningless. That is true of the Japanese Yen, the Turkish Lira, Korean Won and many other currencies whose value is often 10 US cents or less. In some cases, people want to store currencies with more than two decimal places of precision. So, if I want to store 3 decimal places, then I need to have an entry -1 against that currency in TCURX table.
    So whenever we ran a report in bex/wad, it checks TCURX table for currency entry, if there is an entry what it does: Multiplies the value with 10(2-TCURX entry).
    For INR, the TCURX table entry is 3, thats why while loading it into BW, it will be divided by 10 (In external tab of InfoPackage currency conversion should be ticked) while at the time of displaying it in the report it will multiply it by 10.
    But in your case only converse thing is happening. That is at the time of reporting it is dividing the amount by 10.
    Regards,
    Yogesh.

  • 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!

Maybe you are looking for