Rounding % to zero decimals

Hi,
I have requirement to find the percentage of row(rowvalue/grandtotal). To get this I used pivot table and have taken the values as percentage of row. But in the same the user wants to have zero decimals. Is it possible to round off percentage values in Pivottable?
Thanks,
Phani.

Phani,
Look at:http://shivabizint.wordpress.com/2008/09/14/changing-the-precession-of-percent-of-columns-in-pivot-table-of-obiee/
thanks,
Saichand.v

Similar Messages

  • Rounding to nearest decimals

    Hi all programmers,
    I am a FICO functional consultant. I have got an issue that I think and was told that it can be solved by an ABAPer. The issue is described below:
    "I am encountering a serious production issue. On the FB60 screen when I enter the amounts in the line items and select the the respective tax code, my system calculates the tax amount as $0.06 where as when I calculate on my calculator it is coming up as 0.0565. Because of this my total balance is offsetting by 1 cent ($0.01). I want my SAP system also to round off to $0.0565 instead of $0.06. Is there any way to do this setting. I know I can change the value manually under tax tab. But, there are so many invoices like this and calculating the tax manually and then entering the right decimal value in the tax tab will not serve my purpose."
    Being a functional person and with no ABAPer's support, I request you guys to please help me from scratch (inclusing which  t.code to use) on solving this issue by changing or creating a programming routine.
    <b><REMOVED BY MODERATOR></b>
    Thank you,
    SONY
    Title and Message were edited by:
            Alvaro Tejada Galindo

    Hi,
    Please try this to create program routine.
    DATA: N1 TYPE P DECIMALS 4 VALUE '0.0565',
          N2 TYPE P DECIMALS 2.
    MOVE N1 TO N2.
    WRITE: N2.
    Regards,
    Ferry Lianto

  • Sales order item quantity not rounded and allowing decimals with UoM EA

    Hi gentlemens,
    I noticed something strange in our SAP ERP system.
    When we enter a material in a new sales order item, we are allowed to enter quantity 1,5 EA (1 and half Each).
    But when I check the config of the UoM EA in table T006, the number of decimals (field DECAN) is 0 and the decimal place for rounding (field ANDEC) is also 0.
    As far as I remember from other other SAP system, there should be an error message when entering the quantity 1,5 EA saying that decimals are not allowed for this unit of measure.
    Can someone help and tell me wich error message or which rounding program should normally be active when entering decimals with uom EA ?
    Thanks and regards,
    BDT

    Hi Mani,
    Thanks for the thread reference. I found the related OSS notes yesterday evening but this was for procurement.
    Here the question I have is more for a sales item.
    The strange case we are facing is:
    In a sales order, we can enter a particular material as a standalone item with a quantity of 1.5 EA without any problem.
    But if we create the same new item as a sub-item of a previous one (filling UEPOS), with qty 1,5 EA, then a rounding is triggered by the system based on the T006 config.
    I am wondering if this is a problem with the SAP standard program or if we did anything wrong in the past in our system?
    Best regards,
    BDT

  • Rounding condtion type decimals

    HI ALL,
    I have a requirement where for eg: Condition type PR00  is with 50.45 it should round off to 50.00
    or if it is 50.95 also inthat case also it should round off to 50.00
    i tried doing rounding rule in conditon type, it is only rounding the decimals
    i dont want any decimals
    Please let me knw if any one has the answer
    Syed

    Hello,
    In transaction V/06 there is a field under header 'Control data1' which can effect how the system rounds off condition values during pricing:
       ->> Rounding rule
           The rule that determines how the system rounds off condition
           values during pricing. The last digit will be rounded.
    Example
    o  In the standard rounding rule '_', values are rounded off according
       to business standards:
       10.454 -> 10.45 DEM
       10.455 -> 10.46 DEM
    o  In rounding rule 'A', values are always rounded up:
       10.459 -> 10.46 DEM
       10.451 -> 10.46 DEM
    o  In rounding rule 'B', values are always rounded down:
       1045.9 -> 1045 LIT
       1045.1 -> 1045 LIT
    Please try using the rounding rule 'B' for your scenario.
    I hope you find this information very helpful and hopefully it will solve your problem.
    Regards,
    Martina McElwain
    SD - Forum Moderator

  • How to  convert 3.16 to 3.20 in tables? Round only the decimals?

    In a recent post mr Trevor wrote a powerful script to round decimals but altering the preceding number:
    23.45 was converted to 23.
    23.78 to 24.
    It is possible to script only the decimals not touching the integer?
    ,03 : 00
    ,06 : 10
    ,14 : 10
    ,18 : 20
    ,71 : 70
    ,77 : 80
    Etc?

    Hi, thank you.
    As numbers are placed on tables, how to apply this script to the whole document?
    It is necessary to make a list?
    Or it may be used with a skeleton like this wrote by Trevor?
    var doc = app.activeDocument;
    app.changeGrepPreferences = app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\d+\,\\d+";
    var myNumberFinds = doc.findGrep(),
          l = myNumberFinds.length;
    while (l--)
            app.changeGrepPreferences.changeTo = Math.round(myNumberFinds[l].contents.replace(/\,/,".")).toString();
            myNumberFinds[l].changeGrep();
     Yes, numbers between ,094-0,99 will afect the integer!
    Thank you.

  • Rounding to nearest decimals--VERY URGENT

    Hi all,
    I am encountering a serious production issue. On the FB60 screen when I enter the amounts in the line items and select the the respective tax code, my system calculates the tax amount as $0.06 where as when I calculate on my calculator it is coming up as 0.0565. Because of this my total balance is offsetting by 1 cent ($0.01). I want my SAP system also to round off to $0.0565 instead of $0.06. Is there any way to do this setting. I know I can change the value manually under tax tab. But, there are so many invoices like this and calculating the tax manually and then entering the right decimal value in the tax tab will not serve my purpose. 
    PLease help me with this as it is a very urgent issue.
    I would surely award points for any kind of positive help.
    Thank you,
    SONY

    Hi,
    As far as my knowledge goes SAP bydefault rounds off to 2 digits. If you want any changes in that you will have to take the help of ABAPer and write the routine to change the number of decimal points.
    Regards
    Santosh Hegde

  • Rounding to 2 decimals in PCR

    I am doing a calculation to determine a percentage value in a PCR by using HRS/37.5 where HRS is their planned work time for the week.  The value is then multiplied by a constant.  I want the final result to be rounded to 2 decimal places.  How do I specify the number of decimal places using arithmetic operations and the HRS function?

    Hi It works.
    What I was suggesting looks like this
    hrs=20
    20*100000
    200000/37.5
    result/100000 will be rounded to two digits.I have used this somany times.
    I have just tested on my system.Please try and let me know
    Thanks
    Venkat

  • Can't get it to round to 2 decimals, using DecimalFormat, please proof read

    Why won't this output #.##? No matter how I change them it still gives me exact answers.
       import javax.swing.*;
       import java.awt.*;
       import java.util.*;
       import java.text.DecimalFormat;
        public class Calculator{
           public static void main (String[] args){
          //Ask for input
             String inputString = JOptionPane.showInputDialog("Input your desired calculation, separating numbers and operation with spaces.(+-/*%)");
          //split input to make switch function
             String[] result = inputString.split("\\s");
          /*I Put both of these in here, but stuck with the Double,
          I think thats the better fit*/
          //float n1 = Float.parseFloat(result[0]);
          //float n2 = Float.parseFloat(result[2]);
             double n1 = Double.parseDouble(result[0]);
             double n2 = Double.parseDouble(result[2]);
             char c = result [1].charAt(0);
             if((c == '+')  || (c == '/') || (c == '*') || (c == '%') || (c == '-'))
             DecimalFormat df = new DecimalFormat("#.##"); 
             //switch function to cover the 5 functions, and divide by zero message
                switch(c)
                   case '+':
                      double answer = n1 + n2;           
                      df.format(answer);
                      JOptionPane.showMessageDialog(null, inputString + " = " + (answer));
                      break;
                   case '-':
                      //DecimalFormat df = new DecimalFormat("#.#");            
                      double answer2 = n1 + -n2;           
                      df.format(answer2);
                      JOptionPane.showMessageDialog(null, inputString + " = " + (answer2));
                      break;
                   case '/':
                      if(n2 == 0)
                         JOptionPane.showMessageDialog(null, "You know that's a no no!");
                      else
                         //DecimalFormat df = new DecimalFormat("#.#");            
                         double answer3 = n1 / n2;           
                         df.format(answer3);             
                         JOptionPane.showMessageDialog(null, inputString + " = " + (answer3));
                      break;
                   case '*':
                      //DecimalFormat df = new DecimalFormat("#.#");            
                      double answer4 = n1 * n2;           
                      df.format(answer4);           
                      JOptionPane.showMessageDialog(null, inputString + " = " + (answer4));
                      break;
                   case '%':
                      //DecimalFormat df = new DecimalFormat("#.#");            
                      double answer5 = n1 % n2;           
                      df.format(answer5);         
                      JOptionPane.showMessageDialog(null, inputString + " = " + (answer5));
                      break;
             else
                System.out.println("Can't do that operation!");     
       }I commented out some other stuff I was thinking on, so just ignore. Thanks!

    cuz you are not using the value returned by the DecimalFormat object.
                      df.format(answer2);
                      JOptionPane.showMessageDialog(null, inputString + " = " + (answer2));DecimalFormat.format() returns a string. By what magic do you think the primitive double answer2 is going to be changed to a String object?
                      String a2 = df.format(answer2);
                      JOptionPane.showMessageDialog(null, inputString + " = " + (a2));

  • Work center formula - rounding to zero?

    Hi
    I have set up a new formula for a work center, using a new parameter Z_BKP5 (Parameter1.jpg). It should be fixed to 2000.
    My formula is: Operation qty/Z_BKP5* Variable machine time.
    However, if my operation qty is bigger than Z_BKP5 (2000), then I get the result (Test1.jpg), for example 2000/2000*180 MIN => result is 180 MIN
    If my operation quantity is smaller, I don't get anything calculated (Test2.jpg). The same happens on Test formula screens as well on planned orders.
    Example 1900/2000*180 MIN
    Is it some rounding issue? I have tried finding a parameter in customizing for this, but I cannot find anything related. Can this be solved somehow, or is this standard behaviour?
    Thank you

    Just for future help, I'd expect that means your data container is integer.  In that case, it's important to do your multiplications first and your divisions last.
    An alternate problem that you can also run into is that you can exceed the max size of the container and get an overflow.  Then you need to look at the expected size of the max and min values of each variable and try to work them in  alternately so as neither to go below 1 nor above max value.
    Neal

  • Issue with the Data Type 'Number' in Business Objects

    Hi,
    I have an Object in the Universe where the Data Type of the Object is a number. This Column pertaining to this Object has certain values in the database out of which there is a 17 Digit Value which is 00000000031101165.
    Now, when trying to retreive the same value through Business Objects it is getting rounded off to 00000000031101200 automatically when trying to view in Webi and when trying to retreive the same in Designer/Deski, it displays as 0.000000003110116E+16.
    So, I would like to know if there is any other alternative in trying to retreive the Original Value that would not round off. Also, do we have any Limitation for the Data Type Number in Business Objects? The Version we are on is XI3.1.
    Note: There are no functions that are used on this Object at the Universe Level and would not like to use any functions here.

    What is the underlying database?
    It looks like the data is considered to have two decimals, but is rounded to zero decimals.
    Only you don't see the number formatting.
    Is this a BW query?
    Is this a calculated keyfigure?
    In the query you can specify the rounding you want and it is also possible to specify it on an infoobject level.
    Check those settings...
    Hope this helps,
    Marianne
    PS. Oh, and about the formatting, you can specify a default object format in the universe and override it on the final client (WebI, Crystal)

  • Comparing the "line" results of two Cubesets- is it possible?

    Hi all-
    I had asked this previously- I'm going to try again and hopefully be clearer about what I'm hoping to accomplish. I'm open to any way to accomplish this, although in the best possible world I'd be able to keep it inside one or more cubeformulas using MDX
    as needed.
    Using Cubeset, I can grab a slice of an AS cube. For this example I'll use [locations] and [Jan 2014]. The resulting cubeset has 3 items: 
    Rock City
    Orlando
    Boston
    Now I want to compare two measures for equality (by location), without building a pivot table or creating a cell for each of the returned locations (some cubesets will be quite large).
    For example, it is important that [Hours worked] and [Hours paid] are
    equal. I don't want to know if the overall sums are equal, I need to know if they are equal for each item in the Cubeset;
                      Worked      Paid
    Rock City       220          220
    Orlando          517          516
    Boston           391          392
    Total           1128        1128
    So in this example, the grand total is the same, but my comparison should return a False/failed result because one location paid more than they should have, and someone at the other location got underpaid.
    What is the best way to compare measures at a "line item" (cubeset) level without powerpivot or pivot tables? I'd even take a VBA solution over a pivot table- I'm good with VBA, although it would still be another learning curve for me
    to learn how to access the AS cube more directly and make these comparisons in VBA.
    One additional complication- for some measures, I will need to round (or roundup) the individual values before comparison. If a person works 8.97 hours, we are going to pay them for 9. For other measures it will be a normal rounding to zero decimals, to
    smooth out calculation differences.
    If I can get the individual line item comparison but not the rounding, I'll ask the cube folks to add rounded measures to the cube for me, so that is my backup plan if it is possible to do the comparison but not the rounding.
    I appreciate any/all suggestions on how to do this comparison, starting from the existing cubesets!

    Hi Keith,
    As I understand you are trying to add compare the values.
    I am trying to look into it but as of now I have this workaround for you. You can try to create a new column having if formula that returns 1 if the cell values are equal and 0 if they are not.
    At the total row we compare the sum of value of the column with if formula that we created and the sum 1128 in this case with the help of if formula again.
     The formula that returned wrongvalue is IF(B5=SUM(D2:D4),B5,"wrong values"). Please let me know if it works for you. Below is the table that I worked on -
    Worked     
    Paid
        Compare
    Rock City
    220
    220

    Orlando         
    517
    516
    0
    Boston          
    391
    392
    0
    Total          
    1128       
    1128
        wrongvalue

  • Default Workbook Formatting - Apply Styles to Design Item Cells

    Hi All,
    I am trying to create a template workbook with design items and formatting that I want to use to build a number of end user workbooks with multiple queries.
    The baisc idea is that the template workbook would contain a Theme with styles applied to design items. I would then make this as my default workbook ( not global default but only my user specific default workbook ) and then build the rest o the workbooks with queries in them on multiple sheets.
    So these workbooks with queries would also contain the Theme from the template workbook. And in future if any formatting changes need to be made I would only have to change the Theme on my template workbook.
    Sounds perfect in an ideal world. The challenge I'm facing is that I am unable to apply a SAPBEX style to design items object. Since the number of cells is dynamic on an Analysis grid I want to apply the style to the Analysis grid object as the help describes it - see below.
    I am not turning off the formatting check in the data provider since it shows key figures in internal format. I have key figures that are rounded to zero decimals as well as % values in my queries and want to show them without decimals and with the % sign. Turning off the formatting flag removes the Std. formatting from the query definition.
    So I was hoping to keep the formatting turned on and then apply a style to the analysis grid object. Please advice if htis is possible or any workaround to achieve this.
    Thanks

    Hi Ravi.
    You cannot apply a style to a design item. The design items are using pre-defined styles, so you will have to modify the already existing SAPBEX*-style that handles the part of the design item you want to customize. If you cannot tell which style does what, just make a change to it and run the workbook to see what you changed.
    Br
    Jacob

  • Reading data from force gauge rounding off decimals

    Hello everyone.  I am new to Labview and this is my first posting on the forum.  I am currently writing a program to record pull tests on crimps using a force gauge.  Everything is going fairly well for it being my first project except when the data I am reading from the force gauge is rounding off the decimals.  I am sure it is where I am using the absolute value and conversion functions but I am unsure the correct way I should be doing this.  Thanks in advance for any advice.  Also, I tried searching on this but did not come up with anything so I apologize if this is a redundant topic. 

    The reason you are losing your decimals is because of the data type you are using.
    If you notice, your indicator is blue, indicating it is "I8" (an 8-bit integer).
    Since it is an integer, by definitiion it has no decimal precision.
    After you read in the data string, try converting it to SGL (single precision float, 32-bit) or DBL (double precision float, 64-bit)
    Cory K

  • Batch Specific UOM - Rounding error

    Hi All,
    I just configured Batch Specific UOM to convert pipe material with base UOM of foot to alternate product UOM piece. Length of each piece varies from 30.000 to 35.000 feet.
    When I post goods receipt with 
    1. Unit of entry is alternate UOM (pieces) - system converts qty to feet using planned conversion factor
    2. Unit of entry is base UOM (foot) sytsem is rounding off qty in feet to zero decimals and then applying planned conversion factor. While removing decimal digits it gives message "Too many decimal plces for UOM foot" ( 100.78 feet will be changed to 101 feet)
    When batch is changed to input correct correct conversion - it changes qty in pieces instead of changing it in base UOM.  So now there is no way to enter qty correctly in base UOM with correct decimal places -such as 100.54 foot.
    Any help will be appriciated.
    Thanks,
    Ashutosh
    Edited by: Ashutosh_x on Dec 21, 2009 8:18 PM
    Edited by: Ashutosh_x on Dec 21, 2009 8:19 PM

    have you read this document, especially the Prerequisites?:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/7f/c23c08ddf411d285e20000e82013e8/frameset.htm
    I think you have to use Conversion Factors from Object Dependencies  instead of Conversion Factor from Two Units of Measure

  • Rounding the values in Query designer

    In Query Designer, I am trying to store the rounded value of the below calculations to use in calculating a difference amount and %variance.
    Currently:
    Report shows actual % of 1.1 and budgeted % of 1.1, because we are rounding the actual value of 1.0798 to 1.1 and the budgeted value of 1.1326 to 1.1.  The difference is calculated as budget u2013 actual or 1.1326 u2013 1.0798 = .0528 and the percent variance is 0.0528/1.1326 = 4.66%.
    Requested:
    The end user wants the rounded values of 1.1 used in calculating the differences and percent variance, so 1.1 u2013 1.1 = 0 difference and percent variance is 0/1.1 = 0%.
    What function can I use to recall the rounded values to use in difference and percent variance calculations?
    Thanks for any and all help!
    Kim Plut

    HI Al -
    Your suggestion:
    If you want to round a key figure "KF" to have zero decimals:
    ( FRAC ( 'KF' ) < 0.5 ) * FLOOR ( 'KF' ) + ( FRAC ( 'KF') >= 0.5 ) * CEIL ('KF')
    An equivalent MS Excel formula you can use to test is:
    =IF(A3-TRUNC(A3)<0.5,FLOOR(A3,1),CEILING(A3,1))
    If you want to round a key figure "KF" to have 2 decimals:
    ( FRAC ( 'KF'*100 ) < 0.5 ) * FLOOR ( 'KF' * 100 ) / 100 + ( FRAC ( 'KF'
    100 ) >= 0.5 ) * CEIL ('KF' * 100) / 100
    The equivalent MS Excel formula to test it is:
    =IF(A5100-TRUNC(A5100)<0.5,FLOOR(A5100,1)/100,CEILING(A5100,1)/100
    is exactly what I need, I am struggling to find the formula to round the key figure to 1 decimal in the query, any suggestions on how to modify the above formulas to return one decimal.  I was able to successfully test in Excel but cannot get the correct formula in Query designer.
    Thanks
    Kim

Maybe you are looking for

  • Dynamic creation of two records in IT19 from input in IT16

    Hi all I am working on a dynamic action to do like this: When a person is hired through a PA40 one enters an IT0016 (at this point predefined with probationary period 9), saves and by doing this creates an IT0019 with Task Type "U9" and a date of tas

  • Servlets not working in tomcat-4.1.24

    Servlets are not working in a new context which I have created in tomcat-4.1.24. if i put the same servlet in examples context it is working. jsps are working in the new context also. any idea???? binny

  • Save fillable PDFs in Reader

    I've created a fillable PDF form in Acrobat 7.0 Professional. I want to fill in the form by using Adobe Reader and then save it as a new (will obviously be a non-editable) document. Filling in works fine, but it doesn't let me save the filled-in form

  • Undocumented new AppleScript command: "auto import"

    According to its scripting dictionary, iPhoto '08 has a new verb, defined as follows: *auto import* <specifier> Start importing photos from the auto-import folder (Specifier is the object for the command) I've searched the menus, preferences, and hel

  • R12 Form Opening Issue

    While opening the receivables forms i am getting this error FRM-92101: There was a failure in the forms server during startup. This could happen due to invalid configuration