OBIEE presentation layer agregate values are not acurate

hi,
i have a simple BMM where for the given fact year wise i want to show summation of values and %.
here is the query generated by the OBIEE
WITH
SAWITH0 AS (select sum(T5779.SLA_NOT_MET) as c1,
sum(T5779.SLA_MET) as c2,
count(T5779.APP_ID) as c3,
T5801.CALENDAR_YEAR as c4,
T5801.TIME_ID as c5
from
SQA_CAS_TIMES T5801,
SQA_CAS_FCT T5779
where ( T5779.TIME_ID = T5801.TIME_ID )
group by T5801.TIME_ID, T5801.CALENDAR_YEAR),
SAWITH1 AS (select distinct SAWITH0.c4 as c1,
SAWITH0.c3 as c2,
SAWITH0.c2 as c3,
SAWITH0.c1 as c4,
SAWITH0.c2 / nullif( SAWITH0.c3, 0) * 100 as c5,
SAWITH0.c1 / nullif( SAWITH0.c3, 0) * 100 as c6,
SAWITH0.c5 as c7
from
SAWITH0)
select SAWITH1.c1 as c1,
SAWITH1.c2 as c2,
SAWITH1.c3 as c3,
SAWITH1.c4 as c4,
SAWITH1.c5 as c5,
SAWITH1.c6 as c6
from
SAWITH1
order by c1
the results are comming wrong when i am doing piviot in presentation layer but this query when i check if i remove the group by time_id then the results are correct
WITH
SAWITH0 AS (select sum(T5779.SLA_NOT_MET) as c1,
sum(T5779.SLA_MET) as c2,
count(T5779.APP_ID) as c3,
T5801.CALENDAR_YEAR as c4
from
SQA_CAS_TIMES T5801,
SQA_CAS_FCT T5779
where ( T5779.TIME_ID = T5801.TIME_ID )
group by T5801.CALENDAR_YEAR),
SAWITH1 AS (select distinct SAWITH0.c4 as c1,
SAWITH0.c3 as c2,
SAWITH0.c2 as c3,
SAWITH0.c1 as c4,
SAWITH0.c2 / nullif( SAWITH0.c3, 0) * 100 as c5,
SAWITH0.c1 / nullif( SAWITH0.c3, 0) * 100 as c6
from
SAWITH0)
select SAWITH1.c1 as c1,
SAWITH1.c2 as c2,
SAWITH1.c3 as c3,
SAWITH1.c4 as c4,
SAWITH1.c5 as c5,
SAWITH1.c6 as c6
from
SAWITH1
order by c1
The above one is without time_id in group by.
can some one suggest as to what is wrong with the pivot for the above query.

why are u bringing TIME_ID column in the first Query... just remove it from the Criteria TAB.

Similar Messages

  • Issue adding a new column to OBIEE presentation layer

    Hi,
    I am pretty new to OBIEE so this may be a silly question. I am facing some problems trying to add a new column from a physical table the OBIEE presentation layer.
    Below are the steps I followed:
    Task: add a product category set to the presentation layer.
    Steps:
    1) First verified that the product category set is being populated in the W_PROD_CAT_DH table in the datawarehouse. this was done by running the following sql
    SELECT W_PROD_CAT_DH.TOP_LVL_PRODCAT_NAME
    FROM W_PROD_CAT_DH, W_INVENTORY_PRODUCT_D
    WHERE W_PROD_CAT_DH.integration_id = W_INVENTORY_PRODUCT_D.INV_PROD_CAT1
    This sql gave the right category value.
    2) created a "Alias" of the table W_PROD_CAT_DH in the OBIEE Admin tool physical layer. (done by right clicking W_PROD_CAT_DH >>New Object>> Alias)
    3) named the Alias of W_PROD_CAT_DH as "Dim_W_INV_MKT_CAT" and created a key of the alias named "integration id" on the column "integration_id"
    4) opened the pre-existing alias of W_INVENTORY_PRODUCT_D the alias was called "Dim_W_INVENTORY_PRODUCT_D" and added a key called "MKT_CAT" on the column "INV_PROD_CAT1" in this alias (Dim_W_INVENTORY_PRODUCT_D of the table W_INVENTORY_PRODUCT_D)
    5) in the alias of the "W_INVENTORY_PRODUCT_D" called "Dim_W_INVENTORY_PRODUCT_D" added a "Foreign Keys" the expression of the key is following: ("Oracle Data Warehouse"."Catalog"."dbo"."Dim_W_INV_MKT_CAT"."INTEGRATION_ID" = "Oracle Data Warehouse"."Catalog"."dbo"."Dim_W_INVENTORY_PRODUCT_D"."INV_PROD_CAT1")
    Logical layer
    6) Opened the existing logical folder called "Dim - Inventory Product" and clicked on "Sources" tab then double clicked the source "Dim_W_INVENTORY_PRODUCT_D" and added a new mapping under "Map to these tables" under "General" tab. The column that was added was the physical alias "Dim_W_INV_MKT_CAT"
    7) added a new column mapping to the same logical table source (Dim_W_Inventory_PRODUCT_D) this new mapping was a column from the alias "Dim_W_INV_MKT_CAT" (column name "TOP_LVL_PRODCAT_NAME")
    Presentation Layer
    8) dragged the newly added column (TOP_LVL_PRODCAT_NAME) from the logical layer "Dim - Inventory Product" to the presentation layer "Product" folder.
    ISSUE
    after adding everything and checking global consistency and save and checking-in my work when i login from the front end presentation services. I see the newly added column is showing under the "Product" folder. on dragging the column by itself to the Ad-Hoc analysis I can see the different values of the category. On adding a second column from the same logical folder (Dim - Inventory Product in logical layer) i still see the right product name and corresponding category. BUT when I drag any other column from any other folder (such as "Day" from "Time" or any fact values) the result does not fetch any data (message: The specified criteria didn't result in any data.)
    I am not sure if I am missing any step but I know I am mapping the new table alias to the inventory_product_d since i see right results on creating analysis of columns in those two folders. but no other folders give me any data.
    I also know that the logical folder "Dim - Inventory Product" is joined with other tables as I can see results when i do not add the newly added catagory column but other folder and other columns of "Dim - Inventory Product"
    I would really appreciate any insight to this very much. we are using OBIEE 11.1.1.6 with the Oracle 11.5.10 Adaptor (SDE_ORA11510_Adopter)
    I will try to upload some screenshots if needed but presently not sure if its something really simple.

    Hi Prassu,
    thanks for the responce. and Apologies for the delay in getting back to you.
    1) 1.First of all set the logging level to 3 in the admin tool save it.
    You can get the SQL query from here
    settings(Answers right top)-->Administration-->manage sessions-->view log
    When I try to do this I get the following message. and no log files.
    Error
         Log Could Not Be Retrieved
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <3790667783>: Syntax error [nQSError: 26012] . (HY000)

  • Grand total values are not matching with Detail report

    Report has grand totals and when I drill to the detail report, grand total values are NOT matching with parent report totals, I did some analysis but I'm clueless on this issue.
    Please provide your thoughts and insight on this issue..
    Thanks

    is your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
    if then,
    From Front-end:
    Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
    From Database side:
    1. check first aggregate table has proper aggregate data of it's detail..
    2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
    Is that BI-Apps project?
    btw, whtz ur name?

  • Stcok type H values are not added into report

    Hello all,
    I am facing problem with inventory management.
    Here we have nearly 15 plants.  10 are already there and 5 are newly added in the last month.
    For the previous 10 plants we are getting the valuated stock perfectly, but i am checking for the remaining 5 new plants data is mismatching.
    while comparing the values from R/3 (MB5B) to the BW query values are different.  So i have checked the contents of Cube.
    There i found a pecular thing that some records having Movement type 641 and Stock Type H. These values are not getting cumulated in the report.  Only these values are coming for the new 5 plants.
    I have already checked the Snotes 589024, 417703.
    Please suggest me how to overcome from this issue.
    Regards
    Sankar

    Hi,
    Thanks for your reply.
    As I already said Stock type is defined as same as the previous plants.  But still we are not able to get the data in the query.
    In the cube level I am able to see the data, but when we are going for the report then we are not getting the values which are present in the cube where Stock Type is H.
    Please suggest on ths.
    Regards
    Sankar

  • GR/IR A/c Amount and Amount in local Curreny values are not matching

    Hello Gurus
    When we are doing MIGO for some Scheduling Agreement PO's the Amount and Amount in local currency columns are mismatching with  paise (+/-), eventhough PO belongs to Local Currency (INR). Because of this GR/IR account is not cleared after MIRO through F.13. Both MIGO and MIRO amount are showing as Open items.
    Why it is happening and what is the way to clear GR/IR A/C. (F.13 with Tolerance limit is also not workout).
    Thanks & Regards
    Venkat.P

    Hi sridhar
    Thanks for reply
    Through MR11 also these values are not cleared.
    Regards
    Venkat.P

  • While Creation Of SaleOrder Char Values are not getting saved.(V C)

    Hi SAP gurus,
    One of my client can able to create a saleorder but when we go and see in VA03 Display mode,we found Charactrestic values getting miised out.What could be the probale reasons.
    Note: I Have stimulate the required combination as per my client requirement in CU50,here i can able to indentify the Green Sign,but While Creation Of SaleOrder Char Values are not getting saved.
    Awaiting for your valuable reply.
    Cheers,
    Kumar.S

    Kumar ,
    If you assign values in classification view or configuration profile  they will become default for the product, and it willnot be changed in sales order.
    another thing if the item category is incorrect you will not get the configuration pop up at all .
    problem what i understand from your thred is at the time of sales ordeer creation there is some inconsistances in the configuration , may be some condition is not fullfilling.
    If in CU50 the result shown are error free, same configuration should owrk properly in sales configuration process, please again try to create it in sales order with same value assignment also check all the messages.
    see the result of configuration before saving the sales order , i hoep it will work for you.
    I am assuming all the things from SD are properly configured ie item catageory, varient pricing etc.
    Check and revert back.
    Regards
    Ritesh

  • Values are not getting updated in sales report

    I have configured sales information system, and i have been trying to run sales report but values are not getting updated in sales report, System will through message that no data exists.
    regards,
    thooyavan

    Hi,
    Please check with the Customer and Material Statistics group in the Customer and material master respectively.
    Further check with the LIS settings (Sales Area combination with the Update group).
    Reward points if this helps you.
    Regards,
    Harsh

  • Values are not getting updated in 'stocks App' in my i4 phone.  What is the solution?

    values are not getting updated in 'stocks App' in my i4 phone.  What is the solution?

    you have encountered activation lock.  Read iCloud: Activation Lock

  • Excise values are not flowing  in MIGO

    Dear All,
    I am facing a problem during MIGO.
    THERE IS STOCK TRANSFER BETWEEN 2 PLANTS AND 2 PLANTS ARE UNDER DIFFERENT COMPANY CODES.
    1 I have created a PO.
    2.Delivery through VL10D
    3.Picking-vl02n
    4.Created Bill-VF01
    5.Created Invoice and saved it
    When I am doing MIGO the excise values are not following.in migo SCREEN.I I want to know do i need to post EXCISE INVOICE and how to do the same.
    Pl let me know anything is missed out so that excise invoice is not flowing in MIGO screen.
    Regards
    Manash

    Hi,
    Have you miantained Tax code in STO ? if yes, then have you mainatained Settoff as 100% for that Tax Code in FV11 for which combination you are using
    SETOFF Must Be Maintained:-
    JMX1 --     IN: A/P BED setoff
    JEX1 ---      Ecess Setoff Sta
    HX1     IN: A/P SECess SOTot       
    If it is there please follow the Following steps for STO
    1.     Create Purchase Order(STO)  using ME21N
    2.     Create Outbound Delivery using VL10B
    3.     Create Billing Document using VF01
    4.     Create Excise Invoice using J1IIN
    5.                   GR with respect to Inbound delivery and in Excise Invoice give number of VF01.
    Hope Help U !
    Regards,
    Pardeep Malik

  • Screen values are not retained in Tcode BP, onclick of SAVE button

    Hi,
    In Tcode BP, I am selecting a Role with the Business Partner number. COMPANY CODE Push button on the Top is Enabled and Click on that.
    Enter the Company Code and provide the Account management tab by providing Reconciliation Acct 120113, Sort key as 035, Planning Group as E1. Go to Payment Transaction Tab, Enter the Payment terms as Z003, check Record payment history. Now, Click on SAVE Button on the TOP.
    The issue is that, The screen values are not retained in the Payment terms tab and Customer is not Created after saving of a BP Number which is related to a Customer.
    Regards,
    Deepthi.

    OSS Note 1254214 is applied and it is solved.

  • CRM 7.0 WEB IC - context node values are not seen in webIC

    Hi
    can anyone help me in resolving my problem in CRM WEB IC.
    Actually i have added a new context node Using wizard , by right clicking the context nodes. i have four custom fields in that node, these i have to show on the View Account overview and the context node for this is Account where i have to fetch data based on the BP_number i have in Account, i have to  display custom fields from the context node BALANce which i have created .
    I gave all my coding in do_prepare_output method. But the values are not passing to my custom fields as a result the view in WEB IC dissappears saying
    &NBSP;
    Cannot display view IUICOVW/AccInfo of UI Component IUICOVW
    An exception has occurred Exception Class  CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference 
    Method:  ZL_IUICOVW_ACCINFO_IMPL=>DO_PREPARE_OUTPUT 
    Source Text Row:  82
    Edited by: nelachinni on Dec 16, 2010 10:04 PM

    Hi,
    Could you please share what are you trying to access at line 82 in do_prepare_output ? sharing code snippet might help in understanding the issue.
    Cheers,
    Sumit Mittal

  • Forms values are not displayed correctly

    This is happening on the client view. I have a custom form and after some Windows updates on user's laptop, the text field values started stopping to display in the form. If I click on View mode then the text values shown and change back to Edit the form
    now text values show up in the text field.
    Another thing is when trying to print the view out, text values are not shown up at all. I tried to upgrade user to IE11 and same issue. Using Firefox then text values are shown in print preview but not in Editing. I don't want users to use different browser
    rather than IE.
    Any thoughts on this would be much appreciated.

    Hi,
    Since the issue happens after some Windows Updates, I would suggest the user log on another machine and see if the issue persists. If the issue only happens on this laptop, you can manually uninstall the update patch you doubt to test
    the issue. Go to Control Panel->Programs and Features->View installed Updates->”right click” and “uninstall”.
    Meanwhile, add the SharePoint sites to a trusted zone in IE settings.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Updated (VORowImpl ) values are not reflected in inline POPUP table

    Hi Expert,
    Currently i am getting exception when i try to update my iterator binding,
    Here is my use case,
    I have view object displayed inside the inline popup as a table. When i modify one of the cell i am firing the value change listener and it is called the ViewObjectRowImpl class method. Inside the method i do some computation (i am executing some DB query to get back some value). After the query execution i am updating the other columns data based on the changes.
    First i have PPR the table and check out the update values. Unfortunately the change values are not reflected.
    Then i used the following code
    DCIteratorBinding itrBinding = findIteratorBinding("EmployeeVO1Iterator");
    if (itrBinding != null) {
    itrBinding.executeQuery();
    itrBinding.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
    Now i am getting the " JBO-25003: Object EmployeeMgmtAM of type ApplicationModule is not found."
    May i know what went wrong? Am i missing anything. May i know how can i refresh the UI table based on the updated VORowImpl. Looking forward hints.
    Thanks

    Thanks Frank, Actually i am accessing the client method as follows,
    DCIteratorBinding itrBinding = findIteratorBinding("EmployeeVO1Iterator");
    if (itrBinding != null) {
    EmployeeVORowImpl employeeVO = (EmployeeVORowImpl)itrBinding.getCurrentRow();
    empoyeeVO.methodName();
    May i know what is the different between accessing the method as shown above and access via the MethodBinding?
    How about access the attribute of the View object using the above approach? i.e empoyeeVO.getName() like ....
    Also i have configure the ADF looger to finest level and found the primary reason to "Applicaiton module not found" was some entity validation. But this not always happened. Same test case works fine and fails sometimes. I am clueless. Could you please throw some light.
    Thanks
    Edited by: user1022639 on Feb 7, 2012 5:24 PM

  • AET Generated field values are not saved.

    Hi Gurus,
    I have created two AET fields on the screen (marked below) and that should store values in table CRMD_CUSTOMER_H. When I create a new service request and enter the values and save, AET field values are not saved. Again, when I edit the same service request and enter the values and save , AET field values are saved on the database.
    While  debugging  I found that, relationship BTHeaderCustExt does not exist for the first time and second time onward its appearing. Due to this, data is not being saved at first time (Line no 27 : current is empty).
    When tried to create realtionship using create_related_entity , it throwing exception cx_crm_genil_model_error.
    Please advice me the soution for the same.
    Regards,
    Anand

    there should be a context node at your view level. Please check ON NEW FOCUS method is implemented or not.
    If not, you can implement that method with below code.
        DATA: lv_collection TYPE REF TO if_bol_bo_col,
              entity        TYPE REF TO cl_crm_bol_entity.
    *   get collection of dependent nodes
        entity ?= focus_bo.
        TRY.
            lv_collection = entity->get_related_entities(
                   iv_relation_name = 'BTHeaderCustExt' ).
            IF lv_collection IS NOT BOUND or lv_collection->size( ) = 0.
              IF entity->is_changeable( ) = ABAP_TRUE.
                TRY.
                    entity = entity->create_related_entity(
                     iv_relation_name = 'BTHeaderCustExt' ).
                  CATCH cx_crm_genil_model_error cx_crm_genil_duplicate_rel.
    *               should never happen
                ENDTRY.
                IF entity IS BOUND.
                  CREATE OBJECT lv_collection TYPE cl_crm_bol_bo_col.
                  lv_collection->add( entity ).
                ENDIF.
              ENDIF.
            ENDIF.
          CATCH cx_crm_genil_model_error.
    *       should never happen
            EXIT.
          CATCH cx_sy_ref_is_initial.
        ENDTRY.
        me->set_collection( lv_collection ).

  • Parameter values are not showing in in the Organization Parameter form

    We have done a setup for an Inventory Organization.
    Everything was working fine.
    Values were showing everywhere.
    We have lot of transactions done in the org also.
    But suddenly yesterday when I was trying to open the Organization Parameter form for that specific organization, the form came up as blank and in the bottom the error is Query caused no records.
    I have checked data is there in the base table mtl_parameters.
    Value is coming for other organizations. Only one specific organization is having this issue.
    Even in Examine, I have taken the last query run on that form and ran the same in back end database, I can see all values are there in the database.
    But in frontend screen the values are not showing. even organization code also not showing.
    Navigation is: Inv Super user --> Setup --> Organization --> Parameter

    Have you checked Organization Access to ensure that no one restricted that org?
    Or shipping grants and roles?
    I think there are quite a few places that you can restrict access.

Maybe you are looking for