Default rounding when a numeric column is divided.

When I perform an arithmetic division over any numeric column from the subject area, I do not get any fractional value in my BI Answers report. i.e. when a value 50 is divided by 3 I get only 16.00 and not 16.67 even when the column data is rounded to 2 decimal places. But the same works when multiplied with a fractioned number i.e. when 50 is multiplied by 1.33 then I get 66.50 as the result.
Does any kind of default rounding happening with the result when a division is being performed in BI Answers? Is there any ways to overcome this issue? I use OBIEE 10.1.3.4.1
Regards,
Vishnu
Edited by: Vishnu Ramakrishnan on Jun 15, 2012 2:16 AM
Edited by: Vishnu Ramakrishnan on Jun 15, 2012 2:19 AM
Edited by: Vishnu Ramakrishnan on Jun 15, 2012 2:21 AM

INT / INT = INT...that's what you have to bear in mind. 50 / 3 = 16. 50 / 3.0 = 16.67. Just force one as a DOUBLE by adding .0 and bob's your uncle.
C.

Similar Messages

  • Problem with numeric columns when ADF table exported to Excel

    Hi,
    We have a ADF table on a page which can be exported to excel spreadsheet using the <Af:ExportCollectionActionListener>. The adf table is within panel collection.
    There are many numeric columns in this table and there is <af:convertnumber> used on these columns. No other properties are changed on the <af:convertnumber> tag, everything is default. And no formatting is applied on the view object attributes as well. When a user from US is exporting the table to excel everything works well no issues. But a Netherlands or French user exports the excel, the numeric values which have decimal point are shown as left aligned and the whole numbers in the same column are right aligned. As a result when the user is trying to sum the entire column only the right aligned numbers are getting added.
    I am not sure what is the issue here ?
    HAs someone seen this scenario before ?
    Am I missing anything here - any property setting ?
    The numbers are shown like this in the excel exported from table.
    4,077.78
    3,555,34.12
                        1,234
                        19,219
    3,4445,33.22
    Jdev - 11.1.2.3
    Thanks

    Add a decimal to the whole number columns to make all columns left-aligned. Do all left-aligned columns get added?
    4,077.78
    3,555,34.12
    1,234.00
    19,219.00
    3,4445,33.22

  • Default values for files and columns when adding a discoverer porlet

    Hi, i'd like to know how to configure the default value for numbers of columns and files when i add a new discoverer porlet in a portal page.
    The actual default value is 10 files and 6 columns and i always have to increase it to at least 100x100.
    Is there any config file where i can change that?
    I've found a configuration.xml in $ORACLE_HOME/discoverer/config/configuration.xml
    with a section
    <!-- Discoverer Servlet configuration. Defines behaviour of both
    discoverer/plus and discoverer/viewer servlets -->
    but couldnt find a parameter for those items.
    Thanks in advance.
    Daniel Perez

    I think triggers are the best device.
    Scott

  • Having numeric columns formatted based on user location

    How can we get the numeric columns to be formatted in local format. If  the same application is accessed in US we want the numbers to be in 1,222,333.44 format and if the application is accessed from say France then we want the numbers to be shown in - 1 222 333,44 format. How cna we specify this in ADF application/JSF page. I tried adding <af:convertNumber> tag to the outputText in columns, but that is not working.
    This is a problem in our application especially when the users are exporting the table results to excel sheet and they are not able to sum the columns as the numbers is shown in US format by default. Users are manually converting to local format and summing the columns. How can we avoid this ?
    I am using JDev - 11.1.2.3
    Any help would be appreciated.
    Thanks

    Set the format of the default language in the Entity of the Model Project, this will add this format into Model.properties
    Create the same file with different suffix based on the locale and country required for example Model_fr.properties for french and change the Number Format.
    When you change the Locale from default to fr the number format will be changed automatically.

  • How to add a default value in a site column for every item in a document library

    HI
    i created a content type with some site columns ,
    and included in a Document library.
    Process ( content type)
    -ProcessNo
    -ProcessName
    after that i uploaded 100 Documents but not  added value in a site column process name.
    now  how i add a default value in a site column for every document in a document library 
    adil

    HI
    i get below error when i change the script 
    PS C:\scripts> C:\Scripts\updatedefaultvalue.ps1
    Cannot index into a null array.
    At C:\Scripts\updatedefaultvalue.ps1:8 char:7
    + IF($i[ <<<< "Title"] -eq $null)
        + CategoryInfo          : InvalidOperation: (Title:String) [], RuntimeExce
       ption
        + FullyQualifiedErrorId : NullArray
    $web = Get-SPWeb http://tspmcwfe:89/
    $list = $web.Lists["test"]
    $item = $list.Items | Where { $_["Name"] -eq "Emc" }
    foreach($i in $items)
    IF($i["Title"] -eq $null)
             $i["Title"] = "test"
           $i.Update()
    adil
    Why are you piping a where in the items? Do you only want to add the "test" to ones matching
    a name?
    If you have ISE installed on your server I recommend you put your code in there and debug it. 
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • How to assign a default value when there is no prompted value

    Dear all,
    I create a filter and it's value is relate to a prompt.If the prompt is not fill I found that all record is selected.
    How did I assign a default value so that when I didn't fill some value in to the prompt and still can get the result by
    the default value I set?
    Thanks a lot!

    Are you using dates for between or some character column?
    Post your example.
    Instead of between use to is equal prompts, so u will have then 2 fields one for date from a nd one for date to. Everything is the same as I wrote just repeat steps...
    You must put 2 separate fields if you are using date between and you want to have default variable for both.
    Column formula for the first calendar date prompt:
    case when 1=2 then TIMES.TIME_ID else cast ('1.1.1900' as date) end
    and for the second:
    case when 1=2 then TIMES.TIME_ID else cast ('1.1.2900' as date) end
    Now you set up default repository variable for both prompts.
    Presentation variable you put in the set presentation variable on each prompt:
    p_date_from
    p_date_to
    And in Answers filter will be like this:
    *TIMES.TIME_ID between @{p_date_from}{VALUEOF("rv_test_date_to_char")} and @{p_date_to}{VALUEOF("rv_test_date_to_char")}*
    or you can put a different default variables
    *TIMES.TIME_ID between @{p_date_from}{VALUEOF("rv_test_date_to_char_from")} and @{p_date_to}{VALUEOF("rv_test_date_to_char_to")}*
    I posted similar in my blog:
    Date between in filter and title when using presentation variable from calendar dashboard prompt or drop-down list in OBIEE
    http://108obiee.blogspot.com/2009/03/date-between-in-filter-and-title-when.html
    Regards,
    Goran O
    http://108obiee.blogspot.com
    Edited by: Goran O on 2009.04.23 03:37

  • Error giving a default value to a date column in the attribute settings.

    When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
    Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
    How can i fix that?
    Thank u

    The default date format for oracle.sql.DATE which oracle.jbo.domain.Date extends is "YYYY-MM-DD"

  • How to use numeric column in BI Publisher 11g Data Model?

    Hi Gurus
    I was able to create a link(join) in Data model when I used VARCHAR column.
    However if I used numeric column I got an error
    Any ideas?
    Thanks
    Laszlo

    Can you please post the error message?
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Default value of a numeric control

    Hello I want to fix the default value of a numeric control using his node property but I haven't found this attribute. It's possible to fix this value through the node property of a block?
    I've tried to fix it, right-clicking on the control....properties....default value....but when I save the vi's and I reopen the vi's, his value has disappeared and value is set 0.
    Do you know another way to fix this value?
    Thank you in advance
    Larson

    The default value is only relevant when the VI is loaded into memory, not every time you start running it. Your code is probably changing the value to some out-of-limit value (probably 0 if your calculations are incorrect) and it is coerced to the minimum. If you want a value to remain constant, don't change it.
    The answer is simple - DON'T RUN CONTINUOUSLY! If you want something to repeat, use a loop. That way, the value will only need to be read once, when the VI starts running. If this didn't help you, you should post the VI and explain more about your problem.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • Setting default value of document library column using powershell

    Created document library based on template which is using custom content type containing managed metadata based column.
    I can upload documents. Everything looks normal except when I visit Column default value settings page in DL settings, I get error message below
    Application error when access /_layouts/15/ColumnDefaults.aspx, Error=Value does not fall within the expected range.   at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)    
    at Microsoft.Office.Server.WebControls.MetaDataNavTree.TreeViewDataBound(Object sender, EventArgs e)     at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()     at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.OnTreeViewLoad(SPTreeView
    spTreeView)     at Microsoft.Office.Server.WebControls.MetaDataNavTree.PerLocationPageLoad()     at Microsoft.Office.DocumentManagement.Pages.ColumnDefaultsPage.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()
        at System.Web.UI.Page.ProcessRe...  6bf73b9c-e4f3-10ae-0f74-9672cdd9936f
    I tried many things but nothing seems to work. When I create document library using SharePoint OOB template, everything works.
    Any help would be appreciated.
    Thanks.

    I found another way to fix this. Thanks to you pointing me to the file "{List Name}/Forms/client_LocationBasedDefaults.html"
    I found the difference between this file and the one of a list that worked:
    I had "&" in the names of some folders. The recreated subsites from a template that contained such folders in the document library had the problem descriped by the OP. In the recreated client_LocationBasedDefaults.html there were actual '&'
    in the folder names instead of '%26' escape characters. After replacing those characters with their escaped version everything worked as expected again.

  • NaN as default value for LabVIEW numeric control

    TestStand 2010 SP1, LabVIEW 2011 SP1
    This may be a "feature" but I also may be missing something here.
    Reproduce my issue doing this:
    Create a VI with a numeric double.  Set the value to NaN.  Make that the default value.  Connect it to the connector pane.  Try and call it from TestStand.  The prototype will not reload.  Why?  NOTE: it only works for controls and not indicators.
    Not sure if it's related to this because that's in .NET: http://forums.ni.com/t5/Measurement-Studio-for-NET/NaN-as-default-value-for-a-numeric-edit-control/t...
    We have hundreds of VIs with the default set to NaN.  We started seeing this issue when we just upgraded to the latest dev suite.
    Thanks in advance,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

    The prototype reloads fine in TestStand 4.2.1 and LabVIEW 2010, as you probably already knew.
    In TestStand 2010, the problem is that it doesn't reload only when you set to NAN?  Or does it never reload no matter what the numeric value is?
    What is your logic for using NaN values?  Are these values that are not used in tests?  We have a suite of over 50+ tests and I have never used NaN values as inputs.
    Thanks,
    PH

  • Mail reverts to default layout when closing

    Whenever I quit Mail while having one or more minimized messages opened, it reverts to the default layout when I open it again. I don't use the bottom pane for viewing messages, rather I open them by double clicking on messages.
    Any ideas? I tried trashing the prefs, with no result.
    Repro:
    1. Open Mail and make sure messages are not opened in the bottom pane of Mail, but rather by double clicking the respective message (message appears in a new window).
    2. Add one or more columns to you In mailbox, like Flag, Size, Attachments etc.
    3. Double click a Message and minimize it to the dock.
    4. Quit Mail
    5. Start Mail
    results in the default mail layout (Flag column etc. have disappeared).

    bump

  • How to make a select list to return value to numeric column?

    I do have a select list with static values (STATIC:01;0,02;1,03;2,04;3,05;4,06;5,07;6,08;7,09;8,10;9). The problem is that I am returning a value to a numeric column. Therefore I have set 'Post Calculation Computation' as "to_number(:P73_MRGRATING, 9);" however I am getting ORA-01722: invalid number. How, (or when and where) to properly convert a character from a select list representing a numeric value into column of NUMBER data type?
    Thank you for your time.
    DanieD

    Sergio,
    It is because I am not able convert a value in a page item (:P73_ID) to number. On a page before, I have assigned a value to an application item (APPL_ID). On page 73, I want to assign the value in APPL_ID to the page item P73_ID . The value assigned to APP_ID is numeric. On a page 73 I also have a computation in Page processing section. It is an 'After Submit' processing of a static assignment of application item APPL_ID to page item P73_ID. Unfortunately it does not work. (ORA-01722: invalid number). I have tested this also with a 'Post Calculation Computation' on page item P73_ID (to_number(:P73_ID, 9999999999);) and I am still getting ORA... error. Only way I can make it work is to create a page item P73_ID as a text field, then when I run page 73 and enter a value into P73_ID manually - then it works and I can save the values from the form into database...
    The strange thing is that I am using application item APPL_ID on a couple of pages, in where clauses and it always works, even when I am comparing APPL_ID against a numeric value like select * from a_table where some_number = :APPL_ID, this works. But when I would like to create an entry form and assign application item APPL_ID to the page item P73_ID that is referencing a numeric table column – then I am getting ORA-01722…
    Is there any application (sample application) that is doing this and it works so I can check it and learn how to create this process appropriately?
    Thank you for your time.
    DanielD

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • How to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    how to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    Looks like the presentation column got Alias before your BMM changes, so in your case renaming logical column and deleting alias is not good to go.
    Keep Alias

Maybe you are looking for

  • How do I set up e-mail on my iPod?

    I have tried on numerous accounts to set up an e-mail via my iPod. So I went to settings, then mail, contact,etc, then onto add account. I put in the correct details and a new address. before I could exit, it said: This account may not be able to sen

  • Question about "switch" statement

    hi all I am new to Java programming.. I have one problem that is I would like to use switch statement like below in the switch statement can we use only integers ? but i am using string it is not supporting .. for strings like below what I have to do

  • HT5372 i have tried sending message to lock my iPhone but it not working

    i have tried sending message to lock my iPhone but it not working. what should i do to be able to make this work well for me.

  • How to share iMovie

    I made an iMovie that I would like to share but have been stymied as to what to do.  I tried both You Tube and Dropbox, but because it is more than 15 minutes long, ( 18.34minutes), I am unable to do so thru either You Tube/Dropbox.  Editing it to a

  • Image won't open in Elements 10 from "Photo/Edit In" in LR4

    I hope someone can help.  I recently got a new BIG MAC, and have been loading my software. The external editing preference to Elements 10 from Lightroom 4 will open Photoshop Elements, but will not open the image... I've reinstalled elements, reinsta