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

Similar Messages

  • Document Count when Condition is Active

    Hi Experts
    I have the following scenario
    I have a Calculated Key Figure which by formula variable *1 calculates the number documents.
    The count works correctly as it gives me the proper count of the documents that make up the amount on that line. Let suppose it was 180 documents and that 175 of these have amount =0.
    However after applying a condition that would not display the records whose amount = 0, I would expect the count to change to 5,  but still gives me 180.  The document number is not a field in the default view of the report.  If I bring the docuemnt number with my condition active, it displays the 5 reports.  Puts a one in the counter and the result row display 5.
    If document number is not in the view, I get 180 when its supposed to be 5. 
    Am I missing a setting on the Calculated Key Figure.  I have calculate single values as Total, I have reference characteristic: Document Number, and the CKF has Aggregation: After
    Thanks in advance.

    Thanks Ananda
    But what I am really looking for is an unique document number counter.
    I have several records (updates, etc.) that roll up in the document level to make up my amount.
    I dont want a record count.  I want a document number counter that will work when the condition is applied.

  • 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

  • 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

  • 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

  • Retrieve all rows when condition is met

    hi all, consider the following data.
    WITH table1 AS
      SELECT 1 amt, 'dummy' txt, 'R' txt2 , '1X' pid FROM dual UNION ALL
      SELECT 123 amt, 'CATS' txt, 'P' txt2, '1X' pid FROM dual UNION all
      SELECT 145 amt, 'CAR' txt, 'PR' txt2, '1X' pid FROM dual UNION all
      SELECT 165 amt, 'NAME' txt, 'P' txt2, '1X' pid FROM dual UNION ALL
      SELECT 166 amt, 'NAME' txt, 'PK' txt2, '1X' pid FROM dual UNION all
      SELECT 100 amt, 'dummy' txt, 'R' txt2, '2X' pid FROM dual UNION ALL
      SELECT 13 amt, 'CATS2' txt, 'P' txt2, '2X' pid FROM dual UNION all
      SELECT 15 amt, 'CAR2' txt, 'PR' txt2, '2X' pid FROM dual UNION all
      SELECT 15 amt, 'NAME2' txt, 'P' txt2, '2X' pid FROM dual
    )i want to display the following output
    AMT  TXT    TXT2  PID
    ========================
    1    DUMMY  R     1X
    123  CATS   NO    1X
    145  CAR    NO    1X
    165  NAME   NO    1X
    166  NAME   PK    1X
    100 DUMMY   R     2X
    13  CATS2   P     2X
    15  CAR2    PR    2X
    15  NAME2   P     2Xthe logic behind this output is as follow:
    when i find a row where amount is 1 or -1 and txt=dummy, i want to take the pid value of that row and find all the rows with that pid where txt2 in (P,PR) and set the value of txt2 to NO.
    if txt2 is not in P OR PR, then set the column to current Value
    eg. the first row in data above has amt=1 and txt=dummy. i will take the pid of this row which is 1X and find all other rows with that pid value and txt2 in P,PR.
    in this case i found row with amt=123,145,165. i display those rows in output but txt2 change TO NO.
    if you notice , row with amt=166 was not change because txt2 = PK. in the second set of data, i display the data as is since i could not find a row with amt in(1,-1) and txt=dummy
    can someone help me write a query to display the above output?

    WITH table1 AS
      SELECT 1 amt, 'dummy' txt, 'R' txt2 , '1X' pid FROM dual UNION ALL
      SELECT 123 amt, 'CATS' txt, 'P' txt2, '1X' pid FROM dual UNION all
      SELECT 145 amt, 'CAR' txt, 'PR' txt2, '1X' pid FROM dual UNION all
      SELECT 165 amt, 'NAME' txt, 'P' txt2, '1X' pid FROM dual UNION ALL
      SELECT 166 amt, 'NAME' txt, 'PK' txt2, '1X' pid FROM dual UNION all
      SELECT 100 amt, 'dummy' txt, 'R' txt2, '2X' pid FROM dual UNION ALL
      SELECT 13 amt, 'CATS2' txt, 'P' txt2, '2X' pid FROM dual UNION all
      SELECT 15 amt, 'CAR2' txt, 'PR' txt2, '2X' pid FROM dual UNION all
      SELECT 15 amt, 'NAME2' txt, 'P' txt2, '2X' pid FROM dual
    SELECT  amt,
            txt,
            case
              when txt2 in ('P','PR')
                then case max(case when txt = 'dummy' and amt in (1,-1) then 1 end) over(partition by pid)
                       when 1
                         then 'NO'
                       else txt2
                     end
              else txt2
            end txt2,
            pid
      FROM  table1
           AMT TXT   TX PI
             1 dummy R  1X
           123 CATS  NO 1X
           145 CAR   NO 1X
           165 NAME  NO 1X
           166 NAME  PK 1X
           100 dummy R  2X
            13 CATS2 P  2X
            15 CAR2  PR 2X
            15 NAME2 P  2X
    9 rows selected.
    SQL>  SY.
    Edited by: Solomon Yakobson on May 4, 2011 5:35 PM

  • 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 focus a row directly when the search found the result....in active w

    how to focus a row directly when the search found the result....in active widget

    Considering that I don't understand what you're talking about - does altering the selection of the widget and requesting the focus help?

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

  • 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

  • Conditions for results row in query

    Hi,
    I've query with conditions. Let us say without conditions query result has 10 records. But After applying conditions result has 4 records.
    When you check the result row the subtotals and totals are coming wrong. Result rows are considering the 10 records.
    How can I get the result row has to consider only those 4 records after conditions.

    Hi,
    I have the same problem. And I didn't find any solution.
    kind regards
    Tobias

  • 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

  • How to suppress row when one column has zero  using condition

    Hi Experts,
    How do I suppress row when one column has zero.
    I read it is possible using conditions.
    How ?
    Thankyou.

    Check this
    1. for Query Properties, go to the Display tab and Supress Zeros is "Active"
    2. select the Structure, right-click, select Properties, then click "on" Also Use Zero Suppression for Structure Elements
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/dd3841d132d92be10000000a1550b0/frameset.htm
    Hope it Helps
    Chetan
    @CP..

  • Missing Result Rows on Query with Conditions

    I have a query that has a condition to show only items over $2500.00.   We have a result row that shows for plant when the condtions is not on but once the condition is set that result row goes away.  Does anyone know how to get a result row to show up on reports with conditions?  Thank you.
    Caroline

    Hi Caroline,
    In BI 7.0, you goto do this in Query Designer.
    Select any of your characteristic in the designer and choose Display Properties to always display result.
    Then run the query.
    Assign Points if Helps !!
    Regards,
    Naveen Rao Kattela

  • Warning Message - Conditions with Result Rows Suppress

    Hi All
    I created a query with conditions and 'Suppress Result Rows - always '. When I run the query in Bex, I get this warning message showing me that conditions exist with result rows suppressed '. Is there a way to avoid getting this warning message.
    Thanks

    Hi Krishna,
    If you want to suppress the message for all users centrally for this particular query, you can do so in RSRT. Put in your query technical name and click on the Messages Button. Check as required to suppress.
    Hope this helps...

Maybe you are looking for

  • Surprising results on BSEG

    I read that  instead of using BSEG, using index tables BSIS & BSA, we can improve performance. We have a old code in our system and I tried to modify using BSIS & BSAS... but my changes are taking more time than the old code. Old: loop at TEMPBKPF. K

  • Get filename only with spd workflow

    Hi I want to get the filename of an image located in an image library. (i.e. myimage.jpg) ising SPD workflow I've tried several options: Curent Item:Web Image URL Curent Item:PitureURL The one that comes close is: Curent Item:URL Path which gives: /s

  • Kann ich Premiere PRO 1.5 mit dem Betriebssystem Windows 7  benutzen?

    Kann ich Premiere PRO 1.5 (90056288 10/04) mit Update 1.5.1 mit dem Betriebssystem Windows 7 benutzen, bzw. ist noch ein Update (Treiber) erforderlich und wo kann ich ihn herunterladen?

  • Custom html tags with JEditorPane

    I'm trying, to use my own tags within html in the JEditorPane. An insert parses without exception but the html in the pane is missing the custom tags that I attempted to insert. I have tried to use the 'setPreservesUnknownTags' command on the html do

  • Pipelined function with huge volume

    Hi all, I have a table of 5 million rows with an average length of 1K for each row (dss system). My SGA is 2G and PGA 1G. I wonder if a pipelined function could support a such volume ? Does anyone have already experienced a pipelined function with a