Format a decimal number to percentage form, e.g. 0.01 to 1%

Hi all,
As titles, i want to format a decimal number to percentage form, e.g. 0.01 to 1%. I can't find it in PQ.
Thanks,
Arthur
Keep involved!

PQ doesn't currently have a way to specify number formats (that's usually done in Excel after filling the data to the sheet, or in Power Pivot). But if you want to generate some text that represents a number as a percentage, you can use this formula:
= Text.From(TheNumberYouWantToFormat * 100) & "%"
Ehren
Any plans to add this functionality in the future?
Keep involved!

Similar Messages

  • Time format to Decimal format

    Hi all
    Does anyone know how to format time format to decimal number?
    Eg: '10:21' in HH24:MI to 10.21
    '21:09' to 21.09
    Thanks in Advance
    Prash

    Since you just want to replace the colon with a period in a string, just use the string replace function:
    select replace('10:21',':','.') from dual;However if you convert this to a number, then as Boneist said it's not really comparable to the time portion of a date as 21 minutes is not 21/100 of an hour but is rather .35 hours (21/60). You won't be able to use this decimalized format as a meaningful number, nor will you be able to do any sort of date based arithmatic on it.
    You may be better off converting your string to date, then into a number via some date math:
    with sample_data as (select to_date('11:21','HH24:MI') dt from dual)
    select dt, (dt - trunc(dt))*24 from sample_data;Edited by: Sentinel on Nov 10, 2008 9:40 AM

  • Can I get a numeric value entered as a whole number on a form to "know" it's really a percentage?

    Hi everyone,
    I'm a non-technical person using LiveCycle 7.1 to design forms for the court system I work in. I've developed a judgment form where different values are entered: damages, interest start/stop dates, interest rate, additional costs/credits, which are then totaled. The form works great, I used FormCalc to perform all the math in the form. The question I have is: is there a way for the form to know a number entered in a field is really a percentage? So if a user entered "12" the form would know it's really 12%. Right now the form requires the user to enter the interest rate as a decimal value: 12% as ".12". I'm a bit concerned about the potential for user error. It would be ideal if the user could enter "12" (without decimal) and have the form know that that numeric field was always a percentage value. Any ideas? Thanks, any help is greatly appreciated.

    Thanks for the heads up, I'm actually on the line with apple right now (even though I've been on hold for more then 20 minutes ) I guess I'll see what they say.
    But I was also wondering if anyone else had to go through this

  • Format decimal number...

    is anyway to format more than two decimal point using javascript?
    for example 123.00000 ( 5 decimal point )
    or using java code to format?

    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Format decimal</title>
      </head>
      <SCRIPT language="javascript">
      function setDecimal(){
          var num = document.forms[0].num.value;
          var dec = "";
          var nums = "";
          if(isNaN(num)){
            alert('Not a number!');
            document.forms[0].num.value = "";
          }else{
            if(num.indexOf(".")>-1){
              dec = num.substring(num.indexOf(".")+1,num.length);
              if(dec.length<5){
                var num1 = 5 - dec.length;
                nums = num;
                for(var x = 0;x<num1;x++){
                  nums = nums + "0";
                document.forms[0].num.value = nums; 
              }else if(dec.length>5){
                if(parseInt(dec.charAt(5),10)>4){
                  nums = parseInt(dec.substring(0,5),10)+1;
                }else{
                  nums = parseInt(dec.substring(0,5),10);
                nums = num.substring(0,num.indexOf("."))+"."+nums;
                document.forms[0].num.value = nums; 
            }else{
              document.forms[0].num.value  = num+".00000";
      </SCRIPT>
      <body>
      <form>
        <input type="text" name="num"/>
        <input type="button" value="format" onclick="setDecimal()" />
      </form>
      </body>
    </html>

  • Form Letter Report - How To Format Date and Number Hidden Fields

    Hi
    Is it possible to format date and number fields in a form letter report. This case were Paper Design shows fields as $<hire_date>. The examples in reference book only print character values which do not require formatting. I cannot determine how to achieve this. Cannot select fields from Paper Design view as per other report styles where can apply formatting. Do I have to perform formatting in the query to return date as string in format I wish for? This is not case for other report styles.
    Thanks

    you could add a field, set the source of the field to hire_date (assuming hire_date is a column in the data model), and put a format mask of whatever format you want. then set visible to No.
    then instead of &<hire_date> you can instead type &<name of your new field>.

  • We can't add a decimal number column with the create table forms

    In the version 4, we can't add a decimal number column with the create table forms.

    In the GUI, I found the following column (I translate from french to english): PK, Name, Data_type, lenght, not null, default, comments.
    In the lenght field, if I enter 9,3 to have a NUMBER(9,3), I have a message saying that the number must be an integer.

  • How to convert fractional decimal number to hex number?

    Hi,
    Can any one help me to convert the fractional decimal number to its equivalent hex number and vice versa ?
    if u have any code please share.
    thanks
    neethu

    neethukk wrote:
    Can any one help me to convert the fractional decimal number to its equivalent hex number and vice versa ?
    if u have any code please share.
    This question is not clear at all.
    "Fractional decimal" is not a data type, but a way of formatting in readable form using numeric characters and a decimal separator.
    Same to "hex number", but only for integers.
    What do you mean by "convert"? Do you want to keep the value the same or retain the bit pattern of the numeric data type?
    Hexadecimal is for integers. Are you talking about fixed point?
    We clearly need significantly more information. What are the input and output data types? What are you actually trying to do?
    Do you have an example input and corresponding output?
    LabVIEW Champion . Do more with less code and in less time .

  • Comma or point in decimal number

    Hi,
    I wonder how to handle decimal number input from jsp page with comma or point. Is there a way to take care of this automatic so a comma get parsed to a point or vice versa.
    Thanks in advance.

    I don't know if it will be a comma or a dot that is inputed. My keyboard uses a comma on the numeric pad but if i change it to a US keyboard it will use dot instead so I can't tell what a user will input. And if I understand everything when java calculates a double it has to be with a dot, or am I completly wrong.
    So with this in mind i decided to replace all dots with a comma and then parse it to a double with NumberFormat and do my calculation and then format it with NumberFormat again. This works fine and gives me a nice output if no one tries to input more than one point or comma.
    I can't think of another way to do it so if this is completly wrong so please point me in the right direction.

  • Add a date to decimal number

    hello
    pls tell me how to add a date to decimal number as
    4 years and 3 months for example ?
    EX.
    ===
    1/1/2001
    +
    4 years and 3 months
    Regards,
    Abdetu...

    If you want a specific result, then post your desired result...we don't know your desired format mask.
    In case it's yyyymmdd:
    SQL> select to_date('1/1/2001', 'dd/mm/yyyy') dt
      2  ,      add_months(to_date('1/1/2001', 'dd/mm/yyyy'), 51) dt2
      3  ,      to_number(to_char(add_months(to_date('1/1/2001', 'dd/mm/yyyy'), 51), 'yyyymmdd')) num
      4  from   dual;
    DT                  DT2                        NUM
    01-01-2001 00:00:00 01-04-2005 00:00:00   20050401
    1 row selected.

  • Convert a column in Numbers that is currently in HH:MM format to decimal format.

    I need to Convert a column in Numbers that is currently in HH:MM format to decimal format.  IE 6:30 to 6.5

    Rj,
    There are two possibilities here. Your HH:MM could be a Date/Time value or a Duration.
    Let's assume your data is in Column A.
    If it's a Date/Time value, do the conversion with the expression:
    =TIMEVALUE(A) * 24
    If it's a Duration value, do the conversion with the expression:
    =DUR2HOURS(A)
    In both cases, remember to Format the result to Number with at least one decimal place.
    Regareds,
    Jerry

  • Output decimal number through GPIB or VISA

    I was wondering if it is possible to output a decimal number, as in not a string, through the GPIB or VISA commands. I am trying to communicate with a machine that I think wants to get a number, and can't understand what I am sending when it is in a string format.
    thanks

    It is possible to transmit such a number over GPIB. I would double check the instrument manual for what it requires. I'm going to assume that you are using a long to represent a floating pont number. Here is some example code for how you would pass this number to the GPIB ibwrt() function.
    int ud = ibdev(board,PAD,SAD,timeout,eot,eos);
    long myNumber = 4.2;
    ibwrt(ud, &myNumber, sizeof(long));
    Essentially, the driver will break down the 32-bit number into 4 8-bit chunks.
    Craig A.
    National Instruments Engineer

  • Decimal Place for Percentage

    Hi,
    Where do we change the number of decimal places for percentage?  Currently it is set as 3places. (e.g. 1.234% change to 1.2345%)
    Thanks,

    Hi Shiva,
    As for the link you gave, we don't want to change the currency decimal place.  We only want to change the number of decimals shown in a percentage value. (such 1.2345% instead of 1.234%)
    Thanks,

  • Rounding off 2 decimal number

    Hi,
    How can i round up float number to two decimal number.
    For example
    Number is 45.987654532 then It should be rounded up to 45.98
    Number is 45.987654546 then It should be rounded up to 45.99Appriciated sample souuce (If any)
    Tanks in advance

    You could have a look at String's format() method. The format strings are
    described in detail here:
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.htmlpublic class Round {
        public static void main(String[] args) {
            double number = 45.987654546;
            String roundStr = String.format("%.2f", number);
                // Rounded is 45.99
            System.out.println("Rounded is " + roundStr);
                // The same thing
            System.out.printf("Rounded is %.2f%n",  number);
    }Note: these methods generate rounded Strings from floating
    point numbers. Also, they round to a string representing the "nearest"
    number - your first example is a little hard to understand in this regard.

  • E72 - How to format the phone number on contact

    I can't figure out a easy for formatting my contact number to be like (xxx) xxx-xxxx or xxx-xxx-xxxx on e72 instead going to outlook make the changes and re-sync again. I find xxxxxxxxxx hard to read. I thought I found out how to add hypen "ctrl+(" but that basically long dash rather than short dash which you get an error if you try to send message with the phone number having the long dash. It is fine when you call. It is smart enough to strip out non-numerical value. But it is sms is not smart enough to remove it.

    ozidug wrote:
    The sad thing is that there is an international standard for phone numbers (+xxx) xxx-xxxx which everyone ought to recognise and use. It allows localisation and shortened dialling, but Nokia just want a number string. It's just lazy on thepart of the programmers; since it's a standard, they should have developed the program code once and just inserted it into every phone they produce, and that's not hard.
    A poor reflection on Nokia, I'm sad to say.
    AFAIK the international standard for telephone numbers (E.164) does not say anything about using spaces, dashes, or brackets in a telephone number.
    This may of course make it more "human readable", but claiming that what you want is a standard doesn't make it a standard, and I don't think Nokia (or any other phone manufacturer) should/could implement every single user-specific wish...

  • Need to Find Total number of InfoPart form in our Web application

    Hello,
    We have to find total number of Infopath forms in our web application. IS there any Power sheell Scripts or anuthing which can output the Infopath Forms location and file count .
    Thanks
    Kundan

    How about something like:
    Get-SPWebApplication http://yourWebAppUrl |
    Get-SPSite -Limit All |
    Get-SPWeb -Limit All |
    Select -ExpandProperty Lists |
    Where { $_.GetType().Name -eq "SPDocumentLibrary" -AND -NOT $_.Hidden } |
    Select -ExpandProperty Items |
    Where { $_.Name -LIKE "*.xsn" }
    Select {$_.Web.Url}, Url
    The above will list all of the files. Do you need counts by library, by site or other?
    Mike Smith TechTrainingNotes.blogspot.com

Maybe you are looking for

  • Which index  I should create  Btree or Bitmap  index?

    I have table with columns c1,c2,c3 I want to create index on column c1 which index I should create Btree or Bitmap index the column contain 50% unique values and 50% duplicate values If Btree why? If Bitmap Why? I know that Btree is used when there m

  • Oracle 8i installation, adding a file that is not native to the install

    I am installaing Oracle 8i to a workstation using the Universal Installer. I have made the modifications to the ORAPARAM.INI and the CLIENTADMIN.RSP files. I need to know if there is any way that I can tell the installer to grab another file that is

  • Use of rule for sending work item to multiple users

    Hi Friends, My requirement is to send the approval or rejection thru work flow to more than one user. I am trying to achieve this thru rule. How can it be achieved. Plz suggest. Rewarded... Regards, Steve

  • Multiple TextArea one XML

    What I need to do is to use 1 XML file to feed different content to 2 different TextArea fields. I know how to use an XML file to feed text content to a TextArea field. I figured out how to use 1 XML file to feed the same text to 2 different TextArea

  • Can i unlock my iphone to be factory unlock

    hi there please can appel make my iphone factory unlock and how regards bilal