Sorting by Characteristic Result Rows using Condition Top 100%

I need to sort characteristic by results and use <<Top 100%>> condition to do it.
I got three characteristics in my query:
1. Organization
2. Date
3. Planning Level
And three key figures
1. Planned amount
2. Actual amount
3. Deviation % (Actual/Planned) (calculated by using amounts, Date and Planning Level)
I need to know best palnning organisations by sorting them on deviation results on Organisation Level.
Also I need Date  and planning Level characteristics involved in query, because they taken in  Deviation formula.
Then I use condition (Top 100%) by Organization, the query doesn't sort Organisations by Deviation properly Any ideas why? I tried to add one extra characteristic in query on top of Organisation and use it in condition but it doesn't work either.

I guess u didn't understand me.
I got three characteristics in my query:
1. Organization
2. Date
3. Planning Level
And three key figures
1. Planned amount
2. Actual amount
3. Deviation % (Actual/Planned) (calculated)
I need to know best planning organizations. So I need sort Organization by
Also I need Date  and planning Level characteristics involved in query, because they taken in  Deviation formula.
So, then I use condition (Top 100%) by Organization the query doesn't sort Organisations by Deviation properly

Similar Messages

  • Result row on the top..

    Hi All
    In my report the overall result row is displaying at the top of the report.In the result properies the result position is checked as below.
    I used a hierarchy in this query.Even I checked root/totals appear below in the Hierarchy attributes in RSA1.Even i getting the same result.
    Please advise me on this...
    Thanks
    Raghu

    Hi Arun
    We dont have any option in the display properties.
    Thanks
    Raghu

  • Result row when condition is active

    Hello gurus,
    I have created a condition in my report and the result row does not reflect the rows displayed when condition is active. Is it possible to get a result which is the total of rows displayed when condition is active ?
    Thanks in advance,
    Vanina

    Hi Vanina,
    You can go through the steps here:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    Basically you have 2 queries that are linked by a replacement path variable. This will carry the results (char values) of the pre-query to the resultset (final) query.
    Hope this helps...

  • Manipulate the result rows using routine or fm

    Hello BW Experts,
    Can we manipulate the BW result rows in Bex using any routine or fm.
    Suggestions appreciated.
    Thanks,
    BWer

    Dear BWer,
    Following is a sample code for ZXRSRU01:
    You can get the data from Queries or any other objects.
    Is this what you are lookign for ?
    Good luck, BB
    Variable Type
    case i_vartyp.
    when 0.
    case i_s_rkb1d-infocube.
    when '0SD_C03'.
    clear: g_vir.
    refresh: g_t_price1,
    g_t_price2.
    Loop selection table and get Price Id and Price Year
    loop at i_t_var_range into g_t_var_range.
    case g_t_var_range-iobjnm.
    when 'PR_ID1'. g_vir-pr_id1 = g_t_var_range-low.
    when 'PR_ID2'. g_vir-pr_id2 = g_t_var_range-low.
    when 'PR_YEAR1'. g_vir-pr_year1 = g_t_var_range-low.
    when 'PR_YEAR2'. g_vir-pr_year2 = g_t_var_range-low.
    endcase.
    endloop.
    Insert prices to table g_t_price1
    if not g_vir-pr_id1 is initial.
    select *
    from zprice
    into table g_t_price1
    where price_id = g_vir-pr_id1
    and price_year = g_vir-pr_year1.
    endif.
    Insert prices to table g_t_price2
    if not g_vir-pr_id2 is initial.
    select *
    from zprice
    into table g_t_price2
    where price_id = g_vir-pr_id2
    and price_year = g_vir-pr_year2.
    endif.
    endcase.
    endcase.

  • Query with Top N Condition (Result Row)

    Hi,
    I made a query with an active top n condition. The query has 2 Keyfigures and 1 formula
    Gross-sales acutal | Gross-sales previous year | Previous Year %
    So that to result line is correct, I had to say "Calculate result as summation" for the keyfigures
    gross sales actual and gross sales previous year. That works.
    I have the problem with my formula. the formular for previous year % is defined as follows:
    gross sales actual %A gross sales previous year
    Example Top 3 Customer
                        gross sales actual          gross sales prev. year         prev. year %
    Cust 1          100                                   80                                       125 %
    Cust 2          90                                     45                                        200 %
    Cust 3           80                                    60                                        133 %
    Result          270                                   185                                       142.8 % ( 350 * 100 / 245 )
    The result of 142 % is the correct result without the condition top 3. with the top 3 condition
    the result should be 270 * 100 / 185 = 145.9 %
    Additional customer without top 3 condition
    Cust 4          50                                       40                                        125 %
    Cust 5          30                                        20                                        150 %
    It shows the correct result for each single line. The result in the result row is wrong. it is calculated
    without taking the active condition. the formular calculates
    with the total gross sales actual and the total of gross sales prev. year.
    is there any solution the achieve the correct % in the result row?
    thanks for your help.
    Pascal

    Pascal,this is a known behavior with conditions.When you apply condition it just hide the extra rows and it does not impact the result row.So your result row actually shows the value irrespective of the condition you apply.
    Now with the help of local functions like calculate result as summation you can show the correct sum after applying the condition but when you try to use that result in some calculation then it takes the original value thereby discarding the calculated value.
    Same is happening in your case as well.Its taking the original value i.e 350 and not the calculated sum after condition i.e 270.
    Hope this helps.
    Regards,
    AL

  • Sort by result rows

    hi all
    In my query I got several chars: Organization, Planning Level, Date
    And 3 key figures: Planned amount, Actual Amount, Plan/Actual (calculated KF)
    My query got results by Organization on Plan/Actual KF (totals are averages).
    Now I need to sort up all Organizations by Planning accuracy, in other words I need to sort query results by Plan/Actual KF totals based on Organization Level.
    I created Condition TOP 100 % on Plan/Actual KFG with setting "Individual Chars and Char combinations" and assigning Organziation. But it seems it doesn't work.
    How can I make this work?

    Thnx, Akshay, but I already done like you said and run into some strange behaviuor.
    Than I keep it far left without Date in rows it seems ALMOST working. "Almost" because it sorts all organizations well except the last one, which is bigger then first before last, like this:
    Org PLevel KFG
    111   15      100
    112   14         90  
    109   14         65
    115   12         30
    110   13         89
    Second, it doesn't work at all than I got Date in rows (doesn't matter Organization is far left or no)...
    Edited by: Gediminas Berzanskis on May 11, 2010 1:56 PM

  • Result row won't summarize

    Hi all,
    I have a report where I have column A, B, C and D. They all consists of formulas.
    The problem is in the overall result row (or the top node in a hierarchy). For column A and B I want the result row to use the formulas and this works fine. But for column C and D I want the result row to use the summation function. I have tried setting the "Calculate result as..." to Summation but this does not make a difference. Any ideas why this isn't working? Or other settings I might try?
    Any suggestions will be appreciated!
    Thanks and regards,
    TMV

    I have already tried this and it doesn't make a difference. When reading the following in SAP Help I get the impression that it is not possible to force summation when you have subsequent calculations. http://help.sap.com/saphelp_nw04/helpdata/en/4d/af1dc766d5df44bfdb76f7e54d16e2/frameset.htm
    Am I right? And does anyone know a workaround for this?

  • "Result" row not appearing for the Structure record in Bex Designer.

    Hi
    In BI BEx Designer,
    under Rows-> click any Characteristic-> Display Tab-> Result Rows: "Always Display" Option controls Last Row named "Result" (yellow colored) after the actual data reports ends.
    But i am not finding this thing for the structure.
    Actually my this report is based on 'Structure-> 2 selections' under Rows; once i run this query i get data without yellow colored 'Result" row at the end of report. I wanted to maintain the symmetry with other reports.
    Could u pls let me know how to get Query last "Result" record if i use only structure under the rows.
    Thanks...

    I limit the selection to display in one page, i see the overrall result but i've a result to show up after a Characteristic (result row option 'Display with more than one single value'), it works fine in BEx but not in web.
    for the other query, yes i do KF in the report.
    thanks

  • 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

  • Display only the result rows only by using condition or any other way

    Hello Everybody,
    I've a web report where I want to diplay ony the result rows and don't want to display the detail rows at all. I could hide the detail rows but these rows still appear without any value in the key figure fields.
    I tried to revove the characteristic field from the drilldown but it doesn't show the report correctly. Then I tried to write a condition to filter the detail rows but this condition doesn't apply to the result rows so this effort also didn't work for me.
    Is there anyway we can display the report with only the result rows ? I've already tried to find out a solution on SDN but couldn't get the solution eventhough I found many posts on this kind of requirement.
    Any help would be greatly appreciated.
    Thanks
    Alok

    Please explain when you say
    "I tried to remove the characteristic field from the drill down but it doesn't show the report correctly"
    What is problem there? What result do you get. If possible please provide  details of columns layout and few numbers

  • BEx Analyzer: Result Rows Suppressed when condition is on

    Hi All,
    I have a BEx Query with below details:
    Drill down characteristics - A, B, C, D, E, F, G, H, I (total 9)
    Result Row set to Display for - A & F characteristics
    Key Figures - P, Q, R, S
    Condition is Active on column - S:  less than 100 (Show all the values less than 100 for column S)- This is a percentage calculated key figure.
    Characteristic Assignment in the condition - Individual Chars. and Char.Combinations, selected all characteristics that are in the drill down (A to I).
    Issue: When I run the report, everything works fine except the result rows, For both column A & F result rows are not displayed. It is getting suppressed somehow.
    I tried by selecting the first option in the Character Assignment (All characteristics in the drilldown independently). This works & I get the result rows as required, but now it doesnt show all the values that supposed to be on report.
    This is causing inconsistent data to the Business, even though cube values are correct.
    We are on SAP BI 7.0 with SAPKW70019 support package.
    I did research OSS notes, but unfortunately couldnt find any.
    Please help with your ideas & let me know if you need further inputs.
    Thanks in Advance.
    Umesh.

    Hi Jagan,
    In fact i've no problem with positive or negative values. Let me tell,
    in my query, my one column ( X)  shows top 10 customers' debt values. Another column i am trying to get X's total amount. But when my formula is "SUMRT X", im getting my total 200 customers' total debit. So this new column doesn't use my first query condition.
    How can i do my condition effective for this column too?
    Clear? maybe my English is not so enogh to tell the problem. Sorry about that.
    Thanks.
    Htc

  • How to display top Position Level using conditions / Exception Aggregation

    Hello,
    I have the following problem where I need to list out the row with the highest POSITION LEVEL (with reference to BUSINESS PARTNER). I have tried out all possibilities including Conditions and Exception Aggregation (MAX) but nothing seems to work. Conditions work to an extent i.e. it shows the top position level but unfortunately for the entire query result i.e. only one row is displayed in the result (the first row to satisfy the condition) instead of all the rows for each Business Partner. POSITION LEVEL is a KEY FIGURE value. It also exists as a CHARACTERISTIC under a diferent name in the cube. How can I solve this? Pls help.
    This is how the report looks at present...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Testfallini     Enzweiler     3000000020     21.10.1990     63674     New York     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     1
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     2
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     1
    This is how the report looks when I use conditions...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    This is how the report should look...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Testfallini     Enzweiler     3000000020     21.10.1990     63674     New York     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     2
    Thanks in advance,
    SD

    Hi Sebastian,
    I thought you need to display all the records with the highest position level at top. But now I realize your requirement.
    It should only display only the maximum position level for each level.
    You can try using the Condition for the position level KF, with Top N operator and value = '1'
    And then go to char assignement tab in the exception and select Most Detail Chars along Rows/Individual Chars. and combinations for the required combination of Chars.
    [List Condition for All Characteristics in Drilldown Independent|http://help.sap.com/saphelp_nw04/helpdata/en/86/dfc405ab60524ea0d3e89db15fb2e7/content.htm]
    [Defining Conditions |http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm]
    Hope this helps....
    Rgs,
    Ravikanth.

  • 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

  • Query with a condition - Overall results row is wrong

    Hello,
    I have a query that uses a condition.  The query gives me the top 10 brands according to the Net Sales.  The query itself runs fine.  I just noticed however that the Overall Result row isn't giving me the correct number.
    For example:
    <b>BRAND            NETSALES    MARGIN %</b>
    Brand1           $100        25%
    Brand2           $60         10%
    Brand3           $20         15%
    <b>OVERALL RESULT   $210        2%</b>
    As you can see it does not add up or average correctly.  This query has no macros or anything, it only uses a condition.
    Any suggestions?
    Thanks,
    Nick

    A workaround I have found is the manual directions in this OSS note: 572910
    Anyone have any follow up?
    Thanks.
    Nick

  • 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.

Maybe you are looking for

  • ITunes won't sync with my iPhone 4! Won't get past 'Waiting for changes to be applied'

    I've recently started having a problem with syncing my iPhone 4 (running the latest version of iOS7) with the latest version of iTunes. I start to sync my phone with iTunes but it gets to the 'Waiting for changes to be applied' phase and then doesn't

  • How can i turn off imessage without having access to an apple product

    I no longer have access to any apple products and i cannot find out how to turn off imessage without one. I am using a Samsung S5, but i am not recieving messages from my firends that have iphones. Please help

  • Report on requirements

    Hi, Can you provide the REPORT which show the stock available items can cover the existing SO/RelOrd?  For example, refer to MD04; we have the stock of 100ea and it can cover two orders which request ship on 17 April.  Actually, we would like to work

  • Nokia N9 TV-out doesn't work

    My tv and projector doesn't recognise him at all. I tried to change settings in tv-out menu but it doesn't help. Both cable and phone are new, connectors are properly attached to phone and tv.

  • Help Understanding desupported method in 10.1.3

    Can someone explain this from the list of things desupported in 10.1.3 @ http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.0.3/desupport1013g.html Data Web Beans and HTML Web Beans (JSP Pages) The recommended approach for developing new da