<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Removing duplicate records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-duplicate-records/m-p/1571927#M741424</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to load data with some preceding load fields. this is working fine but when i use it again to remove duplicate records records based on single column values. it is not working properly.&lt;/P&gt;&lt;P&gt;What i need is duplicate records should be moved based upon the values in ConcatField column only. With my current code it is removing duplicates by grouping based on column Risk Number.&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;Peer_Review:&lt;BR /&gt;load *, if(Not IsNull([Pre-Bind Peer Review Date])or not IsNull([BGL Approval Date])or not IsNull([Pre-Bind Approval Date]) or not isnull([Pre-Bind Peer Review Note]) or not IsNull([Retrospective Peer Review Exempt])&lt;BR /&gt;or not IsNull([CUO pre-bind approval Date]) or not IsNull([Quote Peer Review Date]), 'Reviewed','Not-Reviewd') as Review_Check,&lt;BR /&gt;month(IncptDate) as MonthD,&lt;BR /&gt;year(IncptDate) as YearD,&lt;BR /&gt;MonthEnd(IncptDate) as InceptnDateEnd,&lt;BR /&gt;MonthEnd([Pre-Bind Peer Review Date]) as PBPRDate,&lt;BR /&gt;MonthEnd([BGL Approval Date]) as BGLDate,&lt;BR /&gt;MonthEnd([Pre-Bind Approval Date]) as PBADate,&lt;BR /&gt;MonthEnd([Pre-Bind Peer Review Note]) as PBPNDate,&lt;BR /&gt;MonthEnd([Retrospective Peer Review Exempt]) as RPREDate,&lt;BR /&gt;MonthEnd([CUO pre-bind approval Date]) as CPBADate,&lt;BR /&gt;MonthEnd([Quote Peer Review Date]) as QPRDate,&lt;BR /&gt;[Risk Number]&amp;amp;'/'&amp;amp;DeclnNmbr as ConcatField;&lt;/P&gt;&lt;P&gt;LOAD [Risk Number],&lt;BR /&gt;BusinessGroup,&lt;BR /&gt;[EDW Hub Name],&lt;BR /&gt;[Accounting Behaviour Code],&lt;BR /&gt;CostCentre,&lt;BR /&gt;OrigOffName,&lt;BR /&gt;UwtgYearAcct,&lt;BR /&gt;RiskCode,&lt;BR /&gt;[Insured Else Reinsured],&lt;BR /&gt;UWName,&lt;BR /&gt;UwtgRef,&lt;BR /&gt;IncptDate,&lt;BR /&gt;[Incpt Month],&lt;BR /&gt;[Pre-Bind Peer Review Date],&lt;BR /&gt;[BGL Approval Date],&lt;BR /&gt;[Pre-Bind Approval Date],&lt;BR /&gt;[Pre-Bind Peer Review Note],&lt;BR /&gt;[Post Bind Peer Review Date],&lt;BR /&gt;[Retrospective Peer Review Exempt],&lt;BR /&gt;[CUO pre-bind approval Date],&lt;BR /&gt;[Quote Peer Review Date],&lt;BR /&gt;PromisedDate,&lt;BR /&gt;QuotedDate,&lt;BR /&gt;WrtnDate,&lt;BR /&gt;[Risk Policy Type],&lt;BR /&gt;[Section Policy Type],&lt;BR /&gt;[Policy Type],&lt;BR /&gt;NewRenwl,&lt;BR /&gt;[Policy Duration],&lt;BR /&gt;SgndStatus,&lt;BR /&gt;DeclnNmbr,&lt;BR /&gt;[Conv NA WEPI],&lt;BR /&gt;[Conv LimitExposure],&lt;BR /&gt;ActLine,&lt;BR /&gt;RnwlPcntChnge,&lt;BR /&gt;[Expected ULR],&lt;BR /&gt;PremAdeqPcnt&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\A110506\Desktop\Top Hat\Peer Review\Cognos report peer review.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 1 lines, table is [Report 1_2])&lt;BR /&gt;where WildMatch(CostCentre,'FX','FE','FC','NB','NE','NN','NR','NF','CE','CU','CL','CW')&lt;BR /&gt;and WildMatch(OrigOffName,'CUAL/CICL LONDON','CATLIN BIRMINGHAM','CRSL LONDON')&lt;BR /&gt;and WildMatch([Incpt Month],'Jan','Feb','Mar');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Removing duplicates&lt;BR /&gt;Peer_Review_Inter:&lt;BR /&gt;//load *, AutoNumber(ConcatField) as ID;&lt;BR /&gt;load distinct ConcatField,&lt;BR /&gt;[Review_Check],MonthD,YearD,InceptnDateEnd,PBPRDate,BGLDate,PBADate,PBPNDate,RPREDate, CPBADate,QPRDate,&lt;BR /&gt;[Risk Number],&lt;BR /&gt;BusinessGroup,&lt;BR /&gt;[EDW Hub Name],&lt;BR /&gt;[Accounting Behaviour Code],&lt;BR /&gt;CostCentre,&lt;BR /&gt;OrigOffName,&lt;BR /&gt;UwtgYearAcct,&lt;BR /&gt;RiskCode,&lt;BR /&gt;[Insured Else Reinsured],&lt;BR /&gt;UWName,&lt;BR /&gt;UwtgRef,&lt;BR /&gt;IncptDate,&lt;BR /&gt;[Incpt Month],&lt;BR /&gt;[Pre-Bind Peer Review Date],&lt;BR /&gt;[BGL Approval Date],&lt;BR /&gt;[Pre-Bind Approval Date],&lt;BR /&gt;[Pre-Bind Peer Review Note],&lt;BR /&gt;[Post Bind Peer Review Date],&lt;BR /&gt;[Retrospective Peer Review Exempt],&lt;BR /&gt;[CUO pre-bind approval Date],&lt;BR /&gt;[Quote Peer Review Date],&lt;BR /&gt;PromisedDate,&lt;BR /&gt;QuotedDate,&lt;BR /&gt;WrtnDate,&lt;BR /&gt;[Risk Policy Type] as RPT,&lt;BR /&gt;[Section Policy Type],&lt;BR /&gt;[Policy Type],&lt;BR /&gt;NewRenwl,&lt;BR /&gt;[Policy Duration],&lt;BR /&gt;SgndStatus,&lt;BR /&gt;DeclnNmbr,&lt;BR /&gt;[Conv NA WEPI],&lt;BR /&gt;[Conv LimitExposure],&lt;BR /&gt;ActLine,&lt;BR /&gt;RnwlPcntChnge,&lt;BR /&gt;[Expected ULR],&lt;BR /&gt;PremAdeqPcnt&lt;/P&gt;&lt;P&gt;resident Peer_Review ;&lt;/P&gt;&lt;P&gt;drop Table Peer_Review;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>sagar_vij99</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Removing duplicate records</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicate-records/m-p/1571927#M741424</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to load data with some preceding load fields. this is working fine but when i use it again to remove duplicate records records based on single column values. it is not working properly.&lt;/P&gt;&lt;P&gt;What i need is duplicate records should be moved based upon the values in ConcatField column only. With my current code it is removing duplicates by grouping based on column Risk Number.&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;Peer_Review:&lt;BR /&gt;load *, if(Not IsNull([Pre-Bind Peer Review Date])or not IsNull([BGL Approval Date])or not IsNull([Pre-Bind Approval Date]) or not isnull([Pre-Bind Peer Review Note]) or not IsNull([Retrospective Peer Review Exempt])&lt;BR /&gt;or not IsNull([CUO pre-bind approval Date]) or not IsNull([Quote Peer Review Date]), 'Reviewed','Not-Reviewd') as Review_Check,&lt;BR /&gt;month(IncptDate) as MonthD,&lt;BR /&gt;year(IncptDate) as YearD,&lt;BR /&gt;MonthEnd(IncptDate) as InceptnDateEnd,&lt;BR /&gt;MonthEnd([Pre-Bind Peer Review Date]) as PBPRDate,&lt;BR /&gt;MonthEnd([BGL Approval Date]) as BGLDate,&lt;BR /&gt;MonthEnd([Pre-Bind Approval Date]) as PBADate,&lt;BR /&gt;MonthEnd([Pre-Bind Peer Review Note]) as PBPNDate,&lt;BR /&gt;MonthEnd([Retrospective Peer Review Exempt]) as RPREDate,&lt;BR /&gt;MonthEnd([CUO pre-bind approval Date]) as CPBADate,&lt;BR /&gt;MonthEnd([Quote Peer Review Date]) as QPRDate,&lt;BR /&gt;[Risk Number]&amp;amp;'/'&amp;amp;DeclnNmbr as ConcatField;&lt;/P&gt;&lt;P&gt;LOAD [Risk Number],&lt;BR /&gt;BusinessGroup,&lt;BR /&gt;[EDW Hub Name],&lt;BR /&gt;[Accounting Behaviour Code],&lt;BR /&gt;CostCentre,&lt;BR /&gt;OrigOffName,&lt;BR /&gt;UwtgYearAcct,&lt;BR /&gt;RiskCode,&lt;BR /&gt;[Insured Else Reinsured],&lt;BR /&gt;UWName,&lt;BR /&gt;UwtgRef,&lt;BR /&gt;IncptDate,&lt;BR /&gt;[Incpt Month],&lt;BR /&gt;[Pre-Bind Peer Review Date],&lt;BR /&gt;[BGL Approval Date],&lt;BR /&gt;[Pre-Bind Approval Date],&lt;BR /&gt;[Pre-Bind Peer Review Note],&lt;BR /&gt;[Post Bind Peer Review Date],&lt;BR /&gt;[Retrospective Peer Review Exempt],&lt;BR /&gt;[CUO pre-bind approval Date],&lt;BR /&gt;[Quote Peer Review Date],&lt;BR /&gt;PromisedDate,&lt;BR /&gt;QuotedDate,&lt;BR /&gt;WrtnDate,&lt;BR /&gt;[Risk Policy Type],&lt;BR /&gt;[Section Policy Type],&lt;BR /&gt;[Policy Type],&lt;BR /&gt;NewRenwl,&lt;BR /&gt;[Policy Duration],&lt;BR /&gt;SgndStatus,&lt;BR /&gt;DeclnNmbr,&lt;BR /&gt;[Conv NA WEPI],&lt;BR /&gt;[Conv LimitExposure],&lt;BR /&gt;ActLine,&lt;BR /&gt;RnwlPcntChnge,&lt;BR /&gt;[Expected ULR],&lt;BR /&gt;PremAdeqPcnt&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\A110506\Desktop\Top Hat\Peer Review\Cognos report peer review.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 1 lines, table is [Report 1_2])&lt;BR /&gt;where WildMatch(CostCentre,'FX','FE','FC','NB','NE','NN','NR','NF','CE','CU','CL','CW')&lt;BR /&gt;and WildMatch(OrigOffName,'CUAL/CICL LONDON','CATLIN BIRMINGHAM','CRSL LONDON')&lt;BR /&gt;and WildMatch([Incpt Month],'Jan','Feb','Mar');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Removing duplicates&lt;BR /&gt;Peer_Review_Inter:&lt;BR /&gt;//load *, AutoNumber(ConcatField) as ID;&lt;BR /&gt;load distinct ConcatField,&lt;BR /&gt;[Review_Check],MonthD,YearD,InceptnDateEnd,PBPRDate,BGLDate,PBADate,PBPNDate,RPREDate, CPBADate,QPRDate,&lt;BR /&gt;[Risk Number],&lt;BR /&gt;BusinessGroup,&lt;BR /&gt;[EDW Hub Name],&lt;BR /&gt;[Accounting Behaviour Code],&lt;BR /&gt;CostCentre,&lt;BR /&gt;OrigOffName,&lt;BR /&gt;UwtgYearAcct,&lt;BR /&gt;RiskCode,&lt;BR /&gt;[Insured Else Reinsured],&lt;BR /&gt;UWName,&lt;BR /&gt;UwtgRef,&lt;BR /&gt;IncptDate,&lt;BR /&gt;[Incpt Month],&lt;BR /&gt;[Pre-Bind Peer Review Date],&lt;BR /&gt;[BGL Approval Date],&lt;BR /&gt;[Pre-Bind Approval Date],&lt;BR /&gt;[Pre-Bind Peer Review Note],&lt;BR /&gt;[Post Bind Peer Review Date],&lt;BR /&gt;[Retrospective Peer Review Exempt],&lt;BR /&gt;[CUO pre-bind approval Date],&lt;BR /&gt;[Quote Peer Review Date],&lt;BR /&gt;PromisedDate,&lt;BR /&gt;QuotedDate,&lt;BR /&gt;WrtnDate,&lt;BR /&gt;[Risk Policy Type] as RPT,&lt;BR /&gt;[Section Policy Type],&lt;BR /&gt;[Policy Type],&lt;BR /&gt;NewRenwl,&lt;BR /&gt;[Policy Duration],&lt;BR /&gt;SgndStatus,&lt;BR /&gt;DeclnNmbr,&lt;BR /&gt;[Conv NA WEPI],&lt;BR /&gt;[Conv LimitExposure],&lt;BR /&gt;ActLine,&lt;BR /&gt;RnwlPcntChnge,&lt;BR /&gt;[Expected ULR],&lt;BR /&gt;PremAdeqPcnt&lt;/P&gt;&lt;P&gt;resident Peer_Review ;&lt;/P&gt;&lt;P&gt;drop Table Peer_Review;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicate-records/m-p/1571927#M741424</guid>
      <dc:creator>sagar_vij99</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicate records</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-duplicate-records/m-p/1572890#M741425</link>
      <description>If you need field ConcatField unique, them you should do some aggregation.&lt;BR /&gt;&lt;BR /&gt;What is your aggregation condition? MinString(ConcatField) ?&lt;BR /&gt;&lt;BR /&gt;Load&lt;BR /&gt;MinString(ConcatField) as ConcatField,&lt;BR /&gt;Field1,&lt;BR /&gt;Field2,&lt;BR /&gt;Field3&lt;BR /&gt;...&lt;BR /&gt;Resident TABLE&lt;BR /&gt;Group By&lt;BR /&gt;Field1,&lt;BR /&gt;Field2,&lt;BR /&gt;Field3&lt;BR /&gt;...</description>
      <pubDate>Wed, 24 Apr 2019 16:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-duplicate-records/m-p/1572890#M741425</guid>
      <dc:creator>lfetensini</dc:creator>
      <dc:date>2019-04-24T16:50:35Z</dc:date>
    </item>
  </channel>
</rss>

