Filtering based on Fact Columns makes the result different?

Dear All,
I have an analysis report for Publisher, there are several columns, for example,
Col A = ROUND(Col B * Col C / Col D, 0) Whereas Col B, Col C and Col D are integers
Col E = ROUND(Col F * Col C / Col D, 0) Whereas Col F, Col C and Col D are integers
Filter: Col G is not null, Whereas Col G is fact column, Integer
I have the case is that
Col B = 120, Col C = 4, Col D = 14, Col F = 10
If Filter is not applied:
Col A = Round(120 * 4/14, 0) = 34
Col E = Round (120 * 10/14, 0) = 86
When Filter is applied,
Col A = Round (Floor(120  * 4/14), 0) = 34
Col E = Round(Floor(120 * 10/14), 0) = 85
C

If you want to avoid the floor function Use (120*10/14.0)
If all the values in a division are integers, OBIEE uses a Floor function automatically.
SO CAST either the numerator or the denominator to DOUBLE and then run your calculations, the floor function will not be applied.

Similar Messages

  • Insert a Blank Column in the Results Area of a Workbook

    Is it possible to insert a blank column in the results area of a WORKBOOK that does not get affected by free characteristic drill down or refreshing of the corresponding query?  The current workbook looks like follows
    Column A - Characteristic1
    Column B - Characteristic2
    Column C - KeyFigure1
    Column D - KeyFigure2
    Column E - KeyFigure3
    Column F - KeyFigure4
    The requirement is that the user wants to enter some estimates between Column B and Column C and Column D and Column E as follows
    Column A - Characteristic1
    Column B - Characteristic2
    Column C - USER ENTRY
    Column D - KeyFigure1
    Column E - KeyFigure2
    Column F - USER ENTRY
    Column G - KeyFigure3
    Column H - KeyFigure4
    Column I - CALCULATIONS BASED ON USER ENTRY
    First I tried to split the results area and save the workbook.  But when the query is refreshed then the entire results area gets back in one piece.  I succeeded partially by having a key figure with no possible output (i.e., restricting a non-existent value on a characteristic).  Again in here, whatever user inputs will get wiped out with the drill down.  Does any one have any pointers?  Thanks.
    IS

    Hi IS,
    As a nearly workaround I can suppose to do the following.
    Create two identical requests.
    In the first one hide the columns to the right from your intended new user column. In the second one - hide columns to left.
    Knowing the columns number to be shown in each request you can place both request in the same row, but in different columns taking into account that between result areas should be one (or more) additional column.
    Data entered by a user will not be wiped out during query refresh or drilldown. Of course, these user data will not conform drilldown operations. So, it is not 100% solution you want.
    Another possibility, very hard to implement (if feasible at all), is to write VB code that will monitor user action and will keep data entered by a user somewhere in another sheet and restore them in proper cells after user action (drilldown). But I don't think such coding worth it.   
    Best regards,
    Eugene

  • How do I add a column to the Result for BT111S_OPPT

    Hi,
    I have a requirement to include a header level partner in the Results view of BT111S_OPPT.  It is already possible to search by this partner function but the partner column is not available on the view 'BT111S_OPPT/Result'.  My research has pointed me toward using the "ITERATOR" but a related blog was not available and I must admit that I am rather confused as to how to use the "ITERATOR".  I am assuming that I can use it to GET->CURRENT but then I don't know what to do after that.
    Any help is appreciated as we are under time pressure.  Thanks.
    Cheers,
    Paul

    Hi,
    iterators are normally used to convert data in lists which are already evaluated.
    In your case you better add a new column to the result list node and implement the getter with your own
    code. This would look quite similar like (just an example)
    METHOD get_po_number_ship.
      DATA:
            lv_po_number_ship TYPE crmt_po_number_ship,
            lr_current TYPE REF TO if_bol_bo_property_access,
            lr_entity  TYPE REF TO cl_crm_bol_entity.
      IF iterator IS BOUND.
        lr_current = iterator->get_current( ).
      ELSE.
        lr_current = collection_wrapper->get_current( ).
      ENDIF.
      TRY.
          lr_entity ?= lr_current.
          lr_entity ?= lr_entity->get_related_entity( iv_relation_name = 'BTItemSalesSet' ).
          IF lr_entity IS BOUND.
            lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'PO_NUMBER_SHIP'
                                              IMPORTING ev_result    = lv_po_number_ship ).
          ENDIF.
        CATCH cx_sy_ref_is_initial.
          RETURN.
      ENDTRY.
      value = lv_po_number_ship.
    ENDMETHOD.
    Regards,
    Wolfhard

  • Windows Desktop Search 4.0 How do I Format the Date Column in the Results?

    Is there a way to modify the date column in the Results pane of Windows Desktop Search 4.0?
    It's running on a Windows 2003 Enterprise server.
    I have users that need to modify files that arrived today and yesterday after 5:00 PM.  The date column only displays the time on files with today's date.  Is there some registry setting I can tweak to get this column to always show Date and Time?
    Cordially,
    RN

    Hi,
    For the Windows Desktop Search, i think you may ask in:
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowsdesktopsearchhelp
    Regards.
    Vivian Wang

  • Passing a query-limit-value to a Computed-Column on the Results Page

    Hello All,
    Is it possible to use a user-selected variable-limit (filter), and pass it to an IF statement in a Computed-Column in a Results Screen.
    Example:
    I have a Computed Column in a Results screen which uses the following logic:
    if ( Accounting_Period == "2" && Ledger == "ACTUALS" ) {Year_to_Date_Actuals} else (0)
    Instead of [Accounting_Period == "2"], I would like to set Accounting_Period == <variable_query_limit>
    How would one do this?
    Thanks!
    smg

    if not using a dashboard you may want to look at the OnPostProcess event and put script there to collect the selected value of the limit and modify the computed column of the results section.
    strongly recommend you review documentation

  • Radio group in classic report based on another column on the same row.

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    Application Express 4.1.0.00.32
    How can I have a radio group column based on an LOV utilizing another column on the same row of the report?
    For example: what if I had a survey application and depending on the likert scale that was assigned to the question there would be different possible answer choices:
    Question 1 on row 1 of the report: The class instructor was friendly?
    Likert scale choice is Agreement.
    Choices on Radio Group: Strongly Agree, Agree, Undecided, Strongly Disagree
    Question 2 on row 2 of the report: The class offered good materials?
    Likert scale choice is Quality.
    Choices on Radio Group: Excellent, Below Average, Average, Above Average, Excellent
    The radio group can change per row depending on the Likert scale assigned to the question which is assigned to a different column on the row.
    Can LOV utilize the column? :
    SELECT scale_text
    FROM scale_choices
    WHERE scale_category_choice_id = 2 <<= this would be the Likert scale identifier
    ORDER
    BY display_order

    Here is the answer:
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
    p_idx IN NUMBER,
    p_value IN VARCHAR2 DEFAULT NULL,
    p_query IN VARCHAR2,
    p_attributes IN VARCHAR2 DEFAULT NULL,
    p_show_null IN VARCHAR2 DEFAULT 'YES',
    p_null_value IN VARCHAR2 DEFAULT '%NULL%',
    p_null_text IN VARCHAR2 DEFAULT '%',
    p_item_id IN VARCHAR2 DEFAULT NULL,
    p_item_label IN VARCHAR2 DEFAULT NULL,
    p_show_extra IN VARCHAR2 DEFAULT 'YES')
    RETURN VARCHAR2;

  • Hide "Your Reference" column in the results displayed at genericsearch.jsp

    Hi Experts,
    I am new to ISA 5.0 & have a requirement which I need to develop:
    Select u201COrder existing Quotation" on welcome.jsp. Then in the result table shown. I need to hide the column u201CYour Reference.u201D
    My problem is that I am not able to understand how this table is shown & where is the code for displaying the resultdata. On the /appbase/genericsearch.jsp I can not find any html code which is used to display the u201CYour Reference.u201D column & values for each row.
    Please help.

    In ISA, all the strings are externalized. "Your reference" too is externalized and comes from the resource bundle. To know the parameter name, use the URL parameter - translate.show.key.concat=99 to see the key name of the parametrized string of the table header.
    http://<host>:<port>/b2b/init.do?<url-parameter-key=value>&<url-parameter-key=value>
    The language keys are normally located in \WEB-INF\classes folder in language-dependent resource files.

  • How to make the Results row a toggle when the user wants/does not want see

    The user wants to toggle between seeing/not seeing the Results row at the bottom of each row. How to make it like a toggle checkbox/selection on the screen so that the user can decide on seeing/not seeing it in the report. If not possible to do such a thing, then how do I totally prevent it from showing in the report. Version is 3.5 BW.
    Thanks
    Ram

    For each characteristics in the query designer, right-click and go to properties....
    then in the 'Display of Results' section in the 'Suppress Result Rows' option, select: "Always".
    This will suppress the result rows.
    Good luck,
    AT

  • Virtual column in the result set of the query.

    Hi folks,
    I have table , let it be, EMP. It has columns ENAME,EMPNO,JOB etc.,
    My requirement is to add an extra column, not present in the table, having NULL value at the time of diplaying the results of a query. I hope you got it. So a column that does not exists in the table should get displayed in the resultant set when we query the results from that table. so my question is, how to write the SELECT statement using that virtual column.
    I'd thought of using X column in Dummy table but what if I don't have any dummy table in my particular schema.
    Please do revert back with the solution.
    Your effort'll be genuinely appreciated.
    Cheers
    PCZ

    Hi,
    If you just wany display null values you can write query like this :
    SELECT ENAME,EMPNO,JOB , NULL DUMMY_COLUMN FROM emp;
    Regrads
    Avinash

  • How can i make the results of dos command print to text area in a gui????

    I need to get the results from a command line application to print in a text area located in a gui... i have the following code written, which should run the command... if run from a dos window, the command prints the list of what's in a jar file to the screen.... i want that info that is printed to go in a text area which i have named textBox which is global to the program.. i know textBox.appends() is what i should use but how do i retrieve the info from the dos window to put in the appends method?
    The code is below for the method..
    Thanks,
    DH
         /*     Runs the DOS Command for listing a JAR File     */
         public void jarList ( ) // Needs To Be Fixed!!
              listFieldText = listField.getText();
              String command;      
              command = "jar tf " + listFieldText;
              System.out.println(command);
              Runtime rt = Runtime.getRuntime();
              try
                   Process child = rt.exec(command);
                   child.waitFor();
                   System.out.println("Process exit code is: " + child.exitValue());
              catch(IOException e)
                   System.err.println("IOException starting process!");
              catch(InterruptedException e)
                   System.err.println("Interrupted waiting for process!");
    }

    Replace child.waitFor()with:          BufferedReader br=new BufferedReader(new InputStreamReader(child.getInputStream()));
              String s="";
                    while((s=br.readLine())!=null) {
                        textbox.append(s);
                    }Mark

  • How to modify horizontal​.xsl to add few columns in the Result table?

    I would like to add few input parameters from my parameter variables in my report table using horizontal.xsl. It is like add columns to the table. Can someone advise?
    thanks
    rgds,
    toko

    toko,
    maybe you want to take a look here.
    hope this helps,
    Norbert B.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Count Distinct based on another column in the same table

    Hello,
    My question in short: is is it possible to add a new column to a view which holds the DISTINCT COUNTS of values/domains of another column in the same view?
    For example, in the below table the column "Distinct Count of Occurence" shows how many distinct values a person has in the Occurence column. So AAA has 1 and 2 therefore it is 2 distinct values etc.
    My issues is that I can retrieve unique values bu Count (Select Occurence)but I can not add the new column that would add the records to the corresponding Persons in the above table.
    Is there an easy way to achieve this on the DWH level or should it be done with MDX in the cube?
    Thanks

    Hi,
    Below a solution to use the view by adding a column with window functioning, maybe this will help.
    CREATE TABLE #TMP
    PERSON VARCHAR(10),
    OCCURENCE SMALLINT
    --DROP TABLE #TMP
    INSERT INTO #TMP(PERSON,OCCURENCE)
    VALUES
    ('AAA','1'),
    ('AAA','2'),
    ('BBB','1'),
    ('BBB','1'),
    ('BBB','1'),
    ('CCC','1'),
    ('CCC','2'),
    ('CCC','3');
    --TRUNCATE TABLE #TMP
    WITH CTE
    AS
    SELECT PERSON
    ,OCCURENCE
    ,ROW_NUMBER() OVER(PARTITION BY PERSON ORDER BY OCCURENCE) AS RN
    FROM #TMP
    SELECT PERSON, MAX(RN) AS RN
    FROM CTE
    GROUP BY PERSON
    Regards,
    Reshma
    Please Vote as Helpful if an answer is helpful and/or Please mark Proposed as Answer or Mark As Answer when question is answered

  • How to make the results saved by the save button readable?

    The file is created but the results in the file is not readable... how do i solve this??
    I have 10 JTables in the page which i want to save all the stuffs in the JTable to the file selected by the user, the file is created but when the user opens the file, it is not readable.
    I used vector and i added the JTable into the vector and the results have squares and unreadable symbols....and i use file.log....or file.txt or file.doc the results of the file saved are the same....
    How do i solve this??
    Thanks....

    Hi DMMbeginner,
    the time scale is given by "X0" and "Delta_X". You can easily calc your own time scale from these values (x[i]=x0+i*Delta_X)...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to make the result showing one time and make the result to csv file?

    My script having problem of showing out all the AD computer name result  from Active Directory once when running it and storing the result to csv file. I am a newbie in AD and powershell.
    This is the code:
    $strADPathFile = "D:\Powershell for AD\ADPathList.txt"
    $strErrLogFile = "D:\powershell for AD\errorADComputer.log"
    $arrADPath = Get-Content -Path $strADPathFile
    foreach ($strADPath in $arrADPath)
    try
    $objSearch = New-Object DirectoryServices.DirectorySearcher
    $objSearch.Filter = '(objectCategory=computer)'
    $objSearch.SearchRoot = $strADPath
    $objSearch.SearchScope = "Subtree"
    $objSearch.PageSize = 1000
    $objResults = $objSearch.Findall()
    write-host "Retrieving AD computer information in the domain $strDomain"
    write-host "Number of AD Computer Name result: "$objResults.Count
    foreach($objResult in $objResults){
    $objComputer = $objResult.GetDirectoryEntry()
    write-host $objComputer.dNSHostName
    try
    # InsertSQLTable $objComputer
    catch
    write-host $error[0]
    $strError = $objComputer.dNSHostName + " " + $dateNow + $error[0]
    Add-Content $strErrLogFile $strError
    catch
    write-host $error[0]
    Export-Csv D:\PowerShellforAD\test2.csv
    This is the error that I had get is that it will get the result for 2nd time again.
    By the way, what is InputObject about? I had research some of it and still did not quite get it. Can anyone explain? Thanks 

    Hi,
    in the final line you call Export-Csv. which is a great command at exporting information. However, for it to work it needs a path to export to (D:\PowerShellforAD\test2.csv in your case) and Information (InputObject) to export.
    You do not give that command any Information, so it throws an error.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Gather_schema_stats and gather_table_stats, the result different?

    Hi All
    Oracle : 10.2.0.4
    OS : AIX
    Environment : Test but restore from production database
    My scenario has 4 as below and set method_opt = 'FOR ALL COLUMNS SIZE REPEAT' and degree = 2 and I deleted stats before run each step and base on same data and no work on test database.
    1. gather_schema_stats : estimate_percent = 15 and options = 'GATHER AUTO'
    2. gather_schema_stats : estimate_percent = AUTO_SAMPLE_SIZE and options = 'GATHER AUTO'
    3. gather_table_stats : estimate_percent = 15
    4. gather_table_stats : estimate_percent = AUTO_SAMPLE_SIZE
    The result seem like as below on table A
    scenario 1 : num_rows = 181928599 and sample_size = 569047 and gather stats time = 27 minutes
    scenario 2 : num_rows = 185865585 and sample_size = 185865585 and gather stats time = 30 minutes
    scenario 3 : num_rows = 185869720 and sample_size = 27880458 and gather stats time = 13 minutes
    scenario 4 : num_rows = 185839451 and sample_size = 660578 and gather stats time = 17 minutes
    The question is Why sampling size between gather_schema_stats and gather_table_stats on same estimate_percent and data that different? Did Oracle not gather statistics as estimate_percent parameter? and sometime explain plan had been changed. Weekly task is gather_schema_stats with estimate_percent = 15 on production.
    Notes: I tried to search in forum but I cannot found that match as my question.
    Thanks,
    Hiko

    An estimate_percent lower than 100 produces an estimation, nothing more, nothing less. An estimation by definition is not always 100% accurate, it can be more, it can be less than the actual number of rows in the tables.
    It can even varry between two execution of gather stats within the same extimate_percent value:
    15:39:11 SQL> create table mytable as
    16:48:22   2  select rownum rn
    16:48:33   3  from dual
    16:48:35   4  connect by rownum<1000000;
    Table created.
    Elapsed: 00:00:05.09
    16:48:52 SQL> exec dbms_stats.gather_table_stats(user,'MYTABLE',estimate_percent=>1)
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.40
    16:49:24 SQL> select num_rows from user_tables where table_name='MYTABLE';
      NUM_ROWS
       1002000
    Elapsed: 00:00:00.09
    16:49:47 SQL> exec dbms_stats.gather_table_stats(user,'MYTABLE',estimate_percent=>1)
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    16:50:03 SQL> select num_rows from user_tables where table_name='MYTABLE';
      NUM_ROWS
       1014200
    Elapsed: 00:00:00.06
    16:50:09 SQL> exec dbms_stats.gather_table_stats(user,'MYTABLE',estimate_percent=>100)
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.71
    16:51:52 SQL> select num_rows from user_tables where table_name='MYTABLE';
      NUM_ROWS
        999999
    Elapsed: 00:00:00.04
    16:51:55 SQL> exec dbms_stats.gather_table_stats(user,'MYTABLE',estimate_percent=>100)
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.71
    16:52:02 SQL> select num_rows from user_tables where table_name='MYTABLE';
      NUM_ROWS
        999999
    Elapsed: 00:00:00.04
    16:52:04 SQL> select count(*) from mytable;
      COUNT(*)
        999999
    Elapsed: 00:00:00.14
    16:52:18 SQL>Nicolas.

Maybe you are looking for

  • Sound with video transitions.

    Hey, I'm using DVD Studio Pro 3 and I have a video transition for a button between a menu and a track. Now, the video I am using for the transition has sound, however there is not sound in the transition on the dvd. Can you not have sound, or is ther

  • Employee photo size

    Hello, I know how to make the photo of the employees appear, but I want to show a larger version, not by double clicking the normal one. I want it to appear as large as I want by default. Is there any way to do that without changing the sap internal

  • Reduce spacing between top navigation items.

    My top navigation is a bit too wide for most screens.  Is there a way, via CSS, to ever-so-slightly shrink the spacing between top navigation items? Thanks!

  • User Exit C011n

    hello , I have an user exit for production confirmation entry co11n - This exits trigger while saving the production order confirmation entry .. i dont have any problem in triggerring my error as per requirment . but when i try to correct that error

  • TS3899 Intermittent issue with sending emails from a blueyonder.co.uk email address.

    Hi can anyone help?  My iphone 4 has recently developed an intermittent issue sending emails from my 'blueyonder.co.uk email account.  The emails get delivered to my outbox with a message 'cannot send mail, recipient was rejected by the server'  When