How to use rounded values in BEx Formulas

Hello,
I have the following question. Is it possible to use rounded values up to a certain # of decimal points in BEx Formulas?
I have the following problem.
Consider this:
keyfigure val 1 = 0.416666667
keyfigure val 2 = 72
val 3 (BEx Formula)  = val 2 / val 1 = 172.799999862
However, what I need to do is this.
val 1 & val 3 should rounded up to 2 decimal points. So, I really need the report to show this:
val1 = 0.42
val2 - 72
val 3 = val 2 /val 1 = 171.43
I changed the number of decimal places on val 1 and val3 to be 0.00. However, it appears that these rounded values are not taken into account in  the Formulas, as if the OLAP still uses the original values from the backend with 9 decimal points. So, no matter how many decimal points I use on the Display tab for a key figure, my val3 or result of my formula is always taking into account the 9 digit decimal values, not rounded values that I want. So in the example above, my val 3 comes to 172.80, which it should be 171.43 instead of you use the rounded values in the calculation.
Please let me know if there is any workaround where I could force my BEx Formula to utilize the rounded values and not actual values from the backend DSO. Or any other solution.
Thank you

If you create a Formula in BEx Query Designer like the one below, it works:
val3 = val2 / ( TRUNC ( ( val1 * 100 + 0.5 ) ) / 100 )
The TRUNC function (among other things) actually ensures that your formula takes into account the rounded values that you want.

Similar Messages

  • How to use cumulative Value in a formula

    Hello Gurus,
    I would like to use the cumulative value in a query as part of a formula calculation. I have created a KF which is assigned a constant value 1. When displaying the KF I am cumulating it so for each row I am getting 1,2,3,4...etc. How can I use this cumulated value in a formula calculation?
    For example, in a column cumulative count is 1,2,3,4...etc .My requirement is ,i want to identify the record with number 36 , to do this i have created a formula with boolean Equal to function comparing with the required number, but the boolean result what am i getting is Zero instead of one(1).
    The reason i found behind the problem is, the cumulative count that we see is dynamically happening during the run time for display ,but the internal value is 1 only.
    Is there any other way to meet this requirement or am i missing anypoint?.
    Thanks.

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • Using Infoobject value in bex formula

    Hi experts,
    i have bex query containing calculated KF's
    i need these CKF's will get changed, if the value of the infoobject 0ITEM_CATEG is 'ZOTX'
    i have tried to use formula variable with replacement path on 0ITEM_CATEG, but when i am creating new formula with the formula variable  i can not write ' 0ITEM_CATEG = ZOTX'
    appreciate advce here
    Thanks
    Nir

    Hello,
    For your requirement virtual KF concept is appropriate.
    Regards,
    Shashank

  • HOW TO USE ATTRIBUTE VALUE IN FOX FORMULA LOOP

    HI,
    IAM SUMMING UP AMOUNT BASED ON BELOW COMBINATION AND THROWING MESSAGE IF AMOUNT IS EXCEEDING OPENPO VALUE....AND IS WORKING FINE...NOW I HAVE A ENHANCE MENT THAT I HAVE TO USE ATTRIBUTE PROFIT CENTER VALUE IN THE LOOP. I HAVE DECLARED THIS --- PC = ATRV('0PROFIT_CTR',CC,CA). AND TRY TO USE PC IN LOOP..BUT SYSTEM PROPOSING PC SHOULD BE FIELD TO BE CHANGED..BUT IN MY CASE IT IS ATTRIBUTE WHICH WILL DISPLAY IN LAYOUT...AND FIRST LOOP SHOULD HAPPEN BASED ON PC ( FOREACH CCODE,FP,CR,CA,GL,PO,PC.)....PLEASE PROVIDE UR HELP.
    DATA SUM1 TYPE F.
    DATA SUM TYPE F.
    DATA PO TYPE EBELN1.
    DATA GL TYPE 0GL_ACCOUNT.
    DATA CC TYPE 0COSTCENTER.
    DATA VN TYPE 0VENDOR.
    DATA SN TYPE SCRNUM1.
    DATA SD TYPE SCRDATE.
    DATA VS TYPE KDATB.
    DATA VE TYPE KDATE.
    DATA CCODE TYPE 0COMP_CODE.
    DATA CA TYPE 0CO_AREA.
    DATA FP TYPE 0FISCPER.
    DATA CR TYPE XPRV_CIR.
    DATA PC TYPE 0PROFIT_CTR.
    CCODE = VARV('XCOMPCO').
    CA = VARV('XCOAREA').
    FP = VARV('XPERIOD').
    CR = VARV('XPRVCIRC').
    PC = ATRV('0PROFIT_CTR',CC,CA).
    FOREACH CCODE,FP,CR,CA,GL,PO,PC.
    SUM = 0.
    FOREACH CC,VN,SN,SD,VS,VE.
    IF {0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}
    {OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.MESSAGE E001(UPF)WITH
    'PROVISION AMOUNT SHOULD BE LESS THAN OPENPOVALUE'.
    ELSE.
    SUM = SUM +
    {0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.
    ENDIF.
    ENDFOR.
    FOREACH CC,VN,SN,SD,VS,VE.
    IF {0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR} = 0
    AND
    {OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR} = 0.
    SUM1 = 0.
    ELSE.
    SUM1 = SUM.
    ENDIF.
    IF SUM1 >
    {OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.
    MESSAGE E001(UPF)WITH
    'PROVISION AMOUNT(SUM) SHOULD BE LESS THAN OPENPOVALUE'.
    ENDIF.
    ENDFOR.
    ENDFOR.
    THANKS,
    RAJA

    Hi,
    If you want to read the value of profit center using keyword ATRV then you need to input values of parameters CC and CA.
    Now the first line that you have written, to derive PC based on CC and CA
    PC = ATRV('0PROFIT_CTR',CC,CA).
    [code}
    here CC value is not determined at runtime ; I mean what will be the value of CC when this line is executed. This line is not inside any foreach loop nor you are reading the value of CC using any variable.
    if you want to use PC in first FOREACH CCODE,FP,CR,CA,GL,PO,PC. loop then CC value have to be  present.
    Put ATRV code inside a loop where CC and CA values are read.
    Thanks
    Pratyush

  • How to use Round off function in TAX Formula

    Dear All,
             I have to do Round off in the Tax Formula. Hence I was suggested by the SAP Forum Team to use Round off function in the Tax Formulae.
             But sir I don't know how to use Round off function in the Tax Formulae.
            For Eg. BaseAmt = Total
                        TaxAmt = BaseAmt * Rate
               Now within this Eg. How will i use the Round off function and where i will use it.
               Please guide me with example.
      Regards
    Hitesh Parsawala

    Hi Hitesh,
    you can do like this
    Cess_ST_TaxAmt=Round(Cess_ST_BaseAmt*Cess_ST_Rate,0)
    where you can introduce rounding function by choosing from dropdown available in Operation and by click on Insert.
    It will post following in formulla window
    Round (Number, Decimals as Number)
    where in parameter you have to give 1.Number-which is to be round and 2.Decimals as Number-as per your requirement like by 2 decimal or 0 decimal
    If required give me call,
    BR
    Samir Gandhi

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • How to use Table valued MSSQL  function in OBIEE

    Hi all,
    Can some one help me to understand how to use table valued function in OBIEE? I want to use a table valued function (MSSQL function, with some input parameter), in the physical layer to pull the data?
    I know for MSSQL Stored Procedure we can write as
    EXEC SP_NAME @Parameter = 'VLUEOF(NQ_SESSION.Variablename)'
    but now I have a table valued function in the query window I can get the data as
    select * from myfunction(parametervalue)
    In physical layer of OBIEE I have tried as
    select * from myfunction('VLUEOF(NQ_SESSION.Variablename)'), but I'm getting error as the NQ_SESSION variable doesn't have a value , but actually I have initialized the variable but still Im getting error.
    Can some one help me to solve this.
    Thanks,
    Mithun

    Follow this link and try yourself. let me know for issues
    Substring instr issue in obiee
    Appreciate if you mark
    Edited by: Srini VEERAVALLI on Feb 20, 2013 8:13 AM

  • How to use report designer  in bex analyser ,quary designer, wad give scree

    how to use report designer  in bex analyser ,quary designer, wad give screeeenshots detail

    Hi,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/910aa7a7-0b01-0010-97a5-f28be23697d3
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4487dd91-0b01-0010-eba1-bcd6419
    /people/michael.eacrett/blog/2006/06/07/whats-new-in-sap-netweaver-702004s--an-introduction-to-the-functionality-deltas-and-major-changes
    http://searchsap.techtarget.com/cgi-bin/rd.pl/ftID-1121728-ctID-1064004?//expert/KnowledgebaseAnswer/0,289625,sid21_gci1064004,00.html
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/24ff4009b8f223e10000000a155106/content.htm
    WAD
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cea68c65-0901-0010-f5a4-fd34189d8078
    http://help.sap.com/saphelp_nw04s/helpdata/en/a9/71563c3f65b318e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a9/71563c3f65b318e10000000a114084/frameset.htm
    /people/prakash.darji/blog/2006/07/16/bim253-at-teched--query-report-and-web-application-design-with-the-sap-business-explorer-suite
    http://help.sap.com/saphelp_sem40bw/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    GTR

  • How to use hashtable values

    if i get all lovsession results in to a hash table
    how to use them
    i mean how to use the value of particular field in hash table(lov ).

    I'm not clear what exactly are you looking for? Is it just the printing/reading of values in hashtable or some interaction of those values with beans?
    --Shiv                                                                                                                                                                                                                                                                                                                               

  • Reposting:urgent....how to use hashtable values

    Hi
    if i get all lovsession results in to a hash table
    how to use them
    i mean how to use the value of particular field in hash table(lov ).
    is it <hashtable>.get(object name);
    if it is what should be my object name...is it VO attribute of LOV???or the Id in that lov page??
    please help me out..
    Regards
    Sandeep.G

    if(pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
    Hashtable lovResults = pageContext.getLovResultsFromSession(lovInputSourceId);
    if (lovResults != null)
    value = (String) lovResults.get("<Lov Item Name>");
    }

  • How to use DFF value in BG_ABSENCE_DURATION Fast formula

    Hi All,
    I would like to know how can we use DFF values in BG_ABSENCE_DURATION fast formula.
    Can we pass them as input values?
    Also, when we use them as DATABASE ITEMS how does Fast Formula identifies them.
    For example I have created a DFF value HALF_DAY that can take either "YES" nor "NO".
    I tried to use that as input value but that didnt work, not sure if it is possible at all or not.
    I also tried to use that as Data Base ITEM, as follows:-
    IF (ABSENCES_HALF_DAY WAS DEFAULTED ) then
    duration = 'FAILED'
    invalid_msg = 'DFF not working'
    Any help will be much appreciated.
    Thanks,
    Avinash
    but i am getting following error when i access SSHR
    Formula BG_ABSENCE_DURATION: ORA-01403: no data found ORA-01403: no data found Cause: During the PL/SQL execution part, an Oracle error was detected. Action: Please refer to your system administrator.

    Thanks Vigneswar  and Avaneesh for your helpful comments,
    Actually I want to retrive the DFF value that I pass while applying the Leave Request and not that already stored in the data base. I checked and found that the query you have mentioned is retriving the data from base tables.
    select target.ATTRIBUTE6 -- Attrinute6 is database item ABSENCES_HALF_DAY+
    from    per_absence_attendances                target,+
    per_all_assignments_f                  ASSIGN+
    WHERE   sysdate BETWEEN ASSIGN.effective_start_date+
    AND ASSIGN.effective_end_date+
    AND    ASSIGN.assignment_id                  = 647--&B2+
    AND    ASSIGN.assignment_type                = 'E'+
    AND    target.person_id                      = ASSIGN.person_id+
    AND    target.absence_attendance_id  =+
    *(select max (absence_attendance_id)*
    from   per_absence_attendances+
    where  person_id   =  ASSIGN.person_id+
    and    date_start <=  sysdate+
    I have only added folloing lines In my BG_ABSENCE_DURATION FF
    DEFAULT FOR ABSENCES_HALF_DAY is 'XX'+
    if (1 = 1) then+
    duration = 'FAILED'+
    invalid_msg = 'DFF not working: '+ABSENCES_HALF_DAY+
    But evry time output is *"DFF not working : Yes"* no matter what the value I am passing while applying leave. This value "Yes" is stored in DFF attribute 6 for the test employee and I guess FF is retriving this value from DATABSE not from current transaction.
    Could you please help how to retrive run time data.
    Thanks,
    Avinash

  • How to cancel rounding value check when convert pr to po use me59n or me59

    hello every one,
            I have a requisition that,customer want to cancel rounding value check when converting purchase requisition to purchase order use me59n or me59,but they want keep the function of check rounding value when create purchase requisition as mrp run.
            does anyone happen to meet samiler question?Is there any way to solve it?
            thanks
    Edited by: p y on Aug 3, 2010 5:14 AM
    Edited by: p y on Aug 3, 2010 10:07 AM
    Edited by: p y on Aug 3, 2010 10:56 AM
    Edited by: p y on Aug 3, 2010 10:57 AM

    what do you think based on what SAP should know whether it has to do rounding or not?
    Why should SAP not round if a rounding rule is entered?
    when a human is converting the PR to a PO, then a warning message is issued, if the user then enters  the old quantity again, SAP accepts it.
    A background program cannot do such decisions, it has to rely on given master data.

  • How to cancel rounding value check when convert pr to po use me59n

    dear all,
            I have a requisition that,customer want to cancel rounding value check when converts pruchase requisition to purchase order use
    t-code me59n,but they want keep the rounding value check when create purchase requisition when mrp running.i look up enhancement for this function,but didn't find any.so has any one can tell me a way to solve this question?
           thanks a lot!
    Edited by: p y on Aug 3, 2010 10:08 AM
    Edited by: p y on Aug 3, 2010 10:10 AM
    Edited by: p y on Aug 3, 2010 10:57 AM

    does anyone know it?

  • How to use user variable in Member Formula

    Hi All
    I have to write a member formula for %linearity quarter for a weekly application.This member will be used in reports and we do not want to do this calculation in reports, hence need to write member formula. The formula is
    Week1 of Q1 forecast / Q1 Total Forecast , Week2 of Q1 Forecast/ Q1 Forecast.............,Week15 of Q2 forecast/ Q2Total Forecast.......and so on.
    According to me it should work in the below mentioned manner , but need help in improvising the formula.
    If(@ismbr("Weeks1") or @ismbr("Weeks2") or @ismbr("Weeks3") or @ismbr("Weeks4") or @ismbr("Weeks5") or @ismbr("Weeks6") or @ismbr("Weeks7") or @ismbr("Weeks8") or @ismbr("Weeks9") or @ismbr("Weeks10") or @ismbr("Weeks11") or @ismbr("Weeks12") or @ismbr("Weeks13") or @ismbr("Weeks14") )
    "Current_Forecast"/"Q1"->"Current_Forecast";......
    If anybody can help in suggesting how can i use user variable in this formula to achieve the required result.
    Thanks

    Hi
    Thanks for the suggestion and it would be a better idea to use ISIDESC as compared to ISMBR.
    I also wanted to ask if in the below mentioned formula if the result of first line is true than will the second line pick the current_forecast value of the respective member of Q1 and divide it by the current_forecast value of Q1.
    IF(@ISIDESC("Q1"))
    "Current_Forecast"/"Q1"->"Current_Forecast";
    Also i need to know how can i write a member formula for week YOY% using user variables.The general formula is
    Week 1 of FY13 - Week 1 of FY12/Weeks 1 of FY12
    Week 2 of FY13 - Week 2 of FY12/Weeks 2 of FY13 and so on till week 53.
    Thanks

  • How to use YTD values in webi

    hi
    normally in bex we can use variable , based on user entry we can calculate YTD values, and we will make structure like in column or rows.
    how to make ytd values in webi and create structures.

    HI,
    this needs to be done using EXIT Variables in the BEx Query.
    Ingo

Maybe you are looking for

  • Time Machine no longer backing up from Macbook Pro

    I've been successfully using Time Machine to backup my Macbook Pro via my wireless network for a couple of years.  I was also using it to backup my wife's Macbook Pro until she had to be away for a while.  While she was away she used a Passport backu

  • SAP Query dispaly

    Hi, Is there any way to display Internal table values as output  in SAP Query. I need to develop a query (sq01) which need to dispaly all the sales summary in single line  based on customer, means need to do sum of all customer sales for a particular

  • Problems with Automate Batch tasks in Photoshop CS2

    "Could not complete the action, since the destination folder does not exist" message appears when I Automate a task that I have previously recorded and successfully used. When I choose Automate, then Batch, then select action, then select a source fo

  • Gradient Background problems

    I have Enterprise version 8.1 installed on my machine and I am using it to reverse engineer some Java code. I would like to generate a few graphics in eps format, and I am having serious problems with the size when I export them as svg and translate

  • Save button enabled in MAX, but no changes to apply

    Hello, I have a situation with a number of my RT targets.  When I open an RT target in MAX, the Save button (and Revert button) are enabled as if there are settings to be applied to the unit.  I've gone through the process of pressing the save button