Result row: absolute values

Hi,
In the properties screen of a key figure, the user can chose a lot of possibilities for <i>Calculate result as</i>. But there is nothing like 'absolute value'.
What I want to achieve is that the BEx report is calculated in the normal way, but the only difference is that the result row should only contain positive values (that means: negative values should be multiplied by -1 ).
Remark: the result may NOT be a calculation of absolute values! Instead it has to be a normal calculation (sum) and at the end, the minus sign of the negative values should be removed.
<u>example:</u>
A:          2000
<u>B:         -3500</u>
R:     1500
Thank you in advance!

Bart,
Try this.
Create a Formula for your key figure.
Create an If condition and implement the logic
Use the boolean funtion LEAF() - which returns 1 for individual values and 0 for results.
E.G
(leaf(KF)=0)((KF<0)(-1)(KF)+ (KF>=0)* KF) + (leaf(KF)=1)* KF

Similar Messages

  • Result Row calculation

    Hi  result rows calculation is not happening properly in result rows as per the formula .
    Formual for Absolute Error =  Final forecast - Actuals
    Follwing is the report out put
    Material                    Period01
    10324401     Final Forecast        733,490.000 LB
         Actuals              555,583.67 LB
         Absolute Error       177,906.33
    10326795     Final Forecast        1,306,894.935 LB
         Actuals               1,406,158.27 LB
         Absolute Error         99,263.33
    10329435     Final Forecast         188,000.000 LB
         Actuals               192,000.00 LB
         Absolute Error        4,000.00
    10580325     Final Forecast        76,105.938 LB
         Actuals               215,999.82 LB
         Absolute Error        139,893.89
    10580427     Final Forecast        158,733.076 LB
         Actuals                0.00 LB
         Absolute Error         158,733.08
    Overall Result Final Forecast        2,463,223.949 LB
         Actuals                2,369,741.76 LB
         Absolute Error         579,796.62
    In the above report , Material wise calculation for Absolute error is correctly calculating ,  BUT when it comes to Over all Result  its just summing up all  materials Absolute error and showing .
    What i want in  over all result  is Absolute error should be calculated as overall Final Forecast - Over all actual ( I.e formula should be applied to over all result also ).
    I tried with exception aggragation and other stuff but nothing is working .
    Can any one Help me  to apply the formula for result rows also ...
    Helpfull inputs will be appriciated with points .
    thanks in advance

    Hi All  thanks for ur replies .
       I solved my issue  as  following  .
    Formual for Absolute Error = Final forecast - Actuals
    For Absolute error  formula  there are some ' exceptional aggregation ' and 'calculate result value as '  .
    I removed these ' exceptional aggregation ' and 'calculate result value as '  and refreshed the report  now  in result rows
    ' Absolute Error'  is calculating   as desired i.e by using result rows  ' final forecast' value & ' actuals' values in the formulae .
    Regards
    Navenas

  • Overall Result Row is not the Sum of Individual Values!

    I am frustrated with a weird problem.  I have an expense report in which Expense1 is shown a value of 8,126.  If I drilldown by company code, the sum of the company codes is 8,235, but the "Overall Result" row is showing 8,126. 
    I tried drilling down by GL accounts, cost centers, profit centers, material and even currency.  For all of these drilldowns the "Overall Result" row is 8,126 but the individual values sum out to be 8,235.
    First I thought it could be "Zero Suppression" that is hiding some values from the display.  But "Zero Suppression" was not active at all.  I have checked the LISTCUBE and saw that the Expense1 should be 8,235 and not 8,126.  The key figure properties "Calculate Result As" and "Calculate Single Values As" are set to "Nothing Defined" and "Use Default Direction".  But still for some strange reason, the "Overall Result" row is different than the sum of individual rows.  It's driving me crazy as I have ran out of ideas to figure out what's happening.  Could someone help me with this?  I would appreciate any input with points!

    Hi,
    Remove the 'Suppress Zero rows/columns' from the query definition and then check the values.
    Column A might have value, but for the same row column B might have zero, hence the row was not shown in the result set, but the overall result will include all such values as well, even thought it was not shown in the result set.
    HTH,
    regards,
    Nataraj.

  • Query with a condition - Overall results row displays incorrect value

    Hi All,
    I have a bw query with top 40 conditions. However, The Overall Result Row Figures Do Not Equal The Sum of the Column Rows.
    Although the top condition is activated, the overall result still displays the overall result of the whole report.
    I have 3 columns in the report
    Selected Period
    Prior Period and
    Variance
    The formula for variance is (Selected Period/Prior Period)-1.
    Does anyone have an idea to fix this?
    Thank you so much in advance.
    Have a great day!

    Hi Gaurav,
    Thank you so much for your reply, however this does not solve fully the issue.
    Changing the properties to "Summation" will indeed provide me with the correct sum for the "selected period" and "Prior Period." However what I need in the Overall Result Row for the "Variance" column is not the total but instead the value when the total of Selected Period is divided by Prior Period then minus 1.
    Overall Variance = (Overall Selected Period/Overall Prior Period)-1
    Do you know a way to make this possible.
    Thank you so much.

  • Removing result row value for a single KF rather than all KFs in a query.

    Hi,
    Is it possible to remove the value in the result row of a query for a particular keyfigure? I want the the values in the result row for all the keyfigures except one. This particular keyfigure should have nothing in the result row. Is it possible in BEx Query Designer? Because my current setup doesnt allow me to use any other BEx tool other than query designer. Would appreciate if someone can provide me a solution for this using query designer. Helpful replies will be rewarded full points.
    Regards,
    Anurag.

    u can do that...
    enter into query designer
    open ur query
    go to columns / rows
    select ur keyfigure
    on right panel u will see properties for that particular keyfigure
    go to the Result row option
    Select CALCULATE RESULT AS
    then select SUPRESS/HIDE OPTION..
    that way u can suppress the result rows for ur keyfigure.

  • Result row shows min. value as Blank.

    Hi Guru,
    I have following scenario in query,
    Eg.
    1.Values in objects in column,                           10,000
                                                                            Blank (no value)
                                                                            2,000
                                                                            Blank(No value)                     
    Result Row  shows                                         Blank (instead of 2,000)
    2. Values in same object in same column           10,000    
                                                                            2,000
                                                                            3,000
                                                                            1,000
    Result row shows                                          1,000 (which is Correct one)
    If value in column is blank then it is showing me minimum value as blank but in real it has to display min of all row, second if row  is not blank then it is showing correct min. value in result row (As mentioned in second examlp)
    Please suggest me what i have to do to get exact min. of  all values in Result row.
    Thanks,
    Ganesh.

    hi all,
    Thanks for contribution.
    But i want min. values from all rows in my result row.if it is not suppresed by Zero then also it hase to display min value (I MEAN fIGURE LIKE 2,000) from row.
    if i do supress Zero then it is diplaying as Blank hense all resulti row is display blank but i dont want that i want if row value is Zero or Blank it will display as min. of all figure NOT ZERO OR BLANK LIKE ABOVE EXAMPLE IT IS 2,000.
    Thanks,
    Ganesh.

  • Result Row of Formula is not using the displayed values

    Good Day,
    I got a query with following layout
                        Child Ship     Parent Ship     Rate
    Child          Parent          ST     ST     %
    Material A                         F6WH           F6WH     55     22     250,00
              F7D1           F7D1     55     33     166,67
              F8LG           F8LG     55     11     500,00
              Result                  55     66     250,00
    The child ship key figure has a setting calculate result as average to display the total shipment of the child. Rate is defined as formula  Child Ship %A Parent Ship.
    In the result row as Rate I require 83% (55 divided by 66).
    It seems that the Rate formular still uses the SUM of child ship 555555 (165 diveded by 66).
    Anyone an idea how to get the "wanted result" of 83% ?
    Thanks for all replies in advances (points will be assigned).
    Axel

    Hi,
    As far as i understand the issue is with the child ship keyfigure in that you have  selected calcualte result as average which is only for display purpose that result cant be used for futher calculations.
    If you want to calculate the average make use of exception aggregation.
    Make a new formula and put you keyfigure for which you need to calculate avg. then hit Aggregation tab---Exception aggregation as average and refernce characterstic choose on which you are getting unique set of values.
    Then continue with your other steps.
    Hope it helps.
    Regards,
    AL
    Edited by: AL1112 on Jun 8, 2011 2:35 PM

  • Result Row value Issue

    Hi All,
    I have created a query which has multiple selection & formula in it. One of my formula is not working properly.
    Description of the issue:
    Key figure is "no. of Shipment"
    A calculated key figure "Total no of Shipment" is capturing the result row value of "No of Shipment".
    But some time it doesn't work as expected. I don't know why.
    For example if I select a week range then it dosen't work. I have used the "Total no of Shipment" in no. of other calculated key figure for calculation.
    Meaning for %On-Time = (On-Time A%Total no of Shipment)
    Below query is filter by fiscal week =Result
    Plant|FiscalWeek|NoofShipments|Totalnoof Shipments|%OnTm 
    =====       ======   =========  ==========    ========
    A  |        Result  |     98    |    78    |       104.10 %     
    Here  "Total no. of Shipment" should be 98 but is not able  to pick up the Result value  & it getting 78...I don't know from where it get the number.                                                    
    Please let me know if any body has faced similar case or is there any OSS note to fix the issue.
    Thanks
    Mahendra

    Hi Rishi,
    I tried as per you're suggestion. It didn't work.
    See my key figure is "No.Of Shipment"  & formula is
    "Total no. of Shipment" = SUMCT (No.Of Shipment)
    So whenever the result row of "No.Of Shipment" changes then "Total no. of Shipment" should pick up the value.
    Please let me know if you have any other solution.
    Thanks
    Mahendra

  • Result row does not hide value

    Hi all,
    I have some calculated key figures that are using formula variables to get dates to do calculations on.
    Since summing up date values does not lead to anything meaningful, I selected the 'Hide' value in the 'Calculate results as...' section.
    However, the results row is still showing an 'X' in this column when I run the query.
    I have one calculated key figure for a date using this same method (formula variable from an infoobject) and the result row is hidden correctly.
    Does anyone have any idea on why the result row would still display even though it supposed to be hidden?
    Thanks in advance.

    result rows needs need to be suppressed for characteristic properties.
    in query designer , click on characteristics in your reports ( i.e  rows ) goto display property supress the result rows..

  • Results row shown only at the bottom and not at each value level

    Dear Experts
    I have a report based on a multiprovider consisting infosets and a cube.
    There are several row characteristics shown. 1 of these were set to show results row. But the results row is not shown at each value level but at across all its characteristics level, ie. at the bottom of  this characteristic. So, only 1 results row shown and not 1 results row per each value of this characteristic.
    Some other characteristics are showing multiple rows of results rows but at a certain grouping level and also not at per value level.
    Please advise what could be the cause.
    regards
    Pascal

    Dear Experts
    Solved.
    Due to the concept works like this:
    To see results row for a characteristic, must set it to the char infront, not to the char itself.
    But then when user re-arranges the position of the row chars, there could be an issue.
    Is this a constraint of BEx?
    regards
    Pascal

  • Wrong value in Result Row in a query which includes 1:N relationship SO/Inv

    Dear all,
    I have an InfoSet which includes sales order DSO, PO DSO and Invoice DSO. The purpose is to design a report to show 3rd party order flow.
    Now I met an issue if one sales item contains multiple billing doc. Below is an example:
    Sales doc: S001   order Qty is 600, there are two invoices for this order B001 invoice 200 and B002 invoice 400. Now in report we see below:
    Sales Doc. --   Invoice no.   ---  Order Qty  --   Invoice Qty
      S001 ---B001         -
           600        -
             200
      S002 ---B002         ---        600         -
            400
    Result Row     -
                                     1200      ---            600
    We can see in Result Row totsl order qty is 1200 which is wrong.
    I am wondering if anybody have such experience and the method soving this problem ? Many thanks in advance !

    Hi,
    Normal aggregation calculates the result row as a summation.  However, you can change this default behaviour by using Exception aggregation at "Order Qty" key figure.
    You can find a detailed article with examples about Exception aggregation at:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0b8ed5b-1025-2d10-b193-839cfdf7362a
    I hope this helps you.
    Regards,
    Maximiliano

  • How to change default for Suppress Results Rows

    Hi,
    Does any one know a way to change the default value for the "Suppress Results Rows" from "Never" to "Always" under characteristic properties in a BEX query?
    Every time we build a new query we have to go to each characteristic and change most of them to "Always". Want this to be a system wide change that would affect all new queries or existing queries that are being modified by adding new characteristics.
    Thanks,
    Mike

    Hi Mike,
    This property is controlled by domain RRXNOSUMS. You can change the default value to point from "Blank" to "U", I suppose. Haven't tried this though and I am not sure if it is okay to play around with the SAP settings. But if it works for you, do post back.
    Hope this helps...

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • Absolute Value in Transformation level

    Hi Team,
    I want to insert abolute value in Transformation routine level.Pl provide me the routine code to instert absolute value of Exchange Rate.
    I have tried to put below code but its not working.
    ABS(Exchange Rate).
    Regards
    Ramakanth.

    Hi,
    In your case, I'd strongly recommend you to use formula instead of routines (where you do have absolute function working).
    If you still want to go for Routine:
    data: abs_val type f.
    if SOURCE_FIELDS-EXRATE_ACC < 0.
    abs_val = SOURCE_FIELDS-EXRATE_ACC * -1.
    else.
    abs_val = SOURCE_FIELDS-EXRATE_ACC.
    endif.
    RESULT = SOURCE_FIELDS-NETVAL_INV * abs_val.
    --Akashdeep

  • Display only the result rows only by using condition or any other way

    Hello Everybody,
    I've a web report where I want to diplay ony the result rows and don't want to display the detail rows at all. I could hide the detail rows but these rows still appear without any value in the key figure fields.
    I tried to revove the characteristic field from the drilldown but it doesn't show the report correctly. Then I tried to write a condition to filter the detail rows but this condition doesn't apply to the result rows so this effort also didn't work for me.
    Is there anyway we can display the report with only the result rows ? I've already tried to find out a solution on SDN but couldn't get the solution eventhough I found many posts on this kind of requirement.
    Any help would be greatly appreciated.
    Thanks
    Alok

    Please explain when you say
    "I tried to remove the characteristic field from the drill down but it doesn't show the report correctly"
    What is problem there? What result do you get. If possible please provide  details of columns layout and few numbers

Maybe you are looking for