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.

Similar Messages

  • How to avoid aggregation on a key figure

    Hi SDN,
    Is there a way to avoid aggregation on a key figure? We have a situation where we have multiple records for a particular order/item. So a key figure like Net Price simply adds up which is wrong. We just want to repeat it and not aggregate.
    Any solution?
    Thanks for the help.
    SM

    Hi,
    Try this,
    in InfoObject Aggregation Tab:
    Aggregation :SUM
    Exception Aggregation: No Aggregation (X, If more than one records Occurs).
    else try with more than one value
    Regards
    Reddy A

  • Negative values of key figures to be displayed seperately

    Hi,
    I have a requirement where , the postive sales figures are to be displayed in one column and Negative sales figures are to be displayed in another column ina BEX report.... There is only one key figure ( sales )
    how to get this please ?
    PVC

    Hi Pravendar ,
    Thanks for your reply..
    The key figure infoobject is only one called Sales..
    If the value is negative , then it should display in seperate column in teh report..
    I could not understand        (KF < 0) * KF  -
    If the slaes figure is -1233   does this mean i should created a CalKeyfig
    with (Sales < 0) * Sales  ??
    Can you please elaborate ?
    PVC

  • 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 I get Values of key figure by customer  if cube data is not by cust?

    HI All,
    I have a situation where I need to change query : This query is created on a Multiprovider gives Actuals sales for previous period and Forecast for future period. The query is designed at  aggregatred sales dist  by Material.
    Now the Business requires this by Sales District. I  did this by creating a Variable filter.
    Now the issue is For Each material is 4 rows and one of the row is Standar price. This data is availabe for Actuals by sales district but of Forecast this is not avilabel by sales district.
    I want this data in report - for If I execute report for aggregated of all sales district I can see this figure  but If i  filter by sales district I cannot see as the data is not availabe by Sales district. Now as Std cost is same of materisl  for  any sales district. Can some one help is how do I get this data populated in report even if I select by Sales district ?
    Hope I  made this clear - please advice if not clear.
    Thanks
    Siva

    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 create a non-cumulative key figure & How to make a info cube as so

    Hi Experts,
    How to create a non-cumulative key figure & How to make an info cube as non-cumulative cube?
    Can any one kindly provide me the steps we need to performe?
    Thanks in Advance,
    Raj

    Hi Azael,
        In the How to Papers, you will find a Guide on how to take a Sanpshot view of the Stocks(How To Handle Inventory Management Scenarios in BW). Basically if you implement the Guide, you will have another cube called ICSNAP1, which will contain stock quantities /values at the end of each month. You will therefore have to take stock at the end of the last month from that cube and add up the relevant receipts and issues to arrive at the current Stock or Stock as on a particular date.
    Hope this helps!
    Regards
    Sriram

  • How to use Restricted or Calculated Key figure with Characteristics?

    Hi,
    Query has characteristics 'Indicator' which has values  'X' and 'Y' depending this value, the Key figure Quantity(which is always +ve) has to be shown on the report either as -ve or +ve.
    Do I use Restricted Key figure if so, how? Or can I manage with a Calculated Key figure?
    Thanks,
    Kamala

    Hi Kamala,
    You can create 2 RFKs each in which you are restricting the KF with char value X and Y. For the one that needs to be -ve, create a CKF with this RKF and multiply it by -1 in the formula. Then you can create a new CKF that will add this CKF and the other RKF.
    Hope this helps...

  • How to create Variables for the Key Figures

    Hi All,
    How to create Variables for the Key Figures
    Thanks
    Bhaskar

    Hi,
    It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
    With rgds,
    Anil Kumar Sharma .P

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

  • How to assigne multiple value in key of read table

    Hi gurus,
    I want read table xxxx with key field1 = ' xxx' or field1 = 'yyy'.
    how to assign multiple value as key for the same field while reading internal table.
    Regards
    sagar

    Hi ,
    You can loop the internal table like
    loop at  <table xxxx> where field1 = ' xxx' or field1 = 'yyy'
    or you can write two read statements to read the internal table in wrk area.
    read table   <table xxxx> with key field1 = ' xxx'.
    if sy-subrc <>0
    read table   <table xxxx> with key field1 = 'yyy'.
    if sy-subrc = 0
    endif.
    else.
    do your data processing.
    endif.
    Thans.

  • 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

  • How to display negative values in a screen field of a screen

    Hi All,
    Please let me know how to display negative values in a screen field of a screen.
    thanks

    Hi Kishore,
    You can do this method. In the screen , create a text field of CHAR instead fo creating an INT4 field.
    I have created a field of CHAR of name say TEXT.
    In the main program,
    declare a variable of the same name ie. TEXT.
    data: TEXT(5) TYPE C.
    In PBO, just assign the negative values.
    It will work.Since there is automatic conversion between character and integer data types, it will work for positive values as well.
    Regards,
    Sylendra.

  • How to avoid duplicates values from alvgird see below code

    how to avoid duplicates values from alvgird see below code
    in below query docno no is repeated again and again
    how i can avoid duplication in this query.
    select * into corresponding fields of table itab
             from  J_1IEXCHDR
                     inner join  J_1IEXCDTL
                        on  J_1IEXCDTLlifnr =  J_1IEXCHDRlifnr
                     where  J_1IEXCHDr~status = 'P'.

    Hi Laxman,
    after that select statement
    select * into corresponding fields of table itab
    from J_1IEXCHDR
    inner join J_1IEXCDTL
    on J_1IEXCDTLlifnr = J_1IEXCHDRlifnr
    where J_1IEXCHDr~status = 'P'.
    <b>if sy-subrc = 0.
    delete adjucent duplicates from itab comparing <field name of itab internal table>
    endif.</b>
    this will delete your duplicate entries.once you done with this call the alv FM.
    <b>  call function 'REUSE_ALV_GRID_DISPLAY'</b>
    exporting
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       i_callback_program                = v_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = 'IT_USER_COMMAND'
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
       i_grid_title                      = 'Purchase Order Details'
      I_GRID_SETTINGS                   = I_GRID_SETTINGS
       is_layout                         = wa_layout
       it_fieldcat                       = it_fieldcat
      IT_EXCLUDING                      = IT_EXCLUDING
      IT_SPECIAL_GROUPS                 = IT_SPECIAL_GROUPS
       it_sort                           = it_sort
      IT_FILTER                         = IT_FILTER
      IS_SEL_HIDE                       = IS_SEL_HIDE
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        = IS_VARIANT
       it_events                         = it_event
      IT_EVENT_EXIT                     = IT_EVENT_EXIT
      IS_PRINT                          = IS_PRINT
      IS_REPREP_ID                      = IS_REPREP_ID
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   = IT_ALV_GRAPHICS
      IT_HYPERLINK                      = IT_HYPERLINK
      IT_ADD_FIELDCAT                   = IT_ADD_FIELDCAT
      IT_EXCEPT_QINFO                   = IT_EXCEPT_QINFO
      IR_SALV_FULLSCREEN_ADAPTER        = IR_SALV_FULLSCREEN_ADAPTER
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           = E_EXIT_CAUSED_BY_CALLER
      ES_EXIT_CAUSED_BY_USER            = ES_EXIT_CAUSED_BY_USER
        tables
    <b>      t_outtab                          = ITAB</b>
    exceptions
       program_error                     = 1
       others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Thanks
    Vikranth Khimavath

  • 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

  • How to calculate percentage based on key figure maximum value

    Hello everybody!
    I need your expertise on a query 'issue' I'm facing. Let's say I have a query getting me the Number of Open Items per Week (starting from billing document's Issue Date).
    My client wants to be able to see the percentage per week and not the actual number.
    So, what I have is below:
    <b>Wk</b><b>"OI Nr"</b>
    1                                "68.801"
    2                                "66.288"
    3                                "59.344"
    4                                "50.506"
    5                                "20.950"
    And what I want is below (in italics):
    <b>Wk</b><b><i>"OI %"</i></b>
    1                       "<i>100%   </i>"           (i.e. 68.801 / 68.801 * 100)
    2                      "<i> 96,34%  </i>"         (i.e. 66.288 / 68.801 * 100)
    3                      "<i> 86,25%  </i>"         (i.e. 59.344 / 68.801 * 100)
    4                       ......
    5                       ......
    Is it possible to achieve sth like this by altering some key figure properties or in any other way?
    Thanks in advance.

    First u need to create a calculated Key Fig globally. You can do this at the extreme left end of the query Designer. Just right click on the Calculated key Fig and say <b>New Calculated Key Figure</b>
    Give the description of the Key Fig and in the formula section just put the the key fig . <b>'OI Nr'</b> in you case
    When u say ok it will open the properties of the key fig there u can see <b>Enhance>></b> at the bottom. Click on that make the <b>exception aggregation</b> to <b>maximum</b> and <b>refernce characteristic</b> for the one which u are having the values 68.801, 66.288, 59.344, ..
    Save this calculated key fig
    now in the Columns create a <b>new selection</b> under the key fig.
    drag the newly created calculated key fig in this <b>new selection</b> and say ok.
    Now right click on this <b>new selection</b>, go to the <b>Calculated Single Value</b> as drop down and make it <b>Normalize-Sub Totals</b>
    Tick the checkbox  <b>Also Apply to result</b>
    and select <b>Calculate Along Columns</b>.
    Save the query and execute. This should solve youe issue
    Hope this helps.

Maybe you are looking for

  • Transport COPA new value field

    Hello SAP Experts, I have created a new COPA value field. Now i would like to transport the same to Test (Acceptance or Quality) server, can you kindly let me know how can i proceed with this. Your inputs are highly appreciable in this regard. Many t

  • Camera RAW - freezing while editing image and also wont update to new version

    I moved from Mac 10.6.8 computer to a new Mac 10.10 computer. When I did, I transfer of all my files through data migration and it moved photoshop and bridge over for me without having to reinstall. Which was good because I do not have the disc anymo

  • Magsafe 2 Replacement?

    Hello, I was wondering if anyone else had trouble getting their magsafe 2 replaced. (I have only gone into an authorised reseller so far (Apples calling me tomorrow) but he said they very rarely issue a replacement (under directive from apple) but th

  • DBMS_PARALLEL_EXECUTE package of oracle

    Gurus, Can anyone guide me how to use this oracle supplied package (DBMS_PARALLEL_EXECUTE) in a genric way what I am looking for is a generic process which uses this package and triggers off by_rowid or by_col, or by_sql processes. Also can this pack

  • Microsoft Remote Desktop Preview for WP 8.1 - only for English OS?

    Hi I tried to install the Remote Desktop Preview for Windows Phone 8.1 on my Lumia 930 but got error 80073cf0. Can the preview only be installed on en-US localized devices? Regards Markus