BEX drilldown in rows removes records

We have a query that initially gives us four records.  When we Drilldown in the Rows for 0POSTXT (add the column 0POSTXT), two of the records disappear.  Any ideas?

Hi,
Is the Query built on MP or Cube.
First check is there any conditions on that particular char? Can you explain more on this.
Reg
Pra

Similar Messages

  • Removed Records: PivotTable report from /xl/pivotTables/pivotTable1.xml part (PivotTable view)

    I keep getting an error in Excel 2013 when using PowerPivot. Can someone please explain to me what this error means? I can't see that there is anything wrong with the underlying data, and the list of "removed data" is empty too...
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><logFileName>error085600_01.xml</logFileName><summary>Errors were detected in file 'E:\SkyDrive\Documents\Forex\Greenzone_Stats\Greenzone_2013_v2.xlsx'</summary><removedRecords summary="Following is a list of removed records:"><removedRecord>Removed Records: PivotTable report from /xl/pivotTables/pivotTable1.xml part (PivotTable view)</removedRecord></removedRecords></recoveryLog>
    TIA!
    Dennis

    Turns out it's a resource limitation in Excels chart rendering engine. If I filter the data model so that less rows are included in the PivotChart, the error goes away.
    Re
    Dennis

  • Slicers Removed from Template: "Removed Records: Slicer Cache from /xl/slicerCaches/slicerCache3.xml part (Slicer Cache)"

    Product: Microsoft Office Professional Plus 2010
    I have created a template file with a data table, 2 pivot tables, and each of those 2 pivot tables has a pivotchart and 2 slicers.  I have some code that updates the pivot table ranges.  When that occurs the pivot tables, pivotcharts and slicers
    all update successfully.  
    The problem comes after saving the .xlsm file.  Upon opening the file I receive a message saying "Excel found unreadable content in 'myTemplate.xlsm'. Do you want to recover the contents of this workbook? If you trus the source of this workbook,
    click Yes."
    I then get a list or removed records and the repair that was done.
    Removed Records: Slicer Cache from /xl/slicerCaches/slicerCache3.xml part (Slicer Cache)
    Removed Records: Slicer Cache from /xl/slicerCaches/slicerCache4.xml part (Slicer Cache)
    Removed Records: Slicers from /xl/slicers/slicer2.xml part (Slicer)
    Removed Records: Drawing from /xl/drawings/drawing4.xml part (Drawing shape)
    Repaired Records: Named range from /xl/workbook.xml part (Workbook)
    Most of the file is OK with the exception of my last worksheet.  The pivot table and chart get updated, but the slicers are gone.  Any idea why this is happening?  Can something be done to prevent this?
    Thanks,
    Rich

    Hi Rich,
    Based on your description, my understanding is that slicers are removed after you get the error messages and repair it. You wonder to know why slicers are lost after repairing, it seems that the corrupted file caused the issue.
    Please try to update the  pivot table ranges manually without macros. According to my test, the slicers won’t be lost without macros. Please test this method in your own environment. If it
    works fine after disable macros, please check your code.
    If my understanding is incorrect, could you upload a sample via OneDrive and be at bit more precise explain your problem, so that we can get more accurate solutions to this problem. I am glad to help and forward to your reply.
    Hope it’s helpful.
    Regards,

  • Insert multiple rows of records into the database

    The codes below allow me to insert a row of record into the database. How would I changed these to insert multiple rows at once? Please help!
    String sql = "INSERT INTO EMPLOYEES" +
    "(First_Name, Last_Name, Title, Phone) " +
    " VALUES " +
    PreparedStatement statement = conn.prepareStatement(sql);
    statement.setObject (1, First_Name);
    statement.setObject (2, Last_Name);
    statement.setObject (3, Title);
    statement.setObject (4, Phone);
    boolean returnValue = statement.execute();

    Hi mystiqueX,
    As wmolosho has suggested in his answer to this very same question that you also posted to the JavaServer Pages forum, you can create a batch of inserts and perform them using the "executeBatch()" method. I will use Craig's sample code to demonstrate:
    (Note that this code is untested!)
    conn.setAutoCommit(false);
    PreparedStatement statement = conn.prepareStatement(sql);
    // assume you have an array of objects here
    for (int i = 0; i < data.length; i++) {
      statement.setString(1, data<i>.getFirstName());
      statement.setString(2, data<i>.getLastName());
      statement.setString(3, data<i>.getTitle());
      statement.setString(4, data<i>.getPhone());
      statement.addBatch();
    statement.executeBatch();
    conn.commit();If you are not familiar with it, allow me to suggest looking at the Making Batch Updates lesson on the Java Tutorial.
    Hope it helps.
    Good Luck,
    Avi.

  • When-Remove-Record, does not update header field

    i have master-detail form and in that there is a DB field eh_amount, which takes it value from
    the computed non-db summary field m_amount
    my E_head
    eh_code
    eh_no
    eh_amount
    my E_detail (tabular with 5 records displayed)
    ed_eh_code
    ed_eh_no
    ed_amount
    m_amount <---summary column (summing ed_amount)
    whenever i enter/update ed_amount , m_amount get computed properly.
    i have WVI trigger written where i store eh_amount := m_amount
    i have also written When-remove-record on e_datail block, where i again re-initialize
    eh_amount := m_amount
    the detail record gets deleted and m_amount gets updated,
    but the header eh_amount does not show the updated value of m_amount.
    Kindly suggest to me as to where the change has to happen.

    Hi Craig..
    I am using form6i, db 10g.
    I am not doing summation myself. My m_amount field is calculated field set at design time.
    Summary detail block is E_detail and summary field is ed_amount.
    Only after saving form, the new value for eh_amount is seen.
    what i want is eh_amount should be seen updated, if while entering i delete any detail record.
    in when-remove-record i am storing m_amount in eh_amount, but the new value of eh_amount
    is visible only after saving the form and not when any record is deleted.

  • While Checking In " Cannot remove record because it has links"

    Hi All,
    We have an scenario while checking In MDM records in Data manager showing the following error " Cannot remove record because it has links".
    There are 2 main tables Table A and B, both are look up main to each other.
    Record 1 from Table A is linked with 5 records in Table B and one of the record from Table B is linked to Record 1 of Table A
    All the Records from Table B is checked In. Now am Check-out Record 1 from Table A and trying to Check-In back, while performing the same am getting the following error  " Cannot remove record because it has links".
    Is this work as per the Look up main design or am I missing anything. Help appreciated.
    thanks,
    <ar>

    Hi Alex,
    Before removing record you need to remove links for those records. By this I mean you must have a field in Table A which is lookup to Table B and vice-versa. So firstly delete this field value which is a sort of relationship between these two tables and afterward only try to delete/remove record.
    Regards,
    Mandeep Saini

  • To add new row to record the stability sample.

    dear all
                    There is new requirement to add new row to record the stabilty sample in the inspection lot stock tabpage of  QA11 usage decision. As we have configured sample usage row to record the sample which we take for testing purpose 
    and we use to reserves row to record the control samples of the batches which we sell in the domestic and export market.
    I require the solution in this context.
    thanks
    with regards
    Harish Ramachandran

    Thanks for all your help. My problem was that I was using 2 lists to update the table. The problem solve!!!!
    int modelIndex = listWhenScrollStop.size () - 1 - aRow;
    if (modelIndex >= 0) {
    return listWhenScrollStop.get (listWhenScrollStop.size () - 1 - aRow);

  • Remove Record

    I am using Developer 6.0.
    I am using the Default menu, when I click the REMOVE RECORD icon I want the user to be prompted with a Message
    'Do you want to Delete this Record' YES NO options.
    If the user selects button 1, delete the record
    else keep the record, do not delete.
    I have used pre-delete Triggers on block level, it does not fire, when I use the when-remove-record it does fire but still the record is delete(which I don't want to happen)
    Thank you to all those who will reply.
    Habeeb

    Please try reposting this forum in the iDS forum.

  • Row.remove() problem

    I have problem that sometimes remove() method doesn't work (I tried viewobject.removeCurrentRow() with the same result).
    When I pass following steps:
    1) 2 rows are removed:
    vo.executeQuery();
    while ((row = vo.first()) != null) row.remove();
    2) 1 row is inserted:
    row = vo.createRow();
    row.setAttribute(attr, value);
    vo.insertRow(row);
    3) write out contents of vo (it is right - 1 inserted):
    vo.executeQuery();
    vo.reset();
    while ((row = vo.next()) != null) System.out.println(row.getSomething());
    4) commit()
    5) write out contents of vo (it is sometimes right - 1 inserted row, simetimes bad - 2 rows (1 inserted and 1 removed)):
    vo.executeQuery();
    vo.reset();
    while ((row = vo.next()) != null) System.out.println(row.getSomething());
    (6) if I get values directly from database (sqlplus) - I can see the same rows I see from point 5).)
    So the problem occures sometimes inside commit() - sometimes removed row are not removed inside database!
    My VO is second detail - master1->master2->myvo.
    My SQL dialect is SQL92 and type mapping Oracle. I use JDeveloper 9.0.5.2
    Thank you very much for any help...
    Jan

    I found that if I change SQL dialect to Oracle, then everything os OK.
    It seems there is a bug while SLQ92 dialect is set...
    Anybody has similar experiencies?
    Jan

  • Bex Query - Display Rows, even when no database record exists?

    Hi everybody,
    im creating a Query with Bex Query designer and have a requirement which i cant cope with atm, so i hope you can help me.
    I made a small screenshot with excel to explain how the query should be:
    [http://yfrog.com/ncqueryj]
    So, the requirement now is, even when for example there are no records for company A at all, the rows A-A1 to A-A4 should still be displayed in the query simply with no values.
    The Accounts are already in an row structure, but it isnt an option to take the company into the row structure, as this would mean we have to do several thousands selections for one query and there is more then one query to do, with each time different accounts, so the row structure wouldnt be reusable too.
    Do you know any way to achieve this without adding the company to the row structure?
    I hope my explanation was comprehensible, if you still have any question just ask.
    Thanks in advance
    Noody

    Hi Harry,
    thanks for the answer, it was already very helpful, but my problem still isnt completely solved because actually they dont want to get all companies that exists, but only certain companies which then should always be displayed, even without records.
    So for example they have company A, B, C and D, they always want to have A, B and C, even without values, but never D, even when D has values.
    The companies they want to see in the Query are in an Hierarchy which is selected through filter, so actually they dont want all existing companies from master data but all existing companies from an hierarchy.
    Regards
    Noody

  • One-to-many selfjoin removing records with the same ranking or with a substitute

    Sorry for my bad choice of discussion title, feel free to suggest me a more pertinent one
    I've rewritten post for clarity and following the FAQ.
    DB Version
    I'm using Oracle Enterprise 10g 10.2.0.1.0 64bit
    Tables involved
    CREATE TABLE wrhwr (
    wr_id INTEGER PRIMARY KEY,
    eq_id VARCHAR2(50) NULL,
    date_completed DATE NULL,
    status VARCHAR2(20) NOT NULL,
    pmp_id VARCHAR2(20) NOT NULL,
    description VARCHAR2(20) NULL);
    Sample data
    INSERT into wrhwr  VALUES (1,'MI-EXT-0001',date'2013-07-16','Com','VER-EXC','Revisione')
    INSERT into wrhwr VALUES  (2,'MI-EXT-0001',date'2013-07-01','Com','VER-EXC','Verifica')
    INSERT into wrhwr  VALUES (3,'MI-EXT-0001',date'2013-06-15','Com','VER-EXC','Revisione')
    INSERT into wrhwr  VALUES (4,'MI-EXT-0001',date'2013-06-25','Com','VER-EXC','Verifica')
    INSERT into wrhwr  VALUES (5,'MI-EXT-0001',date'2013-04-14','Com','VER-EXC','Revisione')
    INSERT into wrhwr  VALUES (6,'MI-EXT-0001',date'2013-04-30','Com','VER-EXC','Verifica')
    INSERT into wrhwr  VALUES (7,'MI-EXT-0001',date'2013-03-14','Com','VER-EXC','Collaudo')
    Query used
    SELECT *
      FROM (SELECT eq_id,
                   date_completed,
                   RANK ()
                   OVER (PARTITION BY eq_id
                         ORDER BY date_completed DESC NULLS LAST)
                      rn
              FROM wrhwr
             WHERE     status != 'S'
                   AND pmp_id LIKE 'VER-EX%'
                   AND description LIKE '%Verifica%') table1,
           (SELECT eq_id,
                   date_completed,      
                   RANK ()
                   OVER (PARTITION BY eq_id
                         ORDER BY date_completed DESC NULLS LAST)
                      rn
              FROM wrhwr
             WHERE     status != 'S'
                   AND pmp_id LIKE 'VER-EX%'
                   AND description LIKE '%Revisione%') table2,
           (SELECT eq_id,
                   date_completed,           
                   RANK ()
                   OVER (PARTITION BY eq_id
                         ORDER BY date_completed DESC NULLS LAST)
                      rn
              FROM wrhwr
             WHERE     status != 'S'
                   AND pmp_id LIKE 'VER-EX%'
                   AND description LIKE '%Collaudo%') table3
    WHERE     table1.eq_id = table3.eq_id
           AND table2.eq_id = table3.eq_id
           AND table1.eq_id = table2.eq_id
    Purpose of the above query is to selfjoin wrhwr table 3 times in order to have for every row:
    eq_id;
    completition date of a work request of type Verifica for this eq_id (table1 alias);
    completition date of a wr of type Revisione (table2 alias) for this eq_id;
    completition date of a wr of type Collaudo (table3 alias) for this eq_id;
    A distinct eq_id:
    can have many work requests (wrhwr records) with different completition dates or without completition date (date_completed column NULL);
    in a date range can have all the types of wrhwr ('Verifica', 'Revisione', 'Collaudo') or some of them (ex. Verifica, Revisione but not Collaudo, Collaudo but not Verifica and Revisione, etc.);
    substrings in description shouldn't repeat;
    (eq_id,date_completed) aren't unique but (eq_id,date_completed,description,pmp_id) should be unique;
    Expected output
    Using sample data above I expect this output:
    eq_id,table1.date_completed,table2.date_completed,table3.date_completed
    MI-EXT-001,2013-07-01,2013-07-16,2013-03-14 <--- for this eq_id table3 doesn't have 3 rows but only 1. I want to repeat the most ranked value of table3 for every result row
    MI-EXT-001,2013-07-01,2013-06-15,2013-03-14 <-- I don't wanna this row because table1 and table2 have both 3 rows so the match must be in rank terms (1st,1st) (2nd,2nd) (3rd,3rd)
    MI-EXT-001,2013-06-25,2013-06-15,2013-03-14 <-- 2nd rank of table1 joins 2nd rank of table2
    MI-EXT-001,2013-04-30,2013-04-14,2013-03-14 <-- 1st rank table1, 1st rank table2, 1st rank table3
    In vector style syntax, expected tuple output must be:
    ix = i-th ranking of tableX
    (i1, i2, i3) IF EXISTS an i-th ranking row in every table
    ELSE
    (i1, b, b)
    where b is the first available lower ranking of table2 OR NULL if there isn't any row  of lower ranking.
    Any clues?
    With the query I'm unable to remove "spurius" rows.
    I'm thinking at a solution based on analytic functions like LAG() and LEAD(), using ROLLUP() or CUBE(), using nested query but I would find a solution elegant, easy, fast and easy to maintain.
    Thanks

    FrankKulash ha scritto:
    About duplicate dates: I was most interested in what you wanted when 2 (or more) rows with the same eq_id and row type (e.g. 'Collaudo') had exactly the same completed_date.
    In the new results, did you get the columns mixed up?  It looks like the row with eq_id='MI-EXT-0002' has 'Collaudo' in the desciption, but the date appears in the verifica column of the output, not the collaudo  column.
    Why don't you want 'MI-EXT-0001' in the results?  Is it realted to the non-unique date?
    For all optimization questions, see the forum FAQ:https://forums.oracle.com/message/9362003
    If you can explain what you need to do in the view (and post some sample data and output as examples) then someone might help you find a better way to do it.
    It looks like there's a lot of repetition in the code.  Whatever you're trying to do, I suspect there's a simpler, more efficient way to do it.
    About Duplicate dates: query must show ONLY one date_completed and ignore duplicated. Those records are "bad data". You can't have 2 collaudos with the same date completed.
    Collaudo stands for equipment check. A craftperson does an equipment check once a day and, with a mobile app, update the work request related to equipment and procedure of preventive maintenance, so is impossibile that complete more than one check (Collaudo) in a day, by design.
    In the new results, it's my fault: during digitation I've swapped columns
    With "I don't want 'MI-EXT-0001'" I mean: "I don't want to show AGAIN MI-EXT-0001. In the previous post was correct the output including MI-EXT-0001.
    Regarding optimisation...
    repetition of
    LAST_VALUE ( 
                            MIN (CASE WHEN r_type = THEN column_name END) IGNORE NULLS) 
                         OVER (PARTITION BY eq_id ORDER BY r_num)  AS alias_column_name
    is because I don't know another feasible way to have all columns needed of table wrhwr in main query, maintaining the correct order. So i get them in got_r_type and propagate them in all the subquery.
    In main query I join eq table (which contains all the information about a specific equipment) with "correct" dates and columns of wrhwr table.
    I filter eq table for the specific equipment standard (eq_std column).
    efm_eq_tablet table and where clause
    AND e.eq_id = e2.eq_id 
              AND e2.is_active = 'S'; 
    means: show only rows in eq table that have an equal row in efm_eq_tablet table AND are active (represented by 'S' value in is_active column).
    About the tables v2, r2 and c2
              (SELECT doc_data, doc_data_rinnovo, eq_id 
                 FROM efm_doc_rep edr 
                WHERE edr.csi_id = '1011503' AND edr.doc_validita_temp = 'LIM') v2, 
              (SELECT doc_data, doc_data_rinnovo, eq_id 
                 FROM efm_doc_rep edr 
                WHERE     eq_id = edr.eq_id 
                      AND edr.csi_id = '1011504' 
                      AND edr.doc_validita_temp = 'LIM') r2, 
              (SELECT doc_data, doc_data_rinnovo, eq_id 
                 FROM efm_doc_rep edr 
                WHERE     edr.csi_id IN ('1011505', '1011507') 
                      AND edr.doc_validita_temp = 'LIM' 
                      AND adempimento_ok = 'SI') c2, 
    Those tables contains "alternate" dates of completition to be used when there isn't any wrhwr row for an eq_id OR when all date_completed are NULL.
    NVL() and NVL2() functions are used in main query in order to impletement this.
    The CASE/WHEN blocks inside main query implements the behavior of selecting the correct date based of the above conditions.

  • Removing Record

    String login="",title="",subject="";
              int co_id=0,i,watch_id=0,remove=0;
              String aa=req.getParameter("remove");
              if(aa !=null){
              remove=Integer.parseInt(aa);
              String sql="delete from watchlist where watch_id="+remove;
              PreparedStatement ps=cnn.prepareStatement(sql);
              ps.executeUpdate();
              cnn.commit();
              ps.close();
              }else{
              if(login !=null){
              login=req.getParameter("login");
              String sql="select co_id from co_login where login='"+login+"'";
              PreparedStatement ps=cnn.prepareStatement(sql);
              rs=ps.executeQuery();
              if(rs.next()){
              co_id=rs.getInt(1);
              out.println("<table border=0 width=100%><tr><td><table border=0 cellspacing=9 cellpadding=1 align=center>"+
              "<tr bgcolor=#E7E1E1><td><font color=blue><b>Title</b></font></td><td><font color=blue><b>Subject</b></font></td><td><font color=blue><b>Action</b></font></td></tr>");
              String sql5="select watch_id,title,subject from watchlist where co_id="+co_id;
              PreparedStatement ps5=cnn.prepareStatement(sql5);
              rs=ps5.executeQuery();
              while(rs.next()){
              watch_id=rs.getInt(1);
              title=rs.getString(2);
              subject=rs.getString(3);
              out.println("<tr><td>"+title+"</td><td>"+subject+"</td><td>"+
              "<a href=http://localhost:5050/examples/servlet/viewFavorite?remove="+watch_id+">[ Remove ]</a>     "+
              "<a href=javascript:history.back()>[ Back ]</a></td></tr>");
              ps.close();
              ps5.close();
    }I am trying to delete a record and to show the same page. it delete the record but blank page appears. can you help me
    TIA

    cotton.m knows me - I'm one of those guys who freaks
    out. 8)
    I might feel a little better if this code was in a
    JSP. This is example is far worse. It looks like a
    snippet of servlet code that actually writes
    hardcoded HTML to the servlet output stream.
    But wait, it gets worse.
    S/he's even hardcoded page navigation into the
    generated HTML. If the navigation changes, the app
    has to be recompiled.
    Your JDBC is bad; your servlet code is worse. If you
    continue this way, you'll live to regret it in
    maintainence.
    Learn JSTL. And MVC-2. There are a million
    frameworks for web MVC out there. You can even roll
    your own easily if you don't want to depend on
    someone else. (I did once, for education's sake.)
    Just don't do this. It's been discredited ever
    since the earliest invention of the servlet.
    %duffymo: know what you say about this code??
    String subject="",message="",offer_id="",coid="";
              int offerid=0,co_id=0;
              message=req.getParameter("message");
              offer_id=req.getParameter("offerid");
              coid=req.getParameter("co_id");
              if(offer_id !=null && coid !=null){
              offerid=Integer.parseInt(offer_id);
              co_id=Integer.parseInt(coid);
    String sql="select subject from oi where oi_id="+offerid;
    PreparedStatement ps=cnn.prepareStatement(sql);
              rs=ps.executeQuery();
              if(rs.next()){
              subject=rs.getString(1);
    out.println("<center><br><b>Subject</b><font color=olive><b> "+subject+"</b></font>");
    out.println("<form action='http://localhost:5050/examples/servlet/reply'>"+
    "<textarea class=khan rows=18 cols=70 name=message></textarea><br>"+
    "<input type=button class=khan onClick='javascript:history.back()' value=' Back '>"+
    "<input type=submit class=khan  value=' Send '></form>");
         if(message !=null){
              String sql5="insert into oi_reply(oi_id,co_id,message) values("+offerid+","+co_id+",'"+message+"')";
              PreparedStatement ps5=cnn.prepareStatement(sql5);
              ps5.executeUpdate();
              res.sendRedirect("http://localhost:5050/examples/servlet/displayOffers");
         }

  • 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

  • Error Prompted after add and remove record immediately

    Dear ALL
    I caught the problem as follows:
    1. Add a new Records at a popup.
    2. Save and Commit and Refresh the page
    3. Remove that newly added record
    4. Error prompted about null primary key and that record cannot be removed
    Alternatively, I move out to another page after save and then back to the same page, then the delete process is OK. I wonder why the error comes. Need your kind advise.
    Regards
    Trewina

    One possibility is that in step 3 now row is marked as current row.
    How do you delete the row? Select it in a table?
    Timo

  • Removing records where totals match

    Hi,
    i have the folloiwng table:
    what I need to do is delete the "FM" record that has the same policy number and where the total Premium matches the non "FM" record premium.
    So in the above example, for Policy 00HG125, i would want to remove the "FM" row and keep the "Misc Lines" row since the totals match.  For policy 00LQ176, i want to keep all rows.  For policy UK070523, i would want to remove the
    "FM" row since they have another row that is "Cargo" but matches the total premium of the "FM" row.
    thanks

    Test this against your whole dataset, but this is a way to do it.
    create table #records
    policyNumTxt nvarchar(20),
    productlinegroup nvarchar(20),
    premium nvarchar(20)
    insert into #records (policyNumTxt, productlinegroup, premium) values ('00HG215', 'FM', '835')
    insert into #records (policyNumTxt, productlinegroup, premium) values ('00HG215', 'Misc Lines', '835')
    insert into #records (policyNumTxt, productlinegroup, premium) values ('00LQ176', 'FM', '5464365')
    insert into #records (policyNumTxt, productlinegroup, premium) values ('00LQ176', 'FM', '-791845')
    insert into #records (policyNumTxt, productlinegroup, premium) values ('00LQ176', 'FM', '-326396')
    insert into #records (policyNumTxt, productlinegroup, premium) values ('UK07523', 'Cargo', '-50019')
    insert into #records (policyNumTxt, productlinegroup, premium) values ('UK07523', 'FM', '-50019')
    select *
    from #records r
    inner join 
    select 
    row_number() over (partition by policynumtxt, premium order by productlinegroup) as row,
    policynumtxt,
    productlinegroup,
    premium
    from #records
    )t
    on t.policynumtxt = r.policyNumTxt
    and t.premium = r.premium
    and t.row > 1
    where r.productlinegroup = 'FM'

Maybe you are looking for

  • Mouse not working in open applications

    Mouse not working properly on menu bar in certain applications: Text Edit, Calendar, Notes.  You can hover over the  red X but it will not close the application.  Also unable to click on a text form and drop the cursor in to edit or copy text.  Can o

  • How can I active my iPhone 4?

    I bought an iPhone 4 in VietNam along time ago. I don't know where was it sold and which carrier is it belonged. So i can't active it. Anyone tells me which carrier is it belonged, please. Its model is MC319LL/A (I tried to active with an AT&T sim bu

  • How do i stop new tabs that are loading from automatically switching from current tab

    how do i stop safari from loading a tab i've clicked on previously from automatically switching to it when i'm busy on another one? i want to stay on the other tab until new tab is finished loading..

  • PO - Schedule Date

    HI all I have one query regading Schedule date (Purchase order). While creating PO , CUSTOMER fills the schedule Date for ITEMS to be delivered. Now when Vendor Sends confirmation,He states DELIVERY date in confirmation. How many days difference is p

  • Can't render H264 from Render Cue!!!!!

    I've got a 1920 x 1080 24fps comp and I'm trying to render it with the render cue as a H.264 1920 X 1080 24fps file and I get this every time: After Effects: AEGP Plugin Media IO Plugin There is a mismatch between Output Module settings and Transcode