Suppressing rows based on a condition

I have report, where I have to remove certain rows out of the report, based on the certain condition.
Note that, there are two characteristics in the rows, and one key figure in the columns. If the first characteristic value equals that of the second characteristic in the rows, I want to remove that row from display.
Row1              R1    R2      K1
Row2              R3    R3      K1
Row3              R2    R3      K1
Row4              R3    R2      K1
In the above example, I need to remove Row2, because both characteristics have same value, which is R3. I want to suppress those records, and just show Row1, Row3 and Row4.
Row1              R1    R2      K1
Row2              R3    R3      K1  ->  remove this row
Row3              R2    R3      K1
Row4              R3    R2      K1
My problem is conditions only work on the key figures, not characteristics. I tried the replacement variables, but it is not working.
Any ideas?

Hi,
You can achieve the solution if your 2 characteristic's data type is NUMC.
If it is NUMC, then try the below steps:
1. Create a formula in the Key Figures structure.
2. In the formula, create a formula variable, and on the formula variable select the processing type as Replacement Path. After that choose the first characteristic on the Characteristics selection.
3. Repeat step 2 again for second characteristic.
4. Now the two formula variables contains two characteristic. Select both of them and subtract it.
5. You will get the values 0 and not equel to 0.
6. Create a condition and suppress zero values of the formula key figure.
If it is not NUMC, then i guess you have to stage the data to another location. At the time of transformation you have to supress the records.
Vivek

Similar Messages

  • Highligting rows based on multiple conditions

    Hi,
    I have to show a report with exceptions highlighted in RED color. Exceptions are based on some conditions:
    If I have four columns in an answer request, two of which say "Level" and "Status".
    based on the "Level" and "Status" column conditions I have to highlight entire row which satisfies any of the condition.
    Ex: If I have Level=3,4,5 and Status= Y,N then for
    Level=3 or Status=N is one exception.
    Level=4,5 or Status=Y is another exception.
    Based on this two column conditions I have to highlight entire row in the report.
    Can we do this in OBIEE. Highlighting rows based on multiple conditions?
    Thanks in advance!

    Thanks for the reply.
    I have tried that already. I can highlight one specific field but not entire row.
    If I keep on applying the conditional format for the other columns too then I can't apply the conditions.
    Anyways, I have created a dummy column with the conditions in it and then applied that to the other fields and used conditional format to highlight the color.

  • Trying to alter font on a report row based on data condition

    Hello.
    I have an Apex application with a "classic" SQL report and a corresponding form.
    In the report region I am pulling all items from a table (Select * from TASKS)
    The TASKS table contains many columns including DUE_DATE and COMPLETE_DATE field.
    I am trying to find a way to format the rows in my report based on the condition of those two fields.
    If the record has a complete_date (not null) then I want to change the font for the entire row (each column) to be grey.
    If the record does not have a complete_date (null) and due_date is before today, I want the row to be bold and red.
    Otherwise, the row would display standard black text.
    I can't seem to find a straightforward way to do this in Apex.

    Hi JodyMorin,
    Try looking at this post:
    Conditional item formatting (color)
    You will need to tweak the code a bit for your needs, but I hope it helps.
    -Marc

  • Coloring individual table rows based on a condition

    Hi Experts,
    I have a table bound to a node in the context via datasource property.
    I was trying to color an individual row based on a certain value in the context node.
    Can anyone help my achieve this please?
    For example:
    for( int i=0; i<table.size(); i++)
        if(wdContext.tableNode().getTableElementAt(i).getFieldA().equals("Y"))
            // then color the table row
    Any suggestions?
    M

    Solved.

  • Planning Form: Suppress row based on condition

    Dear All,
    Is it possible to do this in hyperion planning. for example:
    - i have member A
    - in the data form, i want to show row only when member A have value equal to 1. other is suppressed.
    - in another form, i want to show only when A = 2, other is suppresed.
    did anybody have this experience, or is there any other way to do this?
    Thanks in advance.
    Regards,
    Feri

    Hi, i assumed as answered because in fact, the Planning dataform don't have that functionality, but in the new version (11.1.2.2) you might want to try the filter functionality.
    It was a long time ago, but if i'm not mistaken, previously i solve this problem by separating the member for each condition.
    example:
    member A: have all data
    (copy the data from member A to member B and C with condition)
    member B: contain data for condition 1
    member C: contain data for condition 2
    then you can select which condition that you need to show.

  • How to make a table column block editable for a row and remain non editable for other row based on some condition

    hi ,
    i need help on the below scenario ,
    we have a web dynpro table with different columns, now based on new business requirement  one of the column need to     
    dynamically editable or non editable for different row.
    for ex :
    Field 1
    Field 2 ( Dynamic field )
    Field 3
    Field 4
    Data 11
    Data 12 ( Editable with Drop down   )
    data 13
    data 14
    Data 21
    Data 22 ( Non editable )
    Data 23
    data 24
    Data 31
    data  32 ( Editable with drop down )
    data 33
    data 34
    how to achieve this ? please help on this.
    Thanks in advance
    Thanks
    Manish

    Manish,
    there is no proper way to insert two Cell Editors in a column(except variants), have a look on below scenario, it may help.
    add one more attribute to your table context node for read-only.
    create dropDown as celleditor for table and bind with newly created attribute to read-only property of dropdown.
    before binding data to table, check the condition then mention readonly value abap_true / false.
    @ we can achieve by the use of Variants.
    for ex :
    Data 11
    Data 12 ( Editable with Drop down)
    data 13
    read-only - abap_false
    Data 21
    Data 22 ( Non editable, dropdown )
    Data 23
    read-only - abap_true
    Data 31
    data  32 ( Editable with drop down )
    data 33
    read-only - abap_false

  • Filter rows based on Where condition AND-OR ?

    Hi,
    I have table "Table1" and columns are
    Id
    AddendumNo
    ClaimNo
    Description
    1
    A1
    C1
    D1
    2
    A1
    C1
    D2
    3
    A1
    C2
    D1
    4
    A2
    C3
    D3
    5
    A2
    C1
    D2
    I have three controls in the UI.
    If I give txtA1.Text =”A1” only then should be return Id- 1,2,3 records.
    If I give txtC1.Text =”C1” only then should be return Id- 1,2,5 records.
    If I give txtA1.Text =”A1” AND txtC1.Text =”C1” then should be return Id- 1,2 records.
    If I give give txtA1.Text =”A1” AND txtC1.Text =”C1” AND txtD1.Text=”D1” then should be return Id-1 record.
    Please help me to write dynamic sql query ?
    Thank you.

    HI
    Try following code
    CREATE PROC usp_dynamic_exec @where VARCHAR(Max)
    AS
    BEGIN
    DECLARE @strQ AS NVARCHAR(max)
    SET @strQ = 'Select * from yourTableName'
    IF ISNULL(@where, '') <> ''
    BEGIN
    SET @strQ = @strQ + ' Where ' + @where -- where clause
    END
    EXECUTE sp_executesql @strQ
    END
    GO
    Ref :http://technet.microsoft.com/en-us/library/ms188001.aspx
    http://www.vishalseth.com/post/2008/07/10/Dynamic-SQL-sp_executesql.aspx
    http://blog.sqlauthority.com/2013/03/28/sql-server-executing-dynamic-sql-sql-queries-2012-joes-2-pros-volume-4-query-programming-objects-for-sql-server-2012/
    Mark as Answer if you find it useful
    Shridhar J Joshi Thanks a lot

  • How to suppress a row based on current date -  at query level?

    In an Bex query report i have suppress rows based on current date.
    There is no current date available in query.
    there is a date field in the query.
    If by chance the date in that field is lesser than current date, I have to suppress that row.
    How can this be achieved?

    What is the code ofr creating a variable to get values >= to current date?
    I have implemented the following code which is not working.
    data L_S_range like line of E_T_range[].
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'GE'.
    L_S_RANGE-LOW = SY-DATUM.
    APPEND L_S_RANGE TO E_T_RANGE[].
    Actually i have written in class, which will be inherited in superclass.
    Edited by: akshara20 on Feb 2, 2011 1:21 PM

  • SALV - Hide rows based on certain condtion

    All,
    I have searched a lot in this forum this answer, but could not find any nearest one.
    I am using CL_SALV_TABLE (SALV) for an ALV report. I wanted to hide some rows based on some condition say for example
    in the ALV one of the column is MATNR say i wanted to hide rows that having MATNR less than 1000.
    How we can do this ?
    Thanks

    Good day, everyone!
    Ive faced the same issue - I either have to hide a row or to change subtotal line manually.
    Have anyone solved this already?
    PPShinde wrote:
    HI!
    > I think u first calculate total in internal table. save that totals into some veriable and then remove those lines which u dont want to show from internal table and then calculated total append into that internal table .
    > I thinks it will work!
    > all the best!
    I can't find anything that looks like a table for subtotals - they are counting somewhere inside SALV.
    Or, maybe, you know something that I dont?
    Clemens Li wrote:
    If people insist on the requirement, disable SUM and create your own total line.
    Add my own total line? How can I do this?

  • Table Control - Input Enabling/Diabling of Rows based on Condition.

    Hi,
    In the TC, I want to Input Enable/Disable the rows based on Conditions. The First row is input enabled always. But the other rows, (2nd onwards) need to be Input Enabled/Disabled based on some conditions. It is possible to make this working. Can you please provide me a suitable solution for this?
    Appreciate Your Help.
    Thanks,
    Kannan

    Hi Kannan...
    If we are talking about "Rows"...
    then identify based on some conditions the row numbers and in PBO...loop at screen with screen name..set thier input properties and modify screen (make them input only)
    If we are taking into consideration "columns"
    There is an internal structure COLS where we can identify column number of screen name ...or we can take except for one particular column..
    if some condition satisfied....
    loop at screen where screen-name <> "Column which is input'.
    Loop at screen...and make other columns display only.
    modify screen
    endif.
    Regards
    Byju

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

  • Suppressing a section based on two conditions

    Hello
    currently, I am trying to suppress a section of group based on two conditions:
    - The first condition is to suppress the section always if the user is not at DrillDownGroupLevel 1.
    - The second condition is to supress the section if the GroupName ({Customer.TerritoryID})  is not UK or US.
    I went to the section expert and entered this code in the "Suppress (No drill-down)" x-2 formula field:
    DrillDownGroupLevel <> 1 AND
    GroupName ({Customer.TerritoryID}) <> "US" OR
    GroupName ({Customer.TerritoryID}) <> "UK"
    Unfortunately, it does not work. Any ideas are very welcome!!
    I am using Crystal Reports XI
    Thanks in advance!!

    Which "section of a group" are you trying to conditionally suppress?  (group header, group footer or details within a particular group......or all of them?)
    AND you stated,
    "currently, I am trying to suppress a section of group based on two conditions:
    The first condition is to suppress the section always if the user is not at DrillDownGroupLevel 1.
    The second condition is to supress the section if the GroupName ({Customer.TerritoryID}) is not UK or US.
    Try this formula for the conditional suppression:
    (DrillDownGroupLevel  <> 1) AND
    (GroupName ({Customer.TerritoryID})  "US") OR
    (GroupName ({Customer.TerritoryID})  "UK")
    If that does not work you may want to check and make sure your values are upper case in the TerritoryID.
    In addition, a GOOD way to test conditional suppression formulas is to put them into a conditional highlighting color for the section so you can still see the values and the highlighting lets you know if it's working.  For example:
    IF
    (DrillDownGroupLevel  <> 1) AND
    (GroupName ({Customer.TerritoryID})  "US") OR
    (GroupName ({Customer.TerritoryID})  "UK")
    then YELLOW else WHITE

  • Grey out a particular row in ALV based on some condition.

    Hi All,
    How can we grey out the particular row in ALV based on some condition( I am using the function modules and not OOPS).
    Regards
    Ramesh.

    Hello Ramesh
    In this case you need to add a specific field to your structure:
    TYPES: BEGIN OF ty_s_outtab.
    INLCUDE TYPE <my table or structure>.
    TYPES: CELLTAB   TYPE lvc_t_styl.  " name is arbitrary but this one is most frequently used
    TYPES: END OF ty_s_outtab.
    DATA: gt_outtab  TYPE STANDARD TABLE OF ty_s_outtab
                                 WITH DEFAULT KEY.
    You can use the fieldcatalog to make an entire column non-editable (LVC_S_FCAT-EDIT = ' ' ).
    However, in case of rows you need to inactivate all cells of this row. For sample coding please refer to thread:
    How to conditionally set ALV field as hotspot
    Regards
      Uwe

  • Add different UI in each row based on conditions in ALV

    Hell All,
    i am working on dynamic ALV in which i have created 3 methods 1. which creates the columns 2. Which sets the data into teh created columns. 3. which does teh alv customizations.
    So now my requirement is based on some condition i want to change the UI element 
    eg
    i have
                                  column1      column2            column3
                                      1            link_to_action     name
                                      2            link_to_url          name2
    so based on the condition i would like to display the ui elements as above.
    I was able to do till this end so far..
    1.in create_columns method i created a column call cell_varaint
    2 when i was passing data into the columns
    'when column1'
      IF  colum1 = 1.
    <field> = 'link_to_url'
    else.
    <f_field>  = ' '.
    endif.
    when 'column2'
          CREATE OBJECT lr_link_to_actn.
                 <ls_column>-r_column->set_cell_editor( lr_link_to_actn ).
                 CREATE OBJECT l_cv.
                 l_cv->set_key( value = 'LINK_TO_URL').
                 l_cv->set_editor( value = lr_lnk_to_url ).
                 <ls_column>-r_column->add_cell_variant( r_cell_variant = l_cv ).
                 <ls_column>-r_column->set_sel_cell_variant_fieldname( 'cell_varaint).
    so now i am able to get only empty column with no data into it ... and my cell varaint column shows me the values like LINK_to_URL or space.
    I am sure tht some where i am missing something...
    Please tell me the correct procedure to use it...
    Regards,
    Sana.

    I hope it is Hello not Hell
    if i understand your question correctly, You want the first row of column to LinkToAction UI element and second row LinktoURL.
    follow the link where it is nicely explained however he is making one row as text view and other as checkbox.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0e7461d-5e6c-2b10-dda9-9e99df4d136d?quicklink=index&overridelayout=true

  • HR (Planning database) Does the account type matter when suppressing rows?

    Does the account type matter when using the Advanced Options row suppression?
    The report will suppress all the 0 rows if the suppression is based on a column with a Planning acct type "Revenue", but it doesn't do anything if the suppression is based on a column with a Planning acct type "saved assumption."
    Just wondering if this is why I can't get the report to suppress the rows. Everything else seems to be the same in the report.
    Thanks in advance for any assistance on this.

    user11232292 wrote:
    Does the account type matter when using the Advanced Options row suppression? Yes. If you click on the Row > Advanced Options > Setup, you will notice the Account Type under the Suppress Row If drop-down.
    Can you tell us how your Conditional Suppression is set up? If this report consists of account types Revenue and Saved Assumption only, and your conditional suppression works just on Revenue account types, you can insert a second condition for the Saved Assumption account types.
    Let me know if this helps or if you have any other questions.
    Cheers,
    Mehmet

Maybe you are looking for