Number Format Model (Percent Sign)

Hi all,
I am hoping that someone will be able to assist me with a Number Formatting issue I'm experiencing using APEX 3.0.1.
I have a report display a financial amount and a percentage column and I want to display totals for both these columns with appropriate signs - local currency for fiscal amounts and percentage sign (%) for the percent column.
The financial column is easy as it is included in the seeded number formats available but I don't believe there is a format modifier for the % sign. I have achieved displaying the percentage sign at individual row level by adding #PERCENT#% to the HTML Expression of the Report Column Attribute.
......    <Fin Col>   <% Col>
        $1,230.00          0.01%
            $30.55         15.00%
        $1,000.00          3.00%
        $2,263.55          18.01 <-- Missing % sign in sum row
However the percentage sign does not appear in the calculated sum total row.
Doing a TO_CHAR in the actual SQL Query for the percentage column means that the sum row always returns 0 (zero).
Does anyone know how I'd be able to achieve the formatting at a sum row level for the percentage column?
Kind Regards,
Gary.

You mixed both expression in a format.
G- comma(,)
D- decimal (.)
Yours
select to_char(9693.256,'$0G000.000') from dual;that should be either of this way
select to_char(9693.256,'$0G000D000') from dual;or
select to_char(9693.256,'$0,000.000') from dual;i hope you could understand.
kanish

Similar Messages

  • Column format with percent ( % ) sign

    Is there column formatting for percent ( % ) signs?
    One of the fields in the report currently displays a number, e.g. "3.75", but need to add the percent ( % ) sign, e.g. "3.75%".
    I found the following:
    * To display "$5,234.10", I can use "FML999G999G999G999G990D00", this formats with a dollar ( $ ) sign and two decimal places.
    * To display "-5,234.10", I can use "S999G999G999G999G990D00", this formats with the sign ( + ) or ( - ) and two decimal places.
    However, I fail to find how to add the percent ( % ) sign...
    -Frank

    Thx for this hint. The only Problem with this solution is that the ‘%’ is also shown when the value is NULL.
    Has someone solved this also for NULL values where there should be nothing in the cell.
    Some solution but not very nice is to do this in the query itself.
    select ltrim(to_char(value, '999G999')||'%','%') from dual
    another one may by
    select to_char(b.COST_MATERIAL,'999G999L', 'NLS_CURRENCY = ''%''')
    from budget b

  • How to use FM format element in number format model

    Dear all,
    Could anybody explain what is FM format element for in number format model? I read the documentation, it doesn't show a clear description as it those in Datetime Format Model section.
    regards,
    Valerie

    It works mopre or less the same for numbers as for dates:
    SQL> -- generating some numbers:
    SQL> with t as (
      2  select level n
      3  from   dual
      4  connect by level <= 10
      5  )
      6  --
      7  -- actual query:
      8  --
      9  select n
    10  ,      '*'||to_char(n, '09')||'*' nofm
    11  ,      '*'||to_char(n, 'fm09')||'*' fm
    12  ,      length(to_char(n, '09')) lnofm
    13  ,      length(to_char(n, 'fm09')) lfm
    14  from   t;
             N NOFM            FM                   LNOFM        LFM
             1 * 01*           *01*                     3          2
             2 * 02*           *02*                     3          2
             3 * 03*           *03*                     3          2
             4 * 04*           *04*                     3          2
             5 * 05*           *05*                     3          2
             6 * 06*           *06*                     3          2
             7 * 07*           *07*                     3          2
             8 * 08*           *08*                     3          2
             9 * 09*           *09*                     3          2
            10 * 10*           *10*                     3          2
    10 rows selected.As you can see, the leading spaces are trimmed.

  • Stoplight Format: How to show percent sign next to each value?

    I need to show a percent sign next to each data value on a column that has a stoplight format. The calculation has been created and works perfectly. But when I add the stoplight format, the percent sign '%' disappears. For example, acolumn data value is 95.25%. After I add the stoplight formula, 95.25% becomes 95.25.

    Thanks for your help, nearly worked but only returned results where the if statement was met ie where locked =0, so I used an additional statement to display something else when when locked=1
    <?php
    if($row_spec_rx['locked'] == 1) {
    echo "button html goes here";
    ?>
    <?php
    if($row_spec_rx['locked'] == 0) {
    echo "something else";
    ?>
    I am sure there must be a more elegant way of doing this!

  • APEX cannot accept any other number format mask except 999G999G999G999G990?

    Hi, guys:
    Can anyone help me on this problem? I have a report with a column of number type, but I want to use accounting format mask such as <1234.56>, however. whenever I choose any other format model for this number column, I got the error message as "ORA-01481: invalid number format model", I can only choose Numeric format mask: 999G999G999G999G990
    Anyone could give me a hint on this? I am using APEX 4.1 and Oracle 11G R2. Here is my query for report
    select uh.descr, inv6.userkey, inv6.invno, inv6.amt-pa_temp.Subtotal_Payment over_short_amount
    from
    (select pa6.invoicekey, sum(pa6.amt) Subtotal_Payment
    from payments pa6
    where trunc(pa6.pmtdate)<=to_date(:P55_DP_VPF_PROD_DATE,'DD-MON-YY')
    and pa6.type not in (5)
    and pa6.invoicekey in (select pa5.invoicekey
    from payments pa5
    where trunc(pa5.pmtdate)=to_date(:P55_DP_VPF_PROD_DATE,'DD-MON-YY')
    and pa5.type=2
    group by pa6.invoicekey) pa_temp, invoices inv6, userhdr uh
    where inv6.userkey=uh.userkey
    and pa_temp.invoicekey=inv6.invoicekey
    and pa_temp.Subtotal_Payment<>inv6.amt
    and abs(inv6.amt-pa_temp.Subtotal_Payment)>1000
    order by 1Thanks a lot!
    Sam

    I found the cause. Thanks!

  • Solved: Pick Number format mask

    Hello,
    I'm trying to format all my numbers to a specific model:
    999G999G999G999G990D00
    I tried doing it like I did with 'PICK_DATE_FORMAT_MASK', where I define my format under
    "Application Attributes>Definition". I called it PICK_NUMBER_FORMAT_MASK'.
    It didn't work and i got the next error above my report:
    report error:
    ORA-01481: invalid number format model
    I also tried to define an application item with the value: 999G999G999G999G990D00
    but then I get the same error. If I paste my number format in my report column under Number / Date Format then it works perfect. But I can't change the global format of my numbers now.
    Can anyone help me?
    Thanks in advance.
    Regards,
    Oli

    <p>Oli,</p>
    <p>As you already discovered there is no PICK_NUMBER_FORMAT_MASK substitution variable like there is for date pickers. Perhaps this a nice enhancement request. However, there are some workarounds:
    <ul><li>
    <p>For reports, you can use your PICK_NUMBER_FORMAT_MASK if you convert the NUMBER columns into VARCHAR2 columns like this:<BR>
    <p>to_char(number_column,'& PICK_NUMBER_FORMAT_MASK.')</p></li>
    <li><p>Use ApexLib and extend the firefox plugin with your own numeric settings.</p></li>
    <li><p>You can use the user interface defaults (table defaults, column defaults) in the shared components section of your application.</p></li>
    </ul>
    <p>With kind regards,</p>
    <p>Jornica</p>

  • Format model oddity; G and V combined

    Hi,
    can I have your opinion on this..
    Some background if you're not familiar with the 'V' in format models:
    select to_char(100, '999999999V9') newnum from dual;  --- 100 * 10^1 =   1 000
    select to_char(100, '99999999V99') newnum from dual;  --- 100 * 10^2 =  10 000
    select to_char(100, '9999999V999') newnum from dual;  --- 100 * 10^3 = 100 000In short; it multiplies with 10 ^ (number of 9's after the V) , and rounds as needed. Simple, and sometimes useful.
    Now, I found that I could format the result with group separator in one go, so I had this
    select to_char(1000000, '999G999G999') newnum from dual;  --- 1 mill -> 1,000,000reduced to 100K , and added a V9 to the end of the format model:
    select to_char(100000, '999G999G999V9') newnum from dual;  --- 1 mill -> 1,000,000 ??but I got this:
    100,0000
    1 row selected.
    Now, wouldn't you agree it's a bit weird? I would have expected the V to operate before the G's , to return 1,000,000 .
    How about you? There are others that could be useful which doesn't work, for example
    select to_char( 1000, '999G999.99V9') newnum from dual;
    ORA-01481: invalid number format modelwhen I'd like to see '10 000.00'. Feels a little buggy that it works at all, the above?
    I have
    select * from nls_database_parameters;
    PARAMETER                      VALUE                                  
    NLS_LANGUAGE                   AMERICAN                               
    NLS_TERRITORY                  AMERICA                                
    NLS_CURRENCY                   $                                      
    NLS_ISO_CURRENCY               AMERICA                                
    NLS_NUMERIC_CHARACTERS         .,                                     
    NLS_CHARACTERSET               WE8MSWIN1252                           
    NLS_CALENDAR                   GREGORIAN                              
    NLS_DATE_FORMAT                DD-MON-RR                              
    NLS_DATE_LANGUAGE              AMERICAN                               
    NLS_SORT                       BINARY                                 
    NLS_TIME_FORMAT                HH.MI.SSXFF AM                         
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM               
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR                     
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR           
    NLS_DUAL_CURRENCY              $                                      
    NLS_COMP                       BINARY                                 
    NLS_LENGTH_SEMANTICS           BYTE                                   
    NLS_NCHAR_CONV_EXCP            FALSE                                  
    NLS_NCHAR_CHARACTERSET         AL16UTF16                              
    NLS_RDBMS_VERSION              11.2.0.1.0                             
    20 rows selected.Well, just thought I'd mention it :)
    Rgds, A

    Hi,
    Arild wrote:
    ... Some background if you're not familiar with the 'V' in format models:Thanks; I'm not familiar with it. I've never seen it used, let alone used it myself.
    Do you actually use it in production code?
    ... Now, wouldn't you agree it's a bit weird? I would have expected the V to operate before the G's , to return 1,000,000 .
    How about you? There are others that could be useful which doesn't work, for example
    >
    select to_char( 1000, '999G999.99V9') newnum from dual;
    ORA-01481: invalid number format model
    I'd be interested in learning why Oracle included this. I suspect some important customer asked for it long ago, and Oracle has continued to support it, but not very much. (That is, they haven't tried to make it a little more useful, by letting it do things like your examples.) They haven't documented it very well, either. For example, the SQL language manual
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/sql_elements004.htm#sthref379
    says very clearly that 'TM' format can't be combined with certain other elements, but, just a few lines later, says nothing about combining 'V' with other elements.
    It's not that hard to say
    select  to_char (1000 * 10, '999G999.99')    AS newnum
    from    dual; it that's what you really need to do. Can you think of any examples where a work-around would be very inconvenient?

  • Showing Positive Sign as Number Format

    Hi all,
    Is it possible to set the number format (custom format) to show the positive numbers with positive sign (+) in front of the number (for example, +2, +2.3, +0.0, etc).
    I don't want to have to cast the number as string and do a concatenation. So, is it possible to do that using a custom number format?
    Thanks a lot!

    Yess it is possible....
    Go to Column Propoerites -> Conditionla Format - > Add Condition
    If seleted measure is greater than or equal to 0
    then Edit format will open . In that goto -> Data Format -> Check on Override Default Data Format -> Select Custom
    Then add this +##,###,###
    Thanks and Regards,
    Fiaz
    mark as answered

  • Number format mask of text item is not applied

    Hello all,
    I want to format a number like 999G999G999G999G990D00
    Is specify the format mask under source of the item. But it is not applied and I don't understand why.
    See http://apex.oracle.com/pls/otn/f?p=53873:2 for example
    Btw. is it possible to set the format for all numbers in the application at once? I want to have a thousand separator in most cases.
    Message was edited by:
    Jacob_B

    Hello Jacob,
    Btw. is it possible to set the format for all numbers
    in the application at once? I want to have a thousand
    separator in most cases.I am using substitution strings for things like that. You can define some "global" substitution strings on page application definition.
    So you just have to put in the format (999G999G999G999G990D00 ) in there once and give it a name. Let's say NUMBER_THOUSAND.
    Afterwards you can reference it wherever you need the format e.g. this way:
    to_char(10000,'&NUMBER_THOUSAND.').
    This way you just have one place where to change the format model.
    Regards,
    Tine

  • How do I change the number formatting within a Cell Table in Microsoft Word?

    Hi, I was wondering if someone could help me out on an issue I've been having... I work for an accounting firm and we do a lot of financial statements. 
    I was wondering if we would be able to treat a cell table in Microsoft Word 2007 like I would a cell table in Microsoft Excel. Meaning, I would like to change the formatting of the numbers in the table to the "Accounting" (number) format so it
    aligns by the decimal point and use the $ signs and () for negative numbers.  We do use the link tables feature, however, most of our balancing pages just can't be done in Excel because of the way the text is written. It would be much harder to format
    the text if it were to be typed in Excel. We have also tried  creating an Excel sheet within Microsoft Word but it is the same as linking the tables... Again, a text formatting issue.  The only option is to use tables within Word but how do we change
    the number formatting to a "accounting" (number) format where the numbers would align with the decimal point and use () for the negative numbers. Is there ANY option for us to do this other than manually entering this information in using tabs?  
    If there are no options other than entering it in manually, please consider this as an option for your next software update. I believe that a LOT of people out there will be interested in this feature... My manager and I just attended a webinar on Microsoft
    Advanced Word Tips Tricks and Techniques and 75% of the attending people had this question but no answer.
    Thank you very much for your help!!!!!

    Word does not really have number formatting for table cells. You can align cell contents on the decimal point, though, by setting a so-called decimal tab stop.
    Option 1:
    - Select the cells for which you want to do this.
    - Display the ruler.
    - Click the Tab box on the left hand side of the ruler until the box contains an inverted T with a dot.
    - Click in the ruler where you want the decimal tab.
    Option 2:
    - Select the cells for which you want to do this.
    - Click the arrow in the lower right corner of the Paragraph group on the Home tab of the ribbon.
    - Click the Tabs... button in the lower left corner of the dialog.
    - Specify a tab position in the box, e.g. 1.5".
    - Select the 'Decimal' radio button under 'Alignment'.
    - Click Set.
    - Click OK.
    You will have to type the numbers as they should appear, including the $ for currency and the ( ) for negative numbers.
    Regards, Hans Vogelaar

  • Again: Number Format, Decimals in calculated fields

    My customer wants to know how he can have calculated fields in his reports.
    I've found out that e.g. this works for the calculation:
    <?format-number:((SALARY) div (../../DEPTSAL));'#,##0.00'?>
    But there is no way that I can get a precision of two decimals. All given formats are ignored.
    Maybe this is an issue with the european decimal sign , (Comma).
    How is this to be fixed?
    The use of the translate function was recommended somewhere. I have no idea how to bring it together with my calculation formula.
    Thanks in advance,
    Kai
    Message was edited by:
    kai

    Hi kai,
    First you need to remove comma from your amount field then you can get your result.
    If you have any comma in your amount field then xml number format does not work.
    Look this forum:
    Re: How to indicate number percission in a template?
    Thanks
    Ravi
    Message was edited by:
    Ravi Tripathi

  • Call to_char, to_number or to_date with nls_pars but without a format model

    Hi
         Does somebody know if there is a way to call to_char, to_number or to_date functions defining nlsparam argument and without defining the format model arument, in order to use implicit conversions.
    Thanks
    Bye Alessandro

    In my environment there is a table where I store old values (each field as varchar2) of updated and deleted table records with a sort of audit_triggers.
    These triggers are the ones using to_char(<number>) to convert a number. It works fine because it does what I need. If i specify a format model ( the same for all the conversion ) I have some problems. Some of them are the following, there are more.
    - with decimals for the format model on an integer I'll have a conversion like "1.00000000000" on the table storing old values and I had indications to avoid this behavior.
    - if I don't specify enough 9s for the integer part the number will be converted to a string like "################".
    Now I found that some users work with a different nls_numeric_characters session parameter and this introduced problems for reading those numbers because 1.500 can be one dot five or fifteen hundreds.
    A format model that does the same as implicit conversion would work as well but I didn't find it yet.
    Thanks Alessandro
    Message was edited by:
    Alessandro Rossi
    My need then is to call to_char() with nls_pars but without a format model
    A sample of why I want the implicit conversion
    select to_char(1989793456895722342342334534534564356435902636)
    from dual
    select to_char(198979345689572234234233453453456435253453154153456435902643536,'999999999999999999999999999999999999999999999999999999')
    from dual
    /

  • Number format issue

    I just set up my computer to use the Argentine region to display dates, numbers, times, meassures, etc. The problem is that MS-Excel continues to display the comma to separate thousands instead of periods (i.e: 1,056 instead of 1.056) and this is causing me troubles with calculations. Isn't Mac OS X supposed to handle the number format across the system? or does Exel has a mind of its own when it comes to formatting numbers?
    Thanks

    Microsoft always has marched to the beat of their own drummer but I found this in the Excel help that seems to indicate they are at least trying to do things right. Check the Notes section at the end.
    ===============
    • Format values in euro currency style
    Use this procedure to apply a euro currency style to the selected cells. If the cells you want to format contain non-euro values, you instead need to convert the values to euros by using the EUROCONVERT function.
    To use the EUROCONVERT function, you must select the Euro Currency Tool check box on the Add-ins dialog box (Tools menu, Add-ins command). If you do not see Euro Currency Tool listed in the Add-ins dialog box, then you must install the Excel Add-ins component, and then quit and restart Excel. For step 5 (Installation) of the Setup Assistant, expand Office Tools by clicking the arrow next to it, and then select the Excel Add-ins check box.
    1. To display the Formatting toolbar, click View, point to Toolbars, and then click Formatting.
    2. If you don't see the Euro Style button on the Formatting toolbar, click Preferences on the Excel menu, click Edit, and then select the Show Euro tool check box.
    3. Select the cells that you want to format as euro currency style.
    4. Click the Euro Style button.
    Notes
    • If you want to type the euro sign () in a cell, you can do so on a U.S. keyboard by pressing SHIFTOPTION2.
    • The settings on the Formats or Numbers tab on the International pane (System Preferences) determine the position of the euro sign (that is, whether the symbol appears before or after the number and whether a space separates the symbol and the number), as well as the decimal symbol and the thousands separator.

  • How to stop Outlook 2007 from changing my telephone number format?

    I'm using Windows 7 and Outlook 2007 (and Exchange 2007 SP1).
    Now, in Outlook's contact, whenever I enter a telephone number, the stupid Outlook 2007 always tries to be smart and add brackets to the first few digits!  There's no brackets in tel number.  How could I make it stop from being too smart and changing anything?

    I've found another PC with XP and Outlook 2007, but I still can't find any service called "Windows Dialing".  But I tried it anyway.  Guess what I got: in this computer, a normal local telephone format isn't changed.  But when the number is in long distance format, ie +XX YYYYYYY, Outlook 2007 stupidly removes the '+' sign in front of it!
    I then tried in my first PC to see what would happen to international telephone number format.... it's OK, the '+' sign isn't deleted.
    What a f**k!  What's this ____ called Outlook 2007 which tries to reformat things it can't understand??
    I have exactly the same problem - I am in the UK and have a pile of UK numbers stored in international format (which most cell phones recognise and some generate automatically from incoming calls). So the number would be entered as +44 1234 56789. Outlook strips off the + and, because I sync with my pda, the numbers get exported to it in a broken state :-(
    In the UK, we don't drop leading digits - to dial a number I either dial 01234 56789 or +44 1234 56789. We don't really use local numbers a lot in the UK - it doesn't make any difference within a local area if I dial the full code, just the local number or the international version. So there is no need for Outlook to do anything.
    This is extremely aggravating - sure ly Outlook is not hard coded to use  US phone dialling methods?
    There must be a way to disable the automatic parsing of numbers - if not it is bug that needs fixing, IMHO...
    Rgrds
    Peter

  • Is it possible to setup serial number format only accept 10 digits?

    Hi,
    I am using TestStand 3.0.
    Is it possible to setup serial number format only accept 10 digits?
    Also I want to input part number before start test. How to do this?
    Thanks,
    Ben

    It's the modelsupport2.prj in components\models\TestStandModels\
    There is also a preuutcallback.seq example in the shipping examples.

Maybe you are looking for

  • Disappearing loops

    Hi everyone. I just bought a 15inch Macbook Pro and I've been having issues with the loops in Garageband. Let me take you through everything I have done. I got my Macbook home and I my old Mac mini to transfer its data onto my new Macbook Pro. My Mac

  • Mail app crash

    My mail app crashes every time I open it. I can access mail through iCloud via a browser! I am running OS X Yosemite but I am sure it is not related to this update as the problem has been ongoing before this. Any ideas please? thank you jinxysculler

  • How to create Dynamic prompts for a field at run time

    HI all I have a table which has 2 columns name attribute1 and attribute1_meaning. Attribute1_meaning is the the meaning of attribute 1. ex if attribuite1 is 500.. attribute1_meaning tells us if its MHz. RAM or whatever. So IN my form I want to displa

  • Using iPAD 4G verizon hotspot via the USB cable to a windows pc

    Has anyone ever done or knows anyone that has done a successful internet tethering via usb cable from a pc running windows vista to an ipad 4g running verizon cellular, (with a 3G or 4G LTE connection)? I have tried many times but if nobody has ever

  • Still unable to edit a word document after conversion from pdf?

    I converted a pdf file to a word document but am still unable to edit the word document and save as a newly created word document.  please help, thanks.