How to Remove Duplicated Rows in a Report?

My report is diplaying several rows of the same data in each field. How do I delete the duplicated rows?
For example:
Name                 Salary       Date of Hire
Emp1                    10              Today
Emp1                    10              Today
Emp1                    10              Today
Emp2                    20              Yesterday
Emp2                    20              Yesterday
(and do on)

Okay. First don't let it frustrate you too much. If you like learning new things, Crystal will keep you happy for the rest of your life.
Now, if you link  table A to table B    &    table A to table C
and there are multiple matching records in tables B & C for each record in table A (called a one-to-many relationship )
then you get a Cartesian effect yielding duplicated data
---which is to say that for each record in table B, it will be repeated for as many times as you have matching records in table C and/or vise-versa.
You can have as many one-to-one, or one-to-none (with an outer join) relationship links as you like in a report,
but you can only have one  one-to-many link in a report without getting duplicated data.
You may have to start with test reports with only a couple of tables until you get a feel for the data.
There are different ways to get around this issue.  If you are not summing any numbers, then you might be able to use grouping and formating to hide duplicated data. or you may try subreports (small reports placed in a container report).
Edited by: DebiHerbert on Jul 16, 2010 9:03 PM

Similar Messages

  • How to select multiple row in ALV report

    Hi friends,
    1. How to select multiple row in ALV report
                   ( How to set tab in ALV report and want to select multiple line.)
    Thanking you.
    Subash

    Hi Sahoo,
    If you are using the class CL_GUI_ALV_GRID. In methods SET_TABLE_FOR_FIRST_DISPLAY.
    in layout structure you will find field SEL_MODE
    pass :
    LS_LAYOUT-SEL_MODE = 'A'.
    In PAI.
      CALL METHOD GRID->GET_SELECTED_ROWS
        IMPORTING
          ET_INDEX_ROWS = T_ROWS
          ET_ROW_NO     = T_ROWID.
    Hope these will solve your problem.
    Regards,
    Kumar M.

  • How to remove a row from JTable

    Hi!
    I'm used to remove rows from JTables getting the model and doing a removeRow(num) like this:
    ((DefaultTableModel)jTable1.getModel()).removeRow(0);
    But with ADF and JDeveloper the model says it's a JUTableBinding.JUTableModel but its not accessible.
    How to remove a row in Jdeveloper 10.1.3.4.0?

    Or maybe is just better to refresh data in the jTable but I do not know either like doing it.

  • How to remove the row entries

    HI,
    I have a row entry which contains radio button,dropdown,input field,calender.All the fields are dynamic
    All these fields(UI elements) are in one line and these are not in the table.If I add new entry(by clicking NEW ENTRY button),then a new row will be added dynamically with the same UI elements in the new row.Means every new row entry contains radio button,dropdown,input field,calender.
    Problem :- I want to delete one row entries.Means if I delete the 5th row entries,then it should remove all the UI elements(radio button,dropdown,input field,calender) from that 5th row entries only.
    I think I am clear about the requirement.
    Please suggest me how to remove a row entry.These UI elemenets are not table entry.
    Regards
    -Sandip

    Hi Sandeep,
    You can use the below code for deleting a row from table.
    int n = wdContext.nodeProducts().size();//size of node binded with table
    int leadSelected = wdContext.nodeProducts().getLeadSelection();
    // loop backwards to avoid index troubles
    for (int i = n - 1; i >= 0; --i)
    if (wdContext.nodeProducts().isMultiSelected(i) || leadSelected == i )
    wdContext.nodeProducts().removeElement(wdContext.nodeProducts().
    getElementAt(i))
    Hope this will help.
    Regards
    Narendra

  • How to remove blank pages from WebI Report in view page layout option

    Hi,
             I am working in Business Objects XIR2 environment. I have a WebI report with several sections. I need to show the report as a book with 69 sections (each section on new page). there are 69 sections on cost center and each cost center section has almost 10 sections embedded in it. When i see in regular view - I only see 69 pages but when I try to see in "View Page Lay out" option, there is one blank page added after each results page.
    Please let me know how to remove this blank page. I need to give users the option to download the book as PDF on to their machine. Now, when I download to my machine, I see one blank page after each results page.
    Thanks in advance.

    Jus convert your report in Page Layout mode and see if your first pafe is getting expand in the second page.
    Now check if there are any cell going into second page.
    - if there are any blank cell which is there after table.
    you have to check formating very carefull.

  • How to display all rows in the report in one page in Oracle APEX 3.2

    Friends -
    We are using Oracle Applications Express 3.2 on oracle database 10.2.0.5 on solaris environment.
    One of our report contains total no of rows 50000. when we ran report by default it is showing 15 and i can go search and change display no of rows to different numbers and click go.
    My question is it possible to display all 50000 rows during first time report launching without going to change rows. Is there any option that we can set how many number of rows that we can display during report design.
    Please advise
    VSH

    Hello VSH,
    >> My question is it possible to display all 50000 rows during first time report launching without going to change rows
    As vee pointed out it is possible, however the question you need to ask yourself is is it wise?
    Bear in mind that displaying 50,000 rows on a single HTML page means a lot of code that must be loaded by the client browser all at once. What it will do to your page loading time? Browser memory? Network bandwidth? Also, do you really believe that it is effective to let an end user look for a specific row among 50,000 rows?
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • How to remove a row from a rowset obtained via a CachedRowSetDataProvider

    I have a table filled from a database that it is bound to.
    I have the CachedRowSetDataProvider that supplies the rows.
    I want to remove a row from the result set and can't figure out how.
    There is a method ... removeRow(RowKey row).
    and there is a method ... getRowKey(java.lang.String rowId)
    How do I determine what the string id is for, say, row 3?
    thanks
    jim murray

    Thats the tutorial I am working with.
    My problem is that the statement tripDataProvider.refresh();
    executed when the person drop down changes doesn't seem to clearing the previous persons results.
    So I want to clear the rowset myself by deleting the rows individually.
    I can find a method to delete a row if I supply the RowKey.
    There is a method to get the rowkey if I know the RowID, which is a string.
    Unfortunately I dont know the string to use for an arbitrary row.
    There should be a simpler way to clear the data from a rowset.
    regards
    jim murray

  • How to remove a row from a jtable with DefaultTableModel

    Hi to all,]
    I want to remove a row from jtable. I am using DefaultTableModel.
    I have got some example but every example is given with AbstractTableModel
    Please help me...
    Thanks and Regards

    I want to remove a row from jtable. I am using DefaultTableModel.How do you program without reading the API.
    The name of the method you use is "removeRow". How hard is that to find by reading the API?
    Not only do you not bother to read the API, you don't even bother to read and respond to your old postings when you get help:
    http://forum.java.sun.com/thread.jspa?threadID=5137773
    http://forum.java.sun.com/thread.jspa?threadID=5134667
    http://forum.java.sun.com/thread.jspa?threadID=5131162
    Your on your own in the future.

  • How to work with [row selector] in report?

    I need to solve next problem: I have a report with users roles. (Id, Role Name, Checkbox).I have two tables in DB (List of roles [id, role name] and Configuration table [role_id,group_id]). According to table content I need manipulate with this form.
    1. Can I select rows depending of DB content?
    2. How to determined which rows I selected (fill DB according to selected rows)?
    Regards,
    Kostya

    Hi Plakode
    You can change the description of GL for sure. Because in my report it is like that.
    The row description in layout can be changed easily too as described by some one here.But if the row block is expandble ( which is my case ) and some GL's description needs to be changed.That's my chalange.The fact of the matter is currently it fetches some desc from skat not all and I am at loss to find out the other place holder for Row line item description.
    Thanks

  • How to avoid duplicated rows using the outer join

    Hi everybody,
    I have the following query:
    select a.usr_login, b.ugp_rolename, b.ugp_display_name from
    (select usr.usr_login, usr.usr_key, usg.ugp_key from usr,usg
    where usg.usr_key = usr.usr_key
    and usr.usr_login IN ('C01015','C01208')) a,
    (select ugp.ugp_key, ugp.ugp_display_name from ugp
    where ugp.ugp_rolename LIKE 'B-%') b
    where a.ugp_key = b.ugp_key (+)
    The first query 'a' has the following result:
    usr_login <space> usr_key <space> ugp_key
    C01015 <space> 49 <space> 565
    C01015 <space> 49 <space> 683
    C01015 <space> 49 <space> 685
    C01015 <space> 49 <space> 3
    C01208 <space> 257 <space> 3
    The usr_login on table usr is the primary key, and as you can see above, for each usr_login I can find one ore more ugp_key on the table usg.
    The query 'b' gives the list of all the usr_login's roles which have the name LIKE 'B-%' (it means '*Business Roles*'), and all the respective role's key (ugp_key)
    So, when I join the query 'a' with the query 'b', I expect to find for every usr_login the respective ugp_display_name (the Business Role name).
    Because the query 'b' contains ONLY the ugp_keys of the Business Roles, when I execute the complete query, this is the result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01015 <space> null <space> null
    C01015 <space> null <space> null
    C01208 <space> null <space> null
    As you can see, with the outer join I obtain the Business Name (ugp_display_name) for each occurrence (and I have 2 rows duplicated with 'null' for the usr_login C01015); This beacuse the query 'b' doesn't have the two ugp_keys 685 and 3.
    Instead I'd like to have the following result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01208 <space> null <space> null
    deleting ONLY the duplicated rows with null, when the usr_login has already at least one ugp_display_name not null.
    For example:
    1) The usr_login 'C01015' has 2 Business Roles (with ugp_key = 565 and 683) and other 2 not-Business Roles (with ugp_key = 685 and 3) --> I want to see ONLY the 2 records related to the Business Roles
    2) The usr_login 'C01208' has only one not-Business Roles (with ugp_key = 3) --> I want to see the record related to the not- Business Role
    Practically:
    1) When a usr_login has one or more Business Roles and other not-Business Roles , I'd like to see ONLY the records about the Business Roles (not the records with 'null','null')
    2) When a usr_login doesn't have Business Roles, I'd like to see the records about the same usr_login with 'null','null'
    This, because I need to show both usr_logins: with and without Business Roles.
    Anybody has any suggestions ? Any help will be appreciated.
    Thanks in advance for any help !!
    Alex

    Hi, Alex,
    So you want to display rows from a where either
    (1) the row has a match in b, or
    (2) no iwith the same usr_login has a match.
    Here's one way to do that:
    WITH     a     AS
         SELECT  usr.usr_login, usr.usr_key, usg.ugp_key
         FROM      usr
         ,     usg
         WHERE      usg.usr_key     = usr.usr_key
         AND     usr.usr_login     IN ('C01015','C01208')
    ,     b     AS
         SELECT  ugp.ugp_key, ugp.ugp_display_name
         FROM      ugp
         WHERE     ugp.ugp_rolename     LIKE 'B-%'
    ,     got_match_cnt     AS
         SELECT     a.usr_login, b.ugp_rolename, b.ugp_display_name
         ,     b.ugp_key
         ,     COUNT (b.ugp_key) OVER (PARTITION BY  a.usr_login)     AS match_cnt
         FROM      a
         ,     b
         WHERE     a.ugp_key     = b.ugp_key (+)
    SELECT     usr_login, ugp_rolename, ugp_display_name
    FROM     got_match_cnt
    WHERE     ugp_key          IS NOT NULL     -- Condition (1)
    OR     match_cnt     = 0              -- Condition (2)
    ;If b.ugp_rolename or b.ugp_display_name can not be NULL, then you could use that just as well as b.ugp_key for testing condition (1).
    By the way, you don't need sub-queries for a and b; you can do all the joins and all the filtering (except conditions (1) and (2)) in one query, but the sub-queries aren't hurting anything. If you find the separate sub-queries easier to understand, debug and maintain, then, by all means, keep them.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • How to remove the rows "1/Not Defined" in Layout BPS, using bps_wb

    Hi all! I have no much experience in SAP-BPS, but I have just created a layout using BPS and BPS WB.
    I have some trouble, and I expect you can help me. In the layout, I have a table with categories and subcategories, and I put hierarchies to view totals for each category. (and also, to collapse/expand for each category). But I have some problems, a row named "1/Not Defined" appears in each category. How can I do to remove this row??
    Thank you

    Hi Dirk,
    Thank you for you reply. I'm trying to do what you say, but an error message says:
    "Characteristic 'Category' does not contain the initial value in the selection". And In more detail says:
    "You set the indicator 'Planning in characteristic hierarchy' in planning layout 'SALES'. All characteristics of the lead column must contain the initial value in the selection in this mode. However, characteristic'Category' does not contain the initial value in the selection"
    So, I thinkk is not possible to exclude # value.
    Thanks,
    Xavi

  • How to Remove Checked Rows from JTable

    Hello All,
    I am currently working on a JTable, in which I have also include a JCheckbox. What i have to do is to remove all the Rows which are Checked in the JTable, when the 'Delete' button is clicked.
    Please tell me how i can this can be done, it will be of great help.
    Thanks,
    Shikha

    Loop through the TableModel, Use the getValueAt(...) method to find rows with a selected checkBox. Then use the removeRow(...) method of the DefaultTableModel to remove the row.
    Note: make sure your loop starts at the last row of the table and counts down to 0, to simplify the delete logic.

  • How to remove multiple rows from table

    Hi All,
    in my application iam using two tables,
    this is my code
    int selection = wdContext.nodeA().getLeadSelection();
    String num = wdContext.nodeA.geAAt(selection).getV_Num();
         for(int b=0;b<wdContext.nodeVn_Context().size();b++)
                                                      if(wdContext.nodeVn_Context().getVn_ContextElementAt(b).getVa_num().equalsIgnoreCase
                                                      (num))
                                                           wdContext.nodeVn_Context().removeElement(wdContext.nodeVn_Context().getVn_ContextElementAt(b));
    here Vn_Context is having 4 rows, i mean size of Vn_Context is 4. when i use this code to remove that 4 rows based on the condition, which i gave in if, its able to remove only one row, so how to remove those four rows,  is this code correct or not, please help me.

    Hi sushma,
    if you have 4 row then why should you give the condition for removing rrow..because when you gave condition the depends on your lead selection of getVa_num().so you will return perticullar row of getVa_num(). value of lad selection ..this would not match of other row value(getVa_num().so it will remove only that value of lead selection of getVa_num().
    better you remove taht condition.
    int selection = wdContext.nodeA().getLeadSelection();
    String num = wdContext.nodeA.geAAt(selection).getV_Num();
    for(int b=0;b<wdContext.nodeVn_Context().size();b++)
    //if(wdContext.nodeVn_Context().getVn_ContextElementAt(b).getVa_num().equalsIgnoreCase
    //(num))
    wdContext.nodeVn_Context().removeElement(wdContext.nodeVn_Context().getVn_ContextElementAt(b));
    no need to give the condition right now..
    if you want to remove multiselection row,i mean selected row for multiple then you select the row as per your  rows delete.
    for(int b=0;b<wdContext.nodeVn_Context().size();b++)
    if(lead==b || wdcontext.nodeVn_Context().isMultiselection(b){
    wdContext.nodeVn_Context().removeElement(wdContext.nodeVn_Context().getVn_ContextElementAt(b));
    this way you do solve your problem..
    thanks
    jjati

  • How to remove Cross Marks in the Report Column.of Cell..!!

    Hi Experts,
    I am facing an issue. I have included a Formula in the Cell  at Query Level.
    When i run the report in the Bex Analyzer.
    for that Formula column in the report there is some Cross Marks with Red Colour is displaying.
    But the Formula is added in the Cell area at Query designer level.
    Here user requirement is if there is no values calculated in the Formula column there should be no values has to be displayed.
    But unfortunately, here i am getting Cross Marks or Mulitply Symbol is displaying.
    My Question is Pls advice, How to remove those Red Cross Marks in the report of that Column.
    Thanks,
    SN.

    Hi,
    Whenever there is no value, by default, and SAP standard, it shows X mark.
    At reporting level you cannot do changes, as this change has to be done at global level. Hence make sure that if this has to be changes this will affect other reports too.
    If you still feel that X mark has to be displayed as blank, then you can do this in SPRO settings.
    SPRO->Display IMG->SAP Netweaver->Business Intelligence->Settings for Reporting and Analysis->and execute Presenting the numeric value in the Bex.
    Change the value:
    Does not exist : Remove X.
    Hope this solves your issue.
    Regards
    Jeeth

  • How to remove the Failure Chain from report header?

    I want to remove the Failure Chain from the report header. Failure chain displays only the 1st test which is failed rather than displaying all failed teststeps. so i want to remove this failure chain section from the report header.
    Please can anyone suggest me how to remove that. ?
    thanks & regards
    sameer kulkarni

    Hi Sameer,
    I am an Application Engineer at National Instruments and will try and help you with your enquiry.
    Am I right in thinking you want to be able to display all the failed steps displayed in the failure chain and you are using a Test Stand version 2 or later?
    As default Test Stand only reports the first test that failed in the failure chain. However, it is possible to expand the failure chain to show all failed steps. Below is included a KnowledgeBase article that will highlight the process for doing this:
    http://zone.ni.com/devzone/cda/tut/p/id/4563
    Please try the above steps and let me know if this solves your problem. If you require any further assistance please get in touch,
    Regards,
    Aaron. E
    Applications Engineer Team Lead
    National Instruments
    ni.com/support

Maybe you are looking for