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

Similar Messages

  • 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

  • Numeric format with leading sign

    Hi,
    I am sending some data to external agency thru my info spoke extraction. They want the - sign leading the amount field, Eg I asm sending as 400- and they want -400. I am looking for any component type that supports this kind of format on currency filed. I am expecting this change to be done in the TARGET STRUCTURE, so I don't have to code it in my BADI to produce this format.
    Any ideas. It is URGENT.
    Thanks,
    Alex.

    Hi Alex,
       For this one, Function Module available in R/3. But that function module is not available in BW.
    But you can create it: Thia is the code.
    FUNCTION ZPUT_NEGATIVE_SIGN_FRONT.
    ""Local interface:
    *"  CHANGING
    *"     VALUE(VALUE)
      DATA: TEXT1(1) TYPE C.
      SEARCH VALUE FOR '-'.
      IF SY-SUBRC = 0 AND SY-FDPOS <> 0.
        SPLIT VALUE AT '-' INTO VALUE TEXT1.
        CONDENSE VALUE.
        CONCATENATE '-' VALUE INTO VALUE.
      ELSE.
        CONDENSE VALUE.
      ENDIF.
    ENDFUNCTION.
    Only specify parameters for Changing :
    Here "Value" .
    For your input : 100-, you will get outpt : -100.
    Hope it Helps
    Srini
    Message was edited by: Srini

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

  • PanelGrid column formatting

    I know this has been asked before, but are there plans to allow column formatting with panelGrid? It sure would be nice to have a 3 column panel grid with the first column right justified (for labels), and the second and third left justfied (for input/output fields and h:message output)
    The first thought that came to mind was to assign a style or styleClass attribute for each table element (which I thought was logical, and tried, but doesn't work), so I'm open to ideas. It's available in the HTML, so there should be no reason (beyond time and resources ;) ) that it can't be done.
    Don

    it's actually plural ie "columnClasses" and also "rowClasses".
    you can provide lists of CSS classes for both of these properties, and it will "cycle-through" them as it builds the table.
    you now must become fluent in CSS, because that is your only way to effectively control the JSF's visuals.

  • How to read 16-bit signed integer in binary format with 2 byte sync. preceding??

    A flowmeter provides data as 16-bit signed integer in binary format with 2 byte sync. preceding
    I got i small problem by understanding the synchronasation.
    I read the data provided by the flowmeter, and then write it to a binaryfile.dat. i need to convert the data to decimal format. is it better to convert the data before or after writing it to the binary file. Coz i need to read the data out again for calculations and save it again in a new file.
    I understand that the synchronization  help one to see where to begin reading the usable data. is it right?
    Need any suggestions
    Thank you !
    Zamzam
    HFZ
    Attachments:
    DataOut.JPG ‏37 KB

    HI Rolf.k.
    Thank you for the small program it was helpfull.
    You got right about that proberly there  will be conflict with some spurios data, I can already detect that when writing the data to a spreadsheet file.
    I writes the data in such a way, that in each line there will be a date, a timestamp, a tab and a timestamp at the end. That means two columns.
    When i set given samplerate up, that controls the rate of the data outflow from the device, (1,56 Hz - 200 Hz),   the data file that i write to , looks unorderet.
     i get more than one timestamp and severel datavalues in every line and so on down the spreadsheet file.
    Now the question is: Could it be that the function that writes the data to the file,  can't handle the speed of the dataflow in such a way that the time stamp cant follow with the data flowspeed. so i'm trying to set the timestamp to be  with fractions of the seconds by adding the unit (<digit>) in the timestamp icon but its not working. Meaby when i take the fractions off a second within the timestamp i can get every timestamp with its right data value. Am i in deeb water or what do You mean!??
    AAttached Pics part of program and a logfile over data written to file
    regards
    Zamzam
    HFZ
    Attachments:
    DataFlowWR.JPG ‏159 KB
    Datalogfile.JPG ‏386 KB

  • EXport Data to Excel with Columns format

    Dear All,
    This may  be a basic question, however, I just need a tip to conclude my issue. 
    I have a Report that displays Financial Budget data (AFE).  I am able to download to the Excel sheet.  However, I need to conclude it with the column formatted at code itself and not given to the user.
    That is I want to set couple of column to Numeric, and Set Colum width defined at Code level itself.
    I am already using the Function module : MS_EXCEL_OLE_STANDARD_DAT
    Regards,
    Venkat

    data: go_excel       type ole2_object,
              Go_CELL        TYPE OLE2_OBJECT,
              go_workbooks   TYPE OLE2_OBJECT,
              go_workbook    TYPE OLE2_OBJECT,
              go_sheet       type OLE2_OBJECT,
              go_application type OLE2_OBJECT,
              go_activesheet type OLE2_OBJECT,
              go_text        type OLE2_OBJECT.
        gv_EXTRD = sy-datum.
        gv_EXTRT = sy-uzeit.
        concatenate pfile gv_EXTRD gv_EXTRT  'check.xls' into gv_file.
        clear: gt_export, gs_export.
    ****INITIATE EXCEL
    Create object Excel
        create object go_excel 'EXCEL.APPLICATION'.
        set property of go_excel 'Visible' = 0.
    Create workbook object
        call method of go_excel 'WORKBOOKS' = go_workbook .
      Add workbook
        call method of go_workbook 'Add' = go_workbook.
        lv_line = 0.
        loop at gt_collect ASSIGNING <collect>.
          lv_line = lv_line + 1.
          move-corresponding <collect> to gs_export.
          clear: gs_export-ZALDT.
          concatenate <collect>-ZALDT4(2) '-' <collect>-ZALDT6(2) '-' <collect>-ZALDT+0(4)
               into gs_export-ZALDT.
    Populate cells
          call method of go_excel 'Cells' = Go_CELL
            EXPORTING
              #1 = lv_line
              #2 = 1.
    **************SET UP PROPERTY WIDTH ****************************
          SET PROPERTY OF GO_CELL 'ColumnWidth' = '11'.
          SET PROPERTY OF GO_CELL 'Value' = gs_export-BANKL.
    ***********SET PROPERTY CELL NUMBER**************************************
          call method of go_excel 'Cells' = Go_CELL
            EXPORTING
              #1 = lv_line
              #2 = 4.
          SET PROPERTY OF go_cell 'NumberFormat' = '@'.     "PROPERTY NUMBER
          SET PROPERTY OF GO_CELL 'ColumnWidth' = '10'.
          SET PROPERTY OF GO_CELL 'Value' = gs_export-ZALDT.
    endloop.
    **CLOSE EXCEL**********
        CALL METHOD OF go_workbook 'SaveAs'
          EXPORTING #1 = gv_file
          #2 = 1.
        "file format
        CALL METHOD OF go_workbook 'close'.                                    "file format
        call method of go_excel 'QUIT'.
    ****OPEN CREATED EXCEL FILE ****************************
        call method of go_excel 'Workbooks' = go_workbooks.
        call method of go_workbooks 'Open'
          EXPORTING
            #1 = gv_file.
        set property of go_excel 'Visible' = 1.

  • Jspinner with percent formatting

    Hi, I want to make a jspinner but with percent formatting. Here is the code:
        private void SetUpSpinner() {
            NumberFormat percentEditFormat;
            NumberFormat percentDisplayFormat;
            percentEditFormat = NumberFormat.getNumberInstance();
            percentDisplayFormat = NumberFormat.getPercentInstance();
            NumberFormatter percentEditFormatter =
                    new NumberFormatter(percentEditFormat) {
                public String valueToString(Object o)
                      throws ParseException {
                    Number number = (Number)o;
                    if (number != null) {
                        double d = number.doubleValue() * 100.0;
                        number = new Double(d);
                    return super.valueToString(number);
                public Object stringToValue(String s)
                       throws ParseException {
                    Number number = (Number)super.stringToValue(s);
                    if (number != null) {
                        double d = number.doubleValue() / 100.0;
                        number = new Double(d);
                    return number;
            jformattf = new JFormattedTextField(
                                 new DefaultFormatterFactory(
                                    new NumberFormatter(percentDisplayFormat),
                                    new NumberFormatter(percentDisplayFormat),
                                    percentEditFormatter));
            Integer value = new Integer(10);
            Integer min = new Integer(0);
            Integer max = new Integer(100);
            Integer step = new Integer(1);
            SpinnerNumberModel model = new SpinnerNumberModel(value, min, max, step);
            CommisionSp.setEditor(jformattf);
            CommisionSp.setModel(model);
        }If I comment the CommisionSp.setEditor(jformattf); line, the jspinner works fine but without percent format. But if I add that line.... the increase and decrease button does not work at all although I can edit the jspinner directly and when the jspinner lost the focus, my number will be formatted to be percentage formatting.
    Any solution???
    Thank you.

    is this what you're trying to do?
    import javax.swing.*;
    class Spin extends JFrame
      public Spin()
        super("Spin");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(200,75);
        setLocation(400,300);
        JSpinner spinner = new JSpinner(new SpinnerNumberModel(0,0,1,.01));
        JSpinner.NumberEditor editor = new JSpinner.NumberEditor(spinner,"0%");
        spinner.setEditor(editor);
        JPanel jp = new JPanel();
        jp.add(spinner);
        getContentPane().add(jp);
      public static void main(String[] args) {new Spin().setVisible(true);}
    }

  • Format with multiple column

    Post Author: vman
    CA Forum: General
    I am working a report that has had the details section format with multiple columns selected.  I want to change the report and remove the check box, but it is grayed out.  How can I get the report details section back to default without the detail size constraints?

    Post Author: rcoleman
    CA Forum: General
    Bearing in mind that I'm a relative newbie to the report writing/Crystal world...the only thing I can think of is that maybe the report was written using an older version of Crystal and this option wasn't available. Another possibility, if it's a sub-report, you might try making a copy of the sub-report saving it with the same name, deleting the old sub-report, replacing it with the copy you made. I know that has worked for me when I've had problems with the re-import when opening is greyed out.

  • Label Column When Formatting With Mutliple Columns

    When creating a report with multiple columns (setting the Format With Multiple Columns property in the Details section), is it possible to put a label column on the left side of the page, followed by multiple data columns?  The idea would be something like this:
                 8/1/08 8/2/08 8/3/08 8/4/08 8/5/08     
                 ====== ====== ====== ====== ======
    Metric Label 1   C1D1   C2D1   C3D1   C4D1   C5D1
    Metric Label 2   C1D2   C2D2   C3D2   C4D2   C5D2
    Metric Label 3   C1D3   C2D3   C3D3   C4D3   C5D3
    Metric Label 4   C1D4   C2D4   C3D4   C4D4   C5D4
    Metric Label 5   C1D5   C2D5   C3D5   C4D5   C5D5
    The date on top will be a group 1 header.  The metric labels to the left will be detail rows.
    Fuskie
    Who is turning once again to the CR Gurus...

    Hi Fuskie,
    A quick suggestion will be  to use a cross-tab instead of multiple columns to generate the desired output.
    Another suggestion will be to use a subreport. The main report will be used to type the labels on the left side, and the subreport will be used to display the multiple columns information.
    1. Create a report that will be used as a container for your multiple column report.
    2. Add labels in the Report Footer of the report.
    3. Insert your multiple columns report has a subreport in the Report Footer on the right of the labels
    you created in the main report. On the main report
    In the subreport, if you want to see the Group to appear as columns at the the top, you will have to include the group in the multiple-columns, and I will suggest to format the Group Footer with the option "Print at the Bottom of Page". This will ensure that your Group Header will always appear at the top like in a cross-tab, otherwise, it might display your data like:
                 8/1/08  C2D3
                 ===== C2D1
    Metric Label 1   C1D1   C2D1  
    Metric Label 2   C1D2   C2D2  
    Metric Label 3   C1D3   C2D3  
    Metric Label 4   C1D4  
                            8/2/08
                            ====
                            C2D1
                            C2D2

  • Repeat "Detail a" section when using "Format with Multiple Columns" layout

    I am using Crystal Reports for .NET (VS 2008) and I would like to get the "Detail a" section to repeat at top of a second column containing additional data in "Detail b" section. Please see below for example, specifically "Detail a (2)". Any tips or help much appreciated.
    Detail a (1)_____Detail a (2)
    Detail b (1-1)___Detail b (2-3)
    Detail b (1-2)___Detail b (2-4)
    --Detail b (1-3)___Detail a (3)
    Detail a (2)______--Detail b (3-1)
    --Detail b (2-1)
    --Detail b (2-2)
    Thx, Scott

    the format with multiple columns i dont believe will show you the value 2x, but allows you to display the values across instead of down.
    i think you may want to use a sub report

  • Format with Multiple columns

    Hi Crystal gurus.
    I'm having the report which consist of more that 500 rows , so therefore I decided to implement "Format with multiple rows" feature, which is available in Section Expert area. Everything is just fine, I'm getting multiple columns, but how to suppress the header which is not needed for the last page, because the records are only in the first column.
    I can easily copy/paste the header as such, but I do not know how to suppress it. Tried to search here, but found nothing.
    Many thanks in advance Mcmerphy

    If it truely is the last page of the report, you could try a conditional suppression where pagenumber = totalpagecount. But this would always suppress the header selected for suppression, and if you should get another column on the last page, it will still suppress.
    Debi

  • FSG Percent Sign

    1. FSG report that I created has Variance % column. How do i append percent (%) sign to all the values under this column. Is there a option in FSG that i can make use of for this? for e.g 10% instead of just 10.
    2. Row set in the FSG report has multiple Row headers. How do i bold these row headers? In my example here how do i make Revenue and Expenses Rows bold?
    For e.g:
    Revenue
    -HW Revenue
    -SW Revenue
    Expenses
    -HW Expense
    -SW Expense.

    Please see these docs.
    Report Manager: Unable To Publish FSG Reports With Percentages Via Excel and PDF [ID 568026.1]
    R12: Question Mark ? Displaying For Percentage Column [ID 736955.1]
    Fsg Output In Adi Not In The Desired Format Using A Custom Theme [ID 331115.1]
    ADI: Percent Symbol(%) Not Displaying In The Published Report [ID 260875.1]
    Thanks,
    Hussein

  • Field / Column for Minus/Plus sign in Query

    Hello
    In Query Designer I would like to create a column that shows the sign '+' or '-' when a key figure KF1 is below 0 or above. How do I do this? It has to be a separate column. I already created a calculated key figure KF2 that has as formula ABS (KF1). KF1 itself must not be shown as contains amount and sign in one field. I need to separate these 2.
    Regards
    Arjan

    Hi Arjan,
    If you want to display custom images (In this case + / - )
    First you have to create an Image for Plus or Minus symbol and save it with .gif format in the MIME Repository.
    Transaction SE80, Select MIME Repository.
    SAP->BW->Customer->Images.
    Upload the Images in this folder.
    Create an exception in Query Designer.
    If KF2 is <= 0, then Red (Bad 1), else Green (Good 1). Save the query.
    Open Web Application Designer; Assign the query with the exception defined to the Analysis Web Item.
    Select the Analysis Web Item -> Web Item Parameters tab -> Internal Display
    Select Modification -> Single Module
    Select Type as Generic Module
    After selecting Generic module, you have to provide the implementation name.
    Implementation Name should be com.sap.ip.bi.rig.ExceptionImage
    Click on the button next to Parameter below it.
    Here you will find the field, Name/Expression.
    Give Parameter Name/Expression as ALERT_X, where X is the Alert number of the Exception defined in the Query. The mapping is as given below.
    ALERT_1 equates to Good 1
    ALERT_2 equates to Good 2
    ALERT_3 equates to Good 3
    ALERT_4 equates to Critical 1
    ALERT_5 equates to Critical 2
    ALERT_6 equates to Critical 3
    ALERT_7 equates to Bad 1
    ALERT_8 equates to Bad 2
    ALERT_9 equates to Bad 3
    Here you have to give ALERT_1 (Since you have defined Good 1 for Green in the report).
    Select IMAGE from the dropdown box for the field u2018VALUEu2019.
    Select the Image stored in the MIME Repository.
    Similarly define the other Alert - ALERT_7 (Since you have defined Bad1 for Red) and select the corresponding Image from the MIME Repository.
    The Exception Visualization drop down in Cell Content Area of the Analysis Web Item should be set to display Symbols.
    This works only from BI 7.0 onwards.
    Hope this helps.
    Regards,
    Hari.

  • Crosstab column formatting

    I'm creating a crosstab report with a Current Year & a Last Year column.  I've added 2 calculated columns to show a variance $ and a variance % between current & last year.
    I have no problem coming up with the results.  My dilemma is to format the 2 added columns as currency and percentage.  When I try to change the percentage column's format to percent, all other columns in the crosstab also change to percent.
    Can someone out there tell me if there's a way to create 2 different formats for the 2 added columns?  I'd really appreciate it.  Thank you very much for your help.  I've been struggling with this issue for quite sometime.

    Hi Fione,
    Here's what you need to do:
    1) Assuming that the datatype of the field used in the 'column' of the Crosstab is 'Date', right-click the 'Variance $' header cell > Select Calculated Member > Edit ColumnValue Formula and use this code:
    Cdate(1890,01,01)
    2) To the same for the % column however, use this code:
    Cdate(1890,01,02)
    3) Right-click one of the summary cells in the 'Variance $' column > Format Field > Number tab > Customize > Currency Symbol tab > Check 'Enable Currency Symbol' > Click the formula button beside 'Position' and use this code:
    if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,01) then
    crLeadingCurrencyInsideNegative
    else if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,02) then
    crTrailingCurrencyOutsideNegative
    4) Click the formula button beside 'Currency Symbol' and use this code:
    if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,01) then
    "$"
    else if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,02) then
    else ""
    Note: In both the formulae above, replace "Date_field_used_in_column" with the database field you've used in the crosstab's column. The double quotes ARE NEEDED and make sure to remove any parenthesis that CR automatically addds when you add a database field in the formula editor.
    Let me know how this goes.
    -Abhilash

Maybe you are looking for

  • How can i have 2 iphones with 2 diferent id's?

    Hello, i have an iphone3gs with an apple/icloud id. I bought yesterday an iphone4s and transfered all the content of the 3gs to the 4s. Now i want to give the iphone3gs to my wife and associate her apple/icloud id with it. How can i do it?

  • Can you help advise re video card upgrade for my G4 MDD?

    Hello all. Just upgraded to Tiger from 10.2.8 a couple weeks ago. Should have done it long ago... like having a new computer! I want to get more out of the OS for mostly graphic apps like PS-CS2, Painter, Freehand, Fontographer, etc. Right now I have

  • Looking to use a check box to set value of a text field

    I have 2 address fields 1 for billing and 1 for shipping I put a check box in to determine if the shipping address is the same.  Keeping it simple just want the shipping address to check if the box is checked and if it is copy the information in the

  • Dropdown List in report program

    Hi Anybody send me the Dropdown list coding for a parameter in s selection-screen of a normal report program without using a module-program regards paul

  • TS3694 how can i fix the problem of 3194

    can u help me to fix the trouble shoot