Incorrect Result Rows

Hi All,
For a calculated key figure, when we drill down completely, we get correct result rows. But when we remove any characteristic, the result rows give incorrect values.
One option was to change to calculate before aggregation, but my key figure is calculated by using 2 other calculated key figure & hence it gives me an error if i try to change it to before aggregation.
Issue is :
           A   B  C
X   Y   10   4  40
X   Z     4   5  20
Result    60
     A   B   C
X   14  9    14* 9 = 126
Please help!
Thanks,
Agrima

Hi Agrima,
            Check here.....
http://help.sap.com/saphelp_nw04/helpdata/en/6f/56853c08c7aa11e10000000a11405a/content.htm
Thanks,
Vijay.

Similar Messages

  • Decimal places on the result row is incorrect

    Dear Expert,
    I met a problem that decimal places on the result row is incorrect.Anyone can help me?
    On key figure balance,we do the currencies translation,also we set the key figure should have two decimal places.
    We set a fomular to calculate the total result of Account A,B,C.
    (Total result = account Aaccount Baccount C).
    If we manually sum up the balance of account A,B,C displayed on analyzer,which are rounded to 2 decimal places,the result should be 601.25(100.61200.38300.26),but the actual total result executed by query is 601.24.
    In fact we need the result 601.25 instead of 201.24.
    I take the example as following:
    Account      Balance
    Account A  100.61
    Account B  200.38
    Account C  300.26
    Total result 601.24
    Thank you in advance.
    Best Regards,
    Maggie
    Edited by: Maggie Ma on Sep 25, 2008 9:17 AM

    your "problem" is, that BEx is not totalling the "displayed" values but the real values
    try a summation on the following in Excel:
    100,605
    200,375
    300,26
    then format the cells to show 2 decimal places only
    do you see the result changing?

  • Qery result row incorrect

    Hi guys,
    I have developed a report in 3.5 in which when I carry out drill down using free characteristics, incorrect values is dispalyed in the result row.

    Hi,
    what do you mean by "incorrect values are displayed in the result row"?
    Check the "calculate result as" property of your key fig. Check if you have a condition defined in your report....
    hope this helps...
    Olivier.

  • Query with a condition - Overall results row displays incorrect value

    Hi All,
    I have a bw query with top 40 conditions. However, The Overall Result Row Figures Do Not Equal The Sum of the Column Rows.
    Although the top condition is activated, the overall result still displays the overall result of the whole report.
    I have 3 columns in the report
    Selected Period
    Prior Period and
    Variance
    The formula for variance is (Selected Period/Prior Period)-1.
    Does anyone have an idea to fix this?
    Thank you so much in advance.
    Have a great day!

    Hi Gaurav,
    Thank you so much for your reply, however this does not solve fully the issue.
    Changing the properties to "Summation" will indeed provide me with the correct sum for the "selected period" and "Prior Period." However what I need in the Overall Result Row for the "Variance" column is not the total but instead the value when the total of Selected Period is divided by Prior Period then minus 1.
    Overall Variance = (Overall Selected Period/Overall Prior Period)-1
    Do you know a way to make this possible.
    Thank you so much.

  • Calculated key-figures are wrong in result rows

    Hi,
    I developed a BEx query which shows profi-centers and materials in the rows, and the price, the amount and the amount-value in the columns.
    Price and amount are basic key-figures on the cube, the value is calculated via a calculated key-figure in the query (price*amount).
    Now I have added result rows an profit-center level in the workbook. Everything works fine, BUT when I hide the materials, the result-row on profit-center level is calculated wrong.
    Is there any possibility to hide the material-lines without having the resul-rowts calculated wrong? Is there any feature like "caculate material in background but hide in the workbook"?
    I don´t like to create other basic key-figures on cube level, as this is only an example for lots of calculated key-figures which I use.
    Thanks for your help,
    Patrick

    Hi Patrick,
    Since the prices and amounts are on the material level, therefore the calculation for amount value will be correctly done only when you have materials in the rows.
    Now when you hide the materials, then the system would not know on what basis to do the calculation: I'll explain with an example.
    Let's take four materials which have the same profit center assignment. But the prices for each of them are different and so are the amounts. Now if you remove the materials from the rows, then say the system calculates amount-value by taking the average price and multiply that with the total amount of the four materials. That would also give an incorrect result - isn't it?
    So there is no way to define what the system should do when material is removed from the rows.
    So material would be the minimum required granularity for such a report to show correct results.
    Regards,
    Shweta

  • Incorrect result set with using isnull() function  in IQ 16

    Hi team,
    We have IQ 16 on HP UX.
    When we use isnull() function in where clause we get incorrect result set if we do not use column name in the result set.
    In first select we get result with one row but in second one we get an empty result set.
    select ID, dat_start, dat_end, dat_stop
    from table_test
    where ID=1105935925
    and isnull(dat_stop,dat_start) <> dat_end
    select ID
    from table_test
    where ID=1105935925
    and isnull(dat_stop,dat_start) <> dat_end
    It depends on number of row or volume of data in table, It is possible to use option Revert_To_V15_Optimizer to get the correct result.
    Do you have any different idea how to solve it?
    Thanks Milos.

    We have tested two versions:
    Sybase IQ/16.0.0.653/131122/P/sp03/ITANIUM/HP-UXi 11.31/64bit/2013-11-22 01:49:18
    SAP IQ/16.0.0.807/140507/P/sp08/ITANIUM/HP-UXi 11.31/64bit/2014-05-07 21:11:45
    Both versions have given same mistake.
    We have not opened any support case for this issue because it is data depended issue. It is not easy to simulate it as an example.
    Do you think we should open a support case for it?
    Miloš

  • Hide Result row when SUMCT is used

    I am using SUMCT function in one of the formula that is used in the query. I am getting the correct value for my reeport when the result row is displayed.
    Now I want to suppress the result row. If I set the result row to be suppressed, the formula gives me incorrect value.
    Is there a way to continue using the SUMCT function and also suppressing the result row?
    Are there any workaround to achieve this functionality?
    Any help will be appretiated.

    Hello All,
    I was able to workaround the problem by using "Constant Selection" instead of the SUNCT function.
    I am now able to get the correct data when even I suppress the result rows.
    Regards

  • Incorrect results for calculation based on diff dimensions - 11.1.1.5

    Hello All,
    OBIEE gives incorrect results when i try to perform a calculation (for eg: addition) based on 2 measures. For eg:
    (Note: "->" signifies 1:M)
    Rpd (Physical model & BMM): dim_fe -> dim_gl-> Fact_Legder <- Dim_param
    Fact_Ledger (agg measures) -> YTD_01, YTD_02...... YTD_12 ( here 01,02...12 represent month i.e. if "Feb" selected in prompt then we need to use YTD_02 and so on for other months)
    Answers: Created a report with following columns
    Column Name : Formula
    =================
    Line Item : 'Net Profit'
    Prev Yr Act: (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013}-1 and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=100)/1000) /
    (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013}-1 and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=100)/1000)
    Curr Yr Act: (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=100)/1000) /
    (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=100)/1000)
    Curr Yr Plan: case when '@{pmonth}{Jan}='Jan' then
    (filter("Fact Ledger"."YTD_01" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=200)/1000)/
    (filter("Fact Ledger"."YTD_01" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=200)/1000)
    when '@{pmonth}{Jan}='Feb' then
    (filter("Fact Ledger"."YTD_02" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=200)/1000)/
    (filter("Fact Ledger"."YTD_02" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=200)/1000)
    when '@{pmonth}{Jan}='Dec' then
    (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=200)/1000)/
    (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=200)/1000)
    endthe results are incorrect. Any help appreciated.
    Qry generated is like
    (select...
    case when year=.. and pl_lin=... and code=100 then ytd_01,
    case when year=.. and pl_lin=... and code=100 then ytd_03,
    case when year=.. and pl_lin=... and code=100 then ytd_04,....,
    case when year=.. and pl_lin=... and code=200 then ytd_01,
    case when year=.. and pl_lin=... and code=200 then ytd_03,
    case when year=.. and pl_lin=... and code=200 then ytd_04,....,
    from...
    where ... year in (2013-1,2013) and pl_line('Item1,'Item2','Item3') or fe.item('l1','l2','l3') and code in (100,200)... ) D1
    (select
    case when 'Apr'='Jan' thne d1.c1 when 'Apr'='Feb' then d1.c2......
    from D1
    Regards..
    Shruti

    See if this explains it better for my crosstab with page items of Vendor Number 1234.
    Vendor 1234
    Dc Nbr 1 2 4 AAAA
    Sum Invoice Amt 1387.04 300.82 327.29 2015.15
    Sum Cost 44.86 57.43 25.54 127.83
    Sum Advanced Cost 102.44 0 0 102.44
    Sum Consolidation Cost 30.37 0 0 30.37
    Sum Allowance Amt 27.74 6.02 6.54 40.30
    Net Freight Cost 149.93 51.41 19 220.34
    Freight Percent 10.81 17.09 5.81 ****
    As stated before, Frieght Percent is a calculation I created in Discoverer that looks like this :
    ( NVL(Sum Cost,0)+NVL(Sum Advanced Cost,0)+NVL(Sum Consolidation Cost,0)-NVL(Sum Allowance Amt,0) )/NVL(Sum Invoice Amt,0)*100
    Column AAAA was created in Discoverer using Sum of field and show to the right.
    What I need is for the **** to be the correct calculation for the totals in column AAAA. If I use do a total for Freight Percent using the Cell Sum I get 33.70., what I want is it to be 10.93, which is (127.83 + 102.44 + 30.37 - 40.30)/2015.15*100.
    If I use an Average Total row for Freight Percent, I get 11.24 which is 33.70 / 3 (the 3 would be the # of dc nbr's)
    I did start with using the detail level data to create this crosstab. Then I made a new version and used the SUM data. I seem to get the same results but am still having issues with the one **** value.
    Hopefully this explains it better.
    Thanks for the ideas so far.

  • Caculate the percentages  row wise in Result Row

    Hello Friends, I have this issue with the sales report , Where the we caculate the percentages of No of Automotive sold / No of Automotive Manufactured
    Now we saw that result row for a fiscal yr period calculate the percentages coloumn wise which is incorrect we want to calculate the percentages in the Result Row Header as row wise.
    For Example
    FISCAL PER/YEAR       No of Auto         No of Auto Manuf     % percent sold
                                        sold
    006.2007                        10                      10                             100
    007.2007                         20                      20                              100
    008.2007                         10                      20                               50%
    009.2007                           --                        --                               ---
    Result Row ===             40                        50                             cal on column
    Correct result should be 40/50 = Total No Of Auto SOLD/ Total No OF Auto Manuf
    Thanks
    Soniya

    Hi Soniya,
    You result does not give you correct percentage as the Bex can't. You can do this by adding key figure in data target and write a routine for this key figure to calculate percentage based on the previous two key figures. Now use this newly created key figure in your query designer instead of formula. Then u will get correct one.
    Thanks
    Kiran

  • Rownum giving Incorrect  Result in 11gR2 but working ok in 10gR2

    Hi All,
    We have following query which is working fine in 10g but in 11g it is showing incorrect result.
    select x.*,rownum from (select rat.rating_agency_id from bus_ca_cpty_rating rat,MST_CP_RATING mst
    where rat.org_id=618
    and
    rat.rating_agency_id=mst.rating_agency_id
    and
    rat.rating_value=mst.rating_value
    and
    rat.heritage_system=mst.heritage_system
    order by rat.rating_date,rat.rating_time)x
    where rownum=1;
    Result Without last Check <where rownum=1> in the query (in both 10g and 11g)
    RATING_AGENCY_ID     ROWNUM
    3     1
    1     2
    Result of the query in 11gR2 (11.2.0.3)
    RATING_AGENCY_ID     ROWNUM
    1     1
    Result of the query in 10gR2 (10.2.0.3)
    RATING_AGENCY_ID     ROWNUM
    3     1
    Request your help to resolve the issue(please tell me the bug name if it is a bug) and please let me know how it is processing the query in 11g.
    Edited by: 906061 on Jun 19, 2012 2:22 AM

    T.PD wrote:
    906061 wrote:
    Result Without last Check <where rownum=1> in the query (in both 10g and 11g)
    RATING_AGENCY_ID     ROWNUM
    3     1
    1     2
    Result of the query in 11gR2 (11.2.0.3)
    RATING_AGENCY_ID     ROWNUM
    1     1
    Result of the query in 10gR2 (10.2.0.3)
    RATING_AGENCY_ID     ROWNUM
    3     1Your desired result depends on the wrong idea if implicid ordering of the results. there is no such!
    Database does not sort returned rows any how (unless you use order by in your query). The order of returned rows may be consistent over a long period but if the table contents is reorganized or (as I assume) you import data to anotehr database the order may change.
    To make the long storry short: you need another filter condition than <tt>rownum = 1</tt>.
    bye
    TPDLook closely: it looks like a standard top-n query with the order by in the sub-query.

  • Key Figure Summation in Result Row with Cumulation Ticked

    Hi,
    I have a Bex question regarding the summation rows. 
    I need a Year To Date amount and a Period To Date amount in the report.  However, there is no Year To Date key figure available in the cube.  So in order to calculate YTD, I'm using the PTD key figure and have Cumulated box ticked mark in Bex. 
    All looks fine across columns per Vendor.  But the results row for the Cumulative Balance is always equal to the results row for Period Balances.  I believe this is because the same key figure is used, and it is only reading the amounts in the cube - not the ones calculated on the fly. 
    Does anyone know how to correct the results row for a cumulated key figure? 
    Regards,
    Rhonnie

    You have to create two restricted KF; one is PTD restricted to period; the second is PTD restricted in a period range from 01.yyyy to current period.
    Hope it helps.
    Regards

  • How to display Average, not Sum, in the "Overall Result" row of a report?

    Every report I look at or execute that has an Overall Result row always shows a total(sum) of all the cells in the column.  I recently came across one that shows the average of all the cells in the column and after looking at the query in BEx Query Designer 7.0 and BEx Analyzer 7.0 I cannot seem to find out where to set this.  All of the Key Figures are listed as "Nothing Defined" in the Calculations tab which is exactly what they should be, but where can I set that yellow-highlighted Overall Result row to calculate an average, not a sum?
    Example can be found in this picture:
    http://img87.imageshack.us/img87/6757/pic1yp.jpg
    Thanks for the help!

    My issue was that I was setting my KF's to 'Calculate Result As: Average' within the Query View that I was editing but the change was not showing on my screen when I have that View opened within the Analyzer.  Infact, it still is showing totals.  But when I execute my Web Template that references this Query View, the graph does display the result row using Averages.  Seems to just be a visibility bug, but it is now working.
    Thanks for the reminder about that property KP,
    Scott

  • Oracle Discoverer report pulls incorrect result when scheduled.

    Recently the database was migrated to 10.1.2 RAC from 9.2.0.6, so the discoverer EUL is now resides on new database.
    after migration the report which pulls correct results when run interactively is pulling incorrect result when scheduled in Discoverer.
    This report used sysdate and aggregate functions, i had ran the same report simultaneously( Directly in Discoverer Desktop/Plus and scheduled in discoverer), but the data retrieved in both case is not matching.
    here is the query. any help is appreciated.
    SELECT /*+ FIRST_ROWS */ A.SITE_ID as E175108,B."SYSTEM DESCRIPTION" as System_Prefix,
    B."SYSTEM PREFIX" as System_Description,
    COUNT(CASE WHEN ( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ) < 0 THEN 1 ELSE TO_NUMBER(NULL) END) as Less_than_0_Days,
    COUNT(CASE WHEN ( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ) > 121 THEN 1 ELSE TO_NUMBER(NULL) END) as 0_to_14 Days,
    COUNT(DECODE(TRUNC(( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) )/31),3,( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ),to_number(NULL))) as 14_to_30_Days,
    COUNT(DECODE(TRUNC(( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) )/31),2,( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ),to_number(NULL))) as 31_to_60_Days,
    COUNT(DECODE(TRUNC(( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) )/31),1,( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ),to_number(NULL))) as 61_to_90_Days,
    COUNT(CASE WHEN ( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ) BETWEEN 15 AND 30 THEN 1 ELSE TO_NUMBER(NULL) END) as 91_to_120_Days,
    COUNT(CASE WHEN ( TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE) ) BETWEEN 0 AND 14 THEN 1 ELSE TO_NUMBER(NULL) END) as 120_Days_Plus,
    COUNT(TRUNC(SYSDATE)-DISCO10G.DATE_FORMAT_TEST(A.STATUS_DATE)) as Total
    FROM PSTAGE.ALL_EQUIPMENT A,
    ( SELECT A.SITE "SYSTEM PREFIX", A.DESCRIPTION "SYSTEM DESCRIPTION", A.SITE_ID, B.SITE_DESCRIPTION, A.G2B_ID
    FROM SITE_LIST A, ALL_CF_SITE_CONTROL B
    WHERE A.SITE_ID = B.SITE_ID
    ORDER BY 1, 3
    ) B
    WHERE ( (B.SITE_ID = A.SITE_ID))
    AND (A.EQUIPMENT_STATUS_CODE IN ('T','7'))
    GROUP BY A.SITE_ID,B."SYSTEM DESCRIPTION",B."SYSTEM PREFIX"
    ORDER BY B."SYSTEM DESCRIPTION" ASC ;
    Thanks!

    Hi sunil,
    Rod is referencing the NLS parameters i.e.
    Can you please let me know which NLS parameters you are referring toNLS parameters in this scenerio may be the date and language for that session.Do check out
    SELECT * from NLS_SESSION_PARAMETERS
    how i can check if there any differences in the NLS parameters when report is scheduled or run interactivelyI think you should run the trace file.Iam not sure about it.
    It would be system_context.
    Hope it helps you.
    Kranthi.

  • Error in executing Std query -  Incorrect FRANGE row in FORM/DIM?FAC

    Hi,
    NOTE: We are on BI 7.0 Spport Pack 12 (SAPKW70012)...
    When I try to execute a query(one of the standard queries in HR - 0PA_C01_Q021), I got the following error messages:
    ABEND: Incorrect FRANGE row in FORM/DIM?FAC for InfoObject 0AGE
    ABEND: Incorrect FRANGE row in FORM/DIM?FAC for InfoObject 0ORGUNIT
    ABEND: Program error in class SAPMSSY1 method: UNCAUGHT EXCEPTION
    I searched the OSS and found a note 1001621 which said apply support package: SAP_BW_VIRTUAL_COMP - Rel 700 - Pkg name SAPK70012NVCBWTECH
    But, our basis guys came back with the reply that the solution suggested in OSS note is for SAPKW70011, but our system is already on SAPKW70012. So, this note cannot be applied.
    Is there any hidden solution out there? Please respond asap.
    Thanks

    Hi Raj and Sunny,
    Actually solution is very simple. You have to open this query in Query Designer and redefine the corresponding selection. The problem is that OLAP in BW 7.x is much more strict to query definition than in BW 3.x. Therefore queries from BW 3.x  are not accepted quite often. This error is just one example. So try to touch  the corresponding selection using hierarchy and save a query once again. For sure this will help. If not, create a message, we will look at the problem directly in your system.
    Best regards,
    Maxim

  • How to change default for Suppress Results Rows

    Hi,
    Does any one know a way to change the default value for the "Suppress Results Rows" from "Never" to "Always" under characteristic properties in a BEX query?
    Every time we build a new query we have to go to each characteristic and change most of them to "Always". Want this to be a system wide change that would affect all new queries or existing queries that are being modified by adding new characteristics.
    Thanks,
    Mike

    Hi Mike,
    This property is controlled by domain RRXNOSUMS. You can change the default value to point from "Blank" to "U", I suppose. Haven't tried this though and I am not sure if it is okay to play around with the SAP settings. But if it works for you, do post back.
    Hope this helps...

Maybe you are looking for

  • Font does not display correctly...

    When setting my default language to 'Vietnamese', I cannot get Google and Gmail pages to load up correctly; boxes appear where the font is unknown. I have tested this on the latest Safari, OmniWeb, Firefox and on 2 other iMacs both running Tiger with

  • Can I use MapViewer to display dynamic flowchart?

    Hi, Here is my requirement: I have a web application consisting of many screens/pages. The page flow is not static but changes dynamically based on user input on each page. I want to add a function for this app to show this dynamic page/screen flow i

  • REpairing permissions - very time consuming - why ?

    Hi Forum After installed leopard my Diskutility takes several minutes to repair permissions. Any suggestions to why ? yours Bo Ps. I've made an upgrade from a clean Tiger 10.4.10

  • G/L account 500002 cannot be used (please correct)

    Hi,   While creating PO with A/c assignment category K, i have enterd GL and cost center the below error occurred. Pls suggest to solve. G/L account 500002 cannot be used (please correct) Message no. ME045 Diagnosis Comparison of the field selection

  • Convert px to rem

    Is there a plugin for Dreamweaver CC 2014 that allows you to automatically convert PX to REM. Or is there a way to do this without a plugin. I found one in youtube Demo of Easy CSS3 - Convert px to rem. Works with single-line, multi-line & part selec