Problem in Overall Result of querie

Hello Guys,
Iu2019m in trouble and need your help.
Iu2019m creating a simple query over the Standard Material Stocks Infocube.
The requirement is to have 4 column and drill down in lines:
1 u2013 Stock quantity issued in Specific date (from begin date to end date). Key Figure 0VALSTCKQTY
2 - Column 3 divided by column 4.
3 u2013 Stock value in Specific date (from begin date to end date) Key Figure 0VALSTCKVAL
4 u2013 Stock Value issued in Specific date (from begin date to end date) Key Figure 0ISSVS_VAL
I created a condition in column 1 because I only wanted quantities > 0. After that I executed the query and noticed that the individual results were fine but the overall result was completely wrong.
I investigated and noticed that the sum of all lines was different from the result. Itu2019s happening because in column 4 I have some lines that donu2019t have quantity issued assigned. I created the condition specifically to eliminate these cases.
Basically, the system is filling the overall result with all values between the dates chosen. I changed calculations of column 4, to calculate results as total.
After this the result appeared to be fine, but the formula in column 2 continues to use the wrong values.
Do you know a way to solve this question?
Many thanks in advance.

Hi.
Create a calculated key figure, using a boolean to check on column one if its not 0 (so the value of the boolean will return as 1 when you got values and 0 when you got nothing) and multiply it with column 4.
Thus, in your ckf you only get values from col 4, when col 1 is not 0. If it is 0, you get 0 from col 4.
Now hide col 4 and base your calculation in col 2 on you new ckf. You can handle the division by 0, if it gives you trouble and set it to 0.
Use the condition you already have as before.
Regards
Jacob

Similar Messages

  • Overall Results in Queries

    Alright guys - I know this might be a simple question. I am attempting to apply totals to master data in a query - Funds Center & Committment Item. I can do this when the hierarchies for any of this master data is inactive via the 'Suppress Rows' etc., but when the hierarchy is active, I cannot seem to find the settings that allow me to view the totals - any help would be much appreciated.

    Hi Scott,
    When you right click on the properties of the infoobject (which has the hierarchy), under Display of Results you will see "Suppress Result Rows".You could select "Never"
    to get the result rows.
    Hope this helps !!
    -Doodle

  • Issue with Overall Result - Help

    Hello,
    I have a query with two restricted keyfigures (0amount used) as actual and forecast. While drilldown by fiscal period, the overall result shows totals for actual and plan separately. Business point of view, they want to have total of both (actual + remaining months of forecast). Is that possible?. If yes, anybody help me on this.  We don't want to create CKF to sum both the key figures.
    Thanks
    Viswa

    Appreciate your response Arun. Did the initial work of getting both actual and plan. Everything works and report is live now knowing that the problem of  overall result when we drill across by fiscal period. The report is very flexible/dynamic columns and users can enter multiple periods and any versions to use for various purposes. Looking for a solution without making changes to the query, somehow we can achieve/fix the overall result summation. Want to keep creating a CKF as last option.
    Thanks
    Viswa

  • Problem regarding data function 'SUMGT' (Overall Result) in BEx query desig

    Hi,
    I have created one query where I want to see the inventory data month wise. That's why at first I have placed 0calmonth (with variable) in column, secondly kept all the key figures which I want to see month wise under one structure, then placed the structure under 0calmonth in column. Now in that structure I have one key figure like 'total stock' and another global calculated key figure '% of total inventory' (='total stock' <b>%A</b> <b>SUMGT</b> 'total stock').
    Now the problem is when ever I'm giving the value of month from 02.2006 to 05.2006, it is calculating the value of '% of total inventory' for every month with respect to the overall result of 'total stock' for month 05.2006. 
    But I want to calculate the value of '% of total inventory' for each month with respect to the overall result of 'total stock' for corresponding month.
    Please suggest what I'll do now.
    Thanks,
    Arijit.

    Hi,
    now i got whats the issue is.
    Check aggregation properties of 'total stock'(RSD1>provide tech name of total stock>display-->aggragation tab)...
    Exception aggregation would have been set to <b>'Last Value'</b> with some time char as aggregation ref characteristic..
    That is the reason why  SUMGT (or %SUMGT) is calculating on Last value of the 0calmonth interval.
    i.e if you provide 02.2006 to 07.2006, %of total inventory for every month would be with respect to value of 07.2006...
    Hope this helps...
    Dont forget to reward if it helps!
    thanks
    Message was edited by: Murali

  • Problem in positioning of the Overall Result Row when using a hierarchy

    Hello All,
    i've built a query on a hierarchy and i want the 'Overall Result' to be displayed at the bottom.
    I've made the following setting in the Query Designer
    <b>Query Properties -> Display -> Results Position -> Bottom/Right</b>
    but still, the 'Overall Result' is displayed at the top of the result rows.
    Could some one please tell me if this is how the functionality is expected to work when a hierarchy is used for display ?
    We are on BW3.1 SP 9
    Best Regards,
    Sanjay<b></b>

    Hi Roberto,
    could you please let me know if the following analysis of mine is correct.
    The Overall Result will be dispalyed at the top if the 'Position of Lower-Level Nodes' is set to 'Down'(default setting) in the Hierarchy Properties of
    the characteristic. If the 'Overall Result' is required to be at the bottom then 'Position of Lower-Level Nodes' has to be set to 'Up'. It is not possible to display the Overall Result at the bottom with the 'Position of Lower-Level Nodes' set to 'Down'
    Will greatly appreciate your help !
    Best Regards,
    Sanjay

  • Issue in the Overall Result

    Dear Experts
    I need your help to solve my problem. I have one BEx report base on a cube and in which I use Key Figure calculated, but when I execute the query, I have on the Overall Result line the result of the formula and not the total result of all items. To illustrate, I have a column with an exchange rate calculated and another column with a Net Value calculated with this exchange rate. If I run the query by displaying all the items, the result is correct, but when I display only the total, instead of the sum of all items, I have the total recalculated with the formulas. How to solve this problem?
    Thx in advance for your help!

    what i understand from your comment is irrespective of whether your drill down via items in report
    the calcuation ( exchange rate and netvalue should happen at each item level and aggregation .
    am i right???
    if yes then you need to create a formula variable on sales doc number and another one on  sales item no.
    definition of formula variable would be replacement path on corresponding infoobject mentioned above.
    and attribute value constant 1.
    mulitply both the formula variable in your CKF  netvalue .
    calculation would always happen at sales doc item level and then aggregation .
    another option is to use exception aggregation .

  • Overall Result Row is not the Sum of Individual Values!

    I am frustrated with a weird problem.  I have an expense report in which Expense1 is shown a value of 8,126.  If I drilldown by company code, the sum of the company codes is 8,235, but the "Overall Result" row is showing 8,126. 
    I tried drilling down by GL accounts, cost centers, profit centers, material and even currency.  For all of these drilldowns the "Overall Result" row is 8,126 but the individual values sum out to be 8,235.
    First I thought it could be "Zero Suppression" that is hiding some values from the display.  But "Zero Suppression" was not active at all.  I have checked the LISTCUBE and saw that the Expense1 should be 8,235 and not 8,126.  The key figure properties "Calculate Result As" and "Calculate Single Values As" are set to "Nothing Defined" and "Use Default Direction".  But still for some strange reason, the "Overall Result" row is different than the sum of individual rows.  It's driving me crazy as I have ran out of ideas to figure out what's happening.  Could someone help me with this?  I would appreciate any input with points!

    Hi,
    Remove the 'Suppress Zero rows/columns' from the query definition and then check the values.
    Column A might have value, but for the same row column B might have zero, hence the row was not shown in the result set, but the overall result will include all such values as well, even thought it was not shown in the result set.
    HTH,
    regards,
    Nataraj.

  • Using javascript to change the "Overall Result" cell in WAD

    Hi experts,
    I am trying to use javascript to change the text of the "Overall Result" cell in my web template using BI 7.0. I am not familiar with javascript, but I this is what I have done so far.
    I dragged the web item "Script" into my web template and I inserted the following code:
    function change_overall_result_to_average() {
    var cell = document.getElementsByTagName("TD");
    var cellText;
    for (i = 0; i < cell.length; i++)
          cellText = cell<i>.innerText;
               if (cellText == "Overall Result")
                     cell<i>.innerText = "Average";               
    In the XHTML view I am using added the onload function to start the javascript every time the web template is loaded. The code works fine when the web template is first loaded and the cell text is changed to "Average". However, if I navigate in my web template, the javascript function is not triggered, and the cell is therefore changed back to "Overall Result". For example, this happens when I pick another selection from one of my dropdown boxes, such as changing the selection from year 2008 to year 2007.
    I don't really know how to solve this problem in an easy way, and the current solution is not good enough. I hope one of you guys can suggest an easy way of fixing this:-)
    Best Regards,
    Morten

    Woodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
    After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
    [http://google.com/search?q=webuijsf+domnode+site:sun.com].
    If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum.

  • Show only overall result in query

    Hi Experts,
    I have a problem with a web template that I cannot seem to resolve.  I have a query with calculated key figures and the overall result is calculated as an average so that I can determine percentages etc.  It is only the overall result that my customer wants to see.  However if I remove the sales doc characteristic then the overall result is also lost.  The query needs sales doc to get the correct result, but then the user has to scroll to the bottom each time to see what he wants to see.
    So my question is, how can I make the query/web template display only the overall result line without taking out sales doc and losing each line?
    Many thanks in advance.
    Sean.

    Hi Sean,
    From what I could understand ,you can try the following.
    Since you want the average of a calculated key figure with respect to Sales doc  ,u can set the property of the calculated key figure as aggregation = average.
    and referance characteristic as 'sales Doc'
    Hope this helps.
    Varada

  • Change text of 'Overall Result' to Custom text in BEx

    All,
    Is it possible to change the text 'Overall Result' to custom text (say, Total) in the BEx analyzer.
    Pls let me know if you need more detail on this.
    Regards,
    Anand

    Hi,
    Check Link:
    Cannot find SAPBEx module
    Note:
    If you are using BEx Analyzer (i.e., queries are implemented in Excel workbooks), then you can change this using Visual Basic code written in the SAPBEX module.
    Anything put in this module will be executed just after query is refreshed and just before the user sees the results.
    Here is code you might use:
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    On Error GoTo EndMacro
    Application.ScreenUpdating = False
    Application.GoTo reference:="SAPBEXqueries!" & queryID
    Selection.Replace What:="Overall Result", Replacement:="Whatever You Want" _
    , LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
    EndMacro:
    Application.ScreenUpdating = True
    End Sub
    Hope it Helps.
    Thanks and Regards,
    MuraliManohar.

  • Chart item - overall result

    Hello,
    I'm working with the BEx Web Application Designer BI AddOn /.X (based on 6.40) and I want to display the result of query in a chart item. The problem hereby is that i also want to display the overall result! How can I do this?
    Thanks,
    Margit

    You want to display both on the same chart item ?
    In this case, you've to define the query with display of the overall result, and change the properties of the chart item, to say that you display the results. Don't know if it's flagged on or off by default. No need of 2 DP. I thought you wanted to display a chart with details on one side, and an overall result on the other side.

  • How to get  the Overall result and Avg in Query

    Hi
    I am facing a problem to find Overall result and Avg for the keyfigure.
    Here is the scenario.
    I have a fiscalperiod ,qty in query column and material in row, when user enters the fiscalperiod(004.2006 to 006.2006)
    the output should come as
       0406 0506 0606  Avg
    M1  10  20   40     35
    M2  20  40   30     45
    res 30  60  70
    i can able to get the overall result not avg,
    if i change the properities of keyfigure 'Calicuate Result as 'Average of all values'',then i am loosing the overall result.
    eitherway i can able to get one result,not both.
    anybody can help.
    Thanks
    Madhu

    You have 2 key figures and you have put Material in the ROWS.
    Remove Material from ROWS and instead use 0FISCYEAR in the row selection.
    You can create 12 Key figures for each month and use either Filer or Free Characteristic using 0CALMONTH to restrict the month for the selection Variable.
    For the Key Figures use "Calculate Single Value as" Average.
    Create another formula as KF1KF2....+KF12 to get the sum of average.
    Regs
    Gopi
    Assign points if it helps...

  • Using Query's overall result in model

    Hello,
    Is there a method to use overall result from a BW query in a VC model?
    I need the overall result values for different KF's from the query in the model for further computation.
    Have tried using a filter for "over*" from the data service output to a table/form ,but didnt work .
    Also how do we combine the output of two filters from a data service and take the count of the records in that output ?I have tried combining the two filters with combine/union and then sigma operators, but not got the desired result.  How exactly does combine work ,on what basis does it combine two datasets?
    Any help would be most appreciated.
    Rgds

    Hi
    That is not a problem you can copy same data service 2 times. Take following example -
    Consider you have Country & State in Rows & sales in Columns. Then in your query create input variable for Country & any other variable lilke month if you want. Then -
    1. You will have first chart as Country wise sales which is at summerized level. You will select country from this chart & you will pass this to your second data service which is nothing but a copy of first one. (You can right click on first service & Copy Paste)
    2. Then you join the output of the first chart to the variable port of the second data service. So when you select on the perticular column of the first chart (which is nothing but one country) you will get details of that country state wise break up.
    If you still have any doubts please let me know.
    Regards
    Sandeep

  • Check complete. The overall result of this check is: Failed ASM ins

    Need steps to clean that plz
    Check complete. The overall result of this check is: Failed <<<<
    Problem: The installer has detected that you may have an Automatic Storage Management (ASM) instance improperly configured or one that was not properly cleaned up from a previous install.
    Recommendation: You must completely remove the ASM instance by deleting the entry for it from the oratab file, or you must configure it properly by ensuring that the oratab file is updated to point to a valid Oracle Home where ASM is configured.
    ========================================================

    Either remove the line in the /etc/oratab file for the ASM instance, or add it if it is missing.
    The file shows the proper format of the line.

  • Different Overall Results in 3.x and 2004s

    used the “Average Of all values” for the Over all results for the query in 3.x (Average Of all values) version and 2004s (Moving Average /Average) version
    For 2006 there are posting in the cube but summed up to “0”. No posting for the year 2007 in the cube.
                                       3.x     2004s
    year     2002     2003     2004     2005     2006     2007     Overall Result     Overall Results
         GP%     GP%     GP%     GP%     GP%     GP%     GP%     GP%
    Linatron     50.59     58.75     46.66     90.53     0.00           49.306175290     41.088479409
    (50.59 + 59.75 + 46.66 + 90.53 + 0.00 ) / 5 = 49.306175290
    (50.59 + 59.75 + 46.66 + 90.53 + 0.00 ) / 6 = 41.088479409
    Same difference I observed even  if I run the same 3.x query in ABAP( Results Value is 49.306175290) run time and Java run time (Result Value is 41.088479409) from RSRT.
    Please let me know if anyone of you observed the same thing.
    I observe this difference in both SPS10(SP12) and SPS12(SP14) of BI 70 as compared to 3.5 version queries.
    How canI get the results as it was in 3.x with 2004s queries.

    used the “Average Of all values” for the Over all results for the query in 3.x (Average Of all values) version and 2004s (Moving Average /Average) version
    For 2006 there are posting in the cube but summed up to “0”. No posting for the year 2007 in the cube.
                                       3.x     2004s
    year     2002     2003     2004     2005     2006     2007     Overall Result     Overall Results
         GP%     GP%     GP%     GP%     GP%     GP%     GP%     GP%
    Linatron     50.59     58.75     46.66     90.53     0.00           49.306175290     41.088479409
    (50.59 + 59.75 + 46.66 + 90.53 + 0.00 ) / 5 = 49.306175290
    (50.59 + 59.75 + 46.66 + 90.53 + 0.00 ) / 6 = 41.088479409
    Same difference I observed even  if I run the same 3.x query in ABAP( Results Value is 49.306175290) run time and Java run time (Result Value is 41.088479409) from RSRT.
    Please let me know if anyone of you observed the same thing.
    I observe this difference in both SPS10(SP12) and SPS12(SP14) of BI 70 as compared to 3.5 version queries.
    How canI get the results as it was in 3.x with 2004s queries.

Maybe you are looking for

  • Adobe Elements 10 Runtime error message, help!

    My Adobe Elements 10 was JUST working 15 min ago, and now when I try to launch it I get this error message: "Runtime Error!" "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team

  • Movies Not Showing Up in iTunes

    I am on an iMac with the lastest everything.  Including 10.7.3.  The problem was happening before 10.7.3 also.  I add m4v files to my iTunes library, they copy in, but I can't find them.  If I go to my iTunes Media folder, I can find them in there. 

  • Order by decode statement with Union all

    Hi I use Database Version: Oracle 9.2.0.1.0 OCI version 9.2 I try to use order by decode while i have a select base on union and I get en error: ORA-01785: ORDER BY item must be the number of a SELECT-list expression Here is my code: select catalog_t

  • How to create Campaign ID in CRM.

    Hi Experts, How to create Campaign ID in CRM. :Please provide me any documents for the same. Thanks & advance Prajith P

  • How to view stored procedure using SQLPlus

    I have created the following stored procedure in Oracle, I would like to know how to view this stored procedure using SQLPlus: CREATE PROCEDURE get_product_code(prod_no IN VARCHAR2) IS      CURSOR Getno IS           <my_query_goes_here>      BEGIN