Displaying 2 decimal places in BI Answers column, using SQL_TSI_HOUR

Hi,
Would anyone know why the following code refuses to display 2 decimal places in a BI answers report:
' case when "- Job Detail"."Date Delivered" is null or "- Job Detail"."Date Received" is null then 'Not Available' else cast (ROUND(cast(timestampDiff(SQL_TSI_HOUR, "- Job Detail"."Date Received","- Job Detail"."Date Delivered") as double),2) as char) end '.
Thanks,
- Jenny

instead of * 1440
do with
* 1440.00
btw: why you need to cast to date? why cant be timestamp?
Discard it

Similar Messages

  • Suppress decimal places in OBIEE Year column prompts

    Hi gurus,
    I don't know its a bug or what , in our database the "Year" columns comes without any decimal places ,also in the criteria section of the report ,I have made the data format "with '0' decimal places ", but still in the column prompt in the dashboard , I am getting year value with decimal places .
    Eg. 2012 coming as 2012.00 in choice list of the prompts . Can you provide me any work around? for that thanks in advance..

    The problem is due the data type of the column . Go to the physical layer and check the data type . It would be of 'Double' data type .. Change it to 'Int'  data type.  This would solve the problem . Posting it for the benefit of others who face similar issues. let me know if it helps anyone..
    -Jay

  • Displaying Decimal Places

    I wonder if anyone can help.
    I am trying to set oracle up to always display the decimal numbers according to the scale. So if the number was set up as 8,2 and 150 was held in a field, 150.00 would be displayed.
    Is the a setting for this, how would I set it?
    Thanks
    Kev

    The problem is neatly illustrated by your example. You want to set the default format for "all number types with a decimal place". But your example shows a rendering of 150 as 150.00.
    All numbers have an implicit decimal point. With integers the default to suppress the decimal point, because the zeroes are not significant. Of course, the zeroes are significant when, for example, the figure represents a monetary sum.
    So the nub of the problem is, when do you want to render 150 as 150.00 and when do you want to render it as 150? That is a business rule and the Oracle database cannot implement it.
    Regards, APC

  • Rounding to 2 decimal places in Derived column transform editor

    I want to replace the contents of a value column with itself but rounded to 2 decimal places.
    The current column is a double and I have tried to perform this using the following expression but it fails to work.
    Code Snippet
    Round(cc_vl,2)
    How should I achieve this?

    I’ll take a guess here but you started with this –
    123.45678
    Got this –
    123.45000
    Wanted this –
    123.45
    So the 123.45000 is absolutely correct, the value has been rounded to 2 digits. A double however has a scale greater than 2, and you only wanted two digits after the point because you were concerned about how the value looked rather than the actual value. This is certainly not a bug. It is how you format the data for display.
    Your solution is the way to do this, either on the Derived Column or Data Conversion Transformation. You got it in the end, the replace versus new, because you cannot change the type of a column. You may convert the value, but the storage type of the column means it will implicitly revert to the base column type when you put it back, albeit with a value that has been rounded.
    Does that explain it?

  • Increase decimal Places in SAP B1

    Dear Experts,
    (Using SAP B1 PL 49)
    I am trying to change the Decimal places in the General Settings->Display (Decimal Places), from 2 to 6 to in all the fields.
    When i try to update it gives me the following error:-
    "Cannot update while another user is connected to the company"
    Any help will be appreciated.
    Regards,
    Feroz

    Dear Asif,
    Thank you for the information.
    I logged all the users out from the SAP server and i stopped the SQL services and then re-started the SQL services again.
    I logged into SAP b1, but was getting the same error message.
    I removed the network cable of the server and I restarted the SAP server and then logged into SAP and tried to change the decimal places, but was still getting the same error message.
    I'm all out of ideas, this has never happened before to me.
    regards,
    Feroz.

  • Formatting decimal places in scatter charts???

    I set up rather simple X-Y chart with numbers that have about 5 significant decimal places. All 5 numbers show up in the X chart axis labels. I can't find any way to tell Numbers to use only two decimal places in the chart labels. Does anyone know how to do this? I tried changed the displayed decimal places in the original cells but it doens't effect the charts.
    TIA

    Thanks Brad for you quick response.
    It kind of worked... I think I might have something else going on. Not sure what though.
    With the changes made in the script you suggested, the X-Axis has changed to two digits but now it displays  " 1.dd "
    Any thoughts where else I might have gone wrong?
    Thanks again
    SJD
    Attachments:
    2013-03-13_151027.JPG ‏12 KB

  • Decimal place problem in smartforms..

    Hi All,
    I my smart forms i am displaying a quantity filed, but itz displaying with 3 decimal places. But i need to hide the decimal places. I try to use formating option &symbol(.N)&  but itz giving error while calling the smart forms.
    Plz help me...
    Regards,
    Pavan.M

    Hi,
    I've yet to find any SAP documentation or training material the recommends using the table's own header as the Smartforms work area.  I have however found it causing unusual problems in the generated function module.
    That said, I've tried reproducing your problem and have not been able to.  You could try defining a work area and seeing if that helps.
    Regards,
    Nick

  • Change the decimal places of a field in screen table control

    HI ,
    I have a MENGE field having data element as , BSTMG (decimals 3 ).
    This field MENGE , I have used in a table control. The value in this field is filled from a custom Z-table where the same data element BSTMG is used. So , for eq.) value in MENGE field is shown as 6.010
    But the requirement is that the value should be displayed as only 2 decemals i.e.)   6.01
    I dont want to change the domain of the field in the Z-table , to 2 decimal places , because the table is used in other developments also , so it will give a dump there which I have to correct in other developments also.
    So , is there any way to change the decimal places of a field in screen table control , without changing the domain , in the table from where the value is fetched... ????
    Edited by: abhijeet_7013 on Feb 14, 2011 3:18 PM

    Hi, create a structure in local program with same field names and change the TYPE with some 2 decimal domain of MENGE. Populate this local stucture and use it in TABLE CONTROL.
    Hope this helps...
    Cheers

  • Decimal places default

    Hi
    Is there any way of setting a default number of decimal places for a new column added on a deski report, so that any new column added on any report will always take this default number of decimal places?
    Thanks

    Louise,
    Within the designer module you can set the default format for any of the objects within the universe.
    In the report that than will be the default format used. If you add a new column to the report the new column gets the same format as the column where you started from. So if you are in a column where the format is 3 decimal places and you insert a new column to the left or right that new column format will also have 3 decimal places.
    Regards,
    Harry

  • Any function module to round of a value to two decimal places?

    Hi gurus,
    Any function module to round of a value to two decimal places?

    Hi,
    you can use FM 'ROUND'.
    Thanks.

  • Limit decimal place

    Hello, I am totally new to Java,
    Basically I am subtracting 2 numbers, (2 floats)
    How do I limit the answer to just 2 decimal places , so the answer is something like 1.45 , .45 and so on ?

    i like this (The Sue will not mind, i guess :))
    *   -description :<p> Sets the number of decimal places to the argument specified
    *     the class is overloaded to return float and double data types. The parameter
    *     named 'places' is the number of decimal places returned by the method.
    *     Note: the parameter int will also work (without amendment) for byte and short.</p>
    *     // <b>EXAMPLE:</b><br>
    *     <code>
    *          double d = 1.250550123456789;
    *          System.out.print( Fraction.digits(d,4) );
    *     // will output the double as : 1.2506
    *          float f = (float)1.2505012;
    *          System.out.print( Fraction.digits(f,3) );
    *     // will output the double as : 1.251
    *     </code>
    *     This has the advantage over other methods in that the data type retains its
    *     integrity as a double or a float data-type, instead of converting it to a String
    *     as in java.text.DecimalFormat and rounding off the additional data.<br>
    *     The class could be also used to avoid the pitfalls of floating point
    *     innacuracies;<br>
    *     // <b>EXAMPLE:</b><br>
    *     <code>
    *         double d1 = 3.0 * 0.1;
    *         System.out.println(d1*10);
    *     // will output : 3.0000000000000004
    *         double d2 = 3.0 * 0.1;
    *         byte b = (byte)14; // works with other data type widths
    *         System.out.println(Fraction.digits(d2*10, b)); // slice off the last digit
    *     // will output : 3.0
    *     </code>
    *  @author Sum-shusSue
    public class Fraction {
       public static double digits(double d, int places) {
          return (long)(d*Math.pow(10,places)+0.5)/Math.pow(10,places);
       public static double digits(double d, long places) {
          return (long)(d*Math.pow(10,places)+0.5)/Math.pow(10,places);
       public static float digits(float d, int places) {
          return (int)(d*Math.pow(10,places)+0.5)/(float)Math.pow(10,places);
       public static float digits(float d, long places) {
          return (int)(d*Math.pow(10,places)+0.5)/(float)Math.pow(10,places);
    }

  • Quantity column display upto 2 decimal places in ALV

    I've created an ALV for dynamic columns. For this i've first created the fieldcatalog and then the internal table.
    The problem that i'm facing in this is that the user wants the quantity column to be displayed upto 2 decimals. For this i tried the following:
    1.)     wa_fldcat-decimals_o = '2'
             wa_fldcat-decimals    = '3'.
             wa_fldcat-datatype     = 'QUAN'.
    with this i tried that let the calculation be to 3 decimal places but on output it should show 2 decimal places.
    But this doesnot gets reflected on ALV. It still shows 3 decimal places.
    eg:  3 decimal places: 16.667 + 16.667 + 66.667 = 100.001
    2.)     wa_fldcat-decimals_o = '2'
             wa_fldcat-decimals    = '2'.
             wa_fldcat-datatype     = 'CURR'.
    I also tried doing the calculation with 2 decimal places with datatype CURR but with this the last digit gets rounded.
    eg:  2 decimal places:  16.67  + 16.67   + 66.67   = 100.01
    Now we are taking total as 100 %. So tha calculative total cannot be more than 100.
    On seeing 100.001 user says show it to me to 2 decimal places  i.e. 100.00
    On seeing 100.01 user says  how can the total be more than 100 & this is .01 more than 100.
    Therefore how can the 1.) option be achieved.
    PLZ HELP!

    Hi,
    Can u check this one
    DATA: gv_packed TYPE p DECIMALS 2.
    CATCH SYSTEM-EXCEPTIONS conversion_errors = 6.
    MOVE char_field TO gv_packed.
    ENDCATCH.
    IF sy-subrc = 6.
    error handling
    ENDIF
    Try to move ur char field to a type p field. If char field is other than numeric then u will get error that can be handled in try...chatch..endtry block.
    data: l_val type p decimals 2.
    parameter my_val type char20.
    try .
    l_val = my_val.
    catch cx_root.
    Do ur error handling here
    endtry.
    you can work with search and concatenate.
    value1 = 3601152
    search value1 for '.' .
    if sy-subrc eq 0.
    concatenate value1(5) '.' value1(2)+5 into text.
    Or value1 = value1 / 100.
    endif.
    Thanks.
    Ashok.

  • How to display 2 decimal places using DecimalFormat?

    Hi, i would like to display an account balance from database using child.getAccountBal(). Before that, i want to use DecimalFormat to display 2 decimal places. I would like to know whether the codes below are correct. Can anybody guide me? Thanks.
    public static double roundTo2DecimalPlaces(double value){
              DecimalFormat df = new DecimalFormat("0.##");
              double d = df.format(value);
              System.out.println(d);
              return value;          
    And inside the jsp page...is that how i call the values?
    Account Balance: <%=roundTo2DecimalPlaces(child.getAccountBal())%>

    DecimalFormat's format method returns a String not a double,
    os you must return a String instead of a double.
    public String roundTo2DecimalPlaces(double value)
         DecimalFormat df = new DecimalFormat("0.00");
         String stringValue = df.format(value);
         return stringValue;
    <%= roundTo2DecimalPlaces(child.getAccountBal()) %>

  • How to get the number of decimal places configured for a site column

    Hi,
    I have a column 'SampleNumCol' of type Number, the number of decimal places to be displayed is configured as 2.
    The column conatins a value, but when retrieved programatically is displayed as 5.00000000  instead of 5.00.
    I am retrieving this column using listitem.Properties[field.InternalName].
    I need to trim the decimals based on  number of decimal places configured for the site column.
    How to get the number of decimal places configured for a site column?
    Thanks in advance,
    dhijit

    Get the field as SPFieldNumber and then check DisplayFormat which returns
    SPNumberFormatTypes
    SPFieldNumber numberField = list.Fields.GetFieldByInternalName("YourNumberFieldName") as SPFieldNumber;
    SPNumberFormatTypes numFormatType = numberField.DisplayFormat;

  • How to get the exact decimal places displayed while exporting to Excel?

    Hi All,
    I have a requirement to display the exact decimal place values in my report. In my pivot table, i duplicated a column named order number and converted to percentage by applying these conditions Show Data As-> Percent Of-> Column. I got a resultant column with one decimal point. As i needed two decimal points i took the xml of the report and changed the minDigits='2' and maxDigits='2' values like this. After that i got the accurate answer. But when i export it as excel sheet it is not showing the % column properly. The values after 0 is not getting displayed. Any solution for this?
    Thanks in Advance
    Thenmozhi

    Hi Thenmozi,
    You can try adding the below statement in the Custom CSS section of the your column properties.
    mso-number-format:"\@"
    Edit your report--> Criteria-->which column you want to display in excel click column properties --> select CCS--> Paste here above code.
    Second way:
    Edit your report --> criteria-->click fx option for your column and apply the below code.
    2. '<span style="display:none">&nbsp</span>' || CAST(your column name AS CHAR)
    Award points it is useful.
    Thank,
    Satya

Maybe you are looking for

  • How can I move mp3 files from trash to iTunes?

    I accidently moved a group of MP3 files (songs) from my iTunes to the trash.  After doing a little research, I saw the suggestion of creating a folder on my desktop and dragging them from the trash to the new desktop folder.  So, I did that, and as f

  • Udisks2: mount only usb flash

    Hello, Arch users! How can I configure udisks2 to permit mounting only usb flash drives and similiar for users in "storage" group, not internal drives? Here are the contents of my /etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-overrid

  • MIRO/ Subsequent Debit problem

    I have the following scenario. A purchase is made for a material for which the taxes include Excise Duties , VAT/CST. Now when we return this item physically , we reverse all taxes , n this is done via sales. But when we make a subsequent credit , th

  • How to add wps network by pin code in airport 6?

    i can do that in airport 5 by choosing base station->add wireless net work. however i can not find it in airport 6. i don't mind apple to simplyfy general operation, but maybe it should provide some methods to advance operations

  • Database 11gR2 on HP-blades: any experiences?

    Hi, we plan to migrate our databases to 11gR2 - and in addition, to migrate our current HP-servers to HP-blades. I'm curious if anybody has already made some experiences with this configuration (advantages and disadvantages). We will install some of