<?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 Duplicates with multiple fields in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Duplicates-with-multiple-fields/m-p/2533239#M4271</link>
    <description>&lt;P&gt;&lt;FONT size="4"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;H4 data-start="3142" data-end="3165"&gt;&lt;FONT size="4"&gt;I am trying to remove duplicates from my data. The issue is that for a row to be considered a duplicate, it has to be the same across multiple fields. For example, another student making the same transfer doesn't count as a duplicate. I want to keep only one row when the &lt;CODE data-start="904" data-end="915"&gt;StudentID&lt;/CODE&gt;, &lt;CODE data-start="917" data-end="931"&gt;CurrentClass&lt;/CODE&gt;, &lt;CODE data-start="933" data-end="944"&gt;NextClass&lt;/CODE&gt;, &lt;CODE data-start="946" data-end="952"&gt;Date&lt;/CODE&gt;, and &lt;CODE data-start="958" data-end="972"&gt;DurationDays&lt;/CODE&gt; are the same across rows — like rows 1 and 2 in the table below. I have other fields that I want to keep in my fact table, but they are not important for identifying duplicates.&lt;BR /&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;DIV class="_tableContainer_1rjym_1"&gt;
&lt;DIV class="group _tableWrapper_1rjym_13 flex w-fit flex-col-reverse" tabindex="-1"&gt;
&lt;TABLE class="w-fit min-w-(--thread-content-width)" width="647px" data-start="3167" data-end="3862"&gt;
&lt;THEAD data-start="3167" data-end="3282"&gt;
&lt;TR data-start="3167" data-end="3282"&gt;
&lt;TH width="40px"&gt;TransferID&lt;/TH&gt;
&lt;TH width="48.375px" height="23px" data-start="3167" data-end="3179" data-col-size="sm"&gt;StudentID&lt;/TH&gt;
&lt;TH width="79.7188px" height="23px" data-start="3179" data-end="3194" data-col-size="sm"&gt;CurrentClass&lt;/TH&gt;
&lt;TH width="61.8594px" height="23px" data-start="3194" data-end="3206" data-col-size="sm"&gt;NextClass&lt;/TH&gt;
&lt;TH width="91.6875px" height="23px" data-start="3206" data-end="3219" data-col-size="sm"&gt;Date&lt;/TH&gt;
&lt;TH width="84.6406px" height="23px" data-start="3219" data-end="3234" data-col-size="sm"&gt;DurationDays&lt;/TH&gt;
&lt;TH width="49.9219px" height="23px" data-start="3234" data-end="3244" data-col-size="sm"&gt;Teacher&lt;/TH&gt;
&lt;TH width="43.9688px" height="23px" data-start="3244" data-end="3253" data-col-size="sm"&gt;Passed&lt;/TH&gt;
&lt;TH width="72.8906px" height="23px" data-start="3253" data-end="3267" data-col-size="sm"&gt;OtherField1&lt;/TH&gt;
&lt;TH width="72.9375px" height="23px" data-start="3267" data-end="3282" data-col-size="sm"&gt;OtherField2&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY data-start="3399" data-end="3862"&gt;
&lt;TR data-start="3399" data-end="3514"&gt;
&lt;TD width="40px"&gt;1&lt;/TD&gt;
&lt;TD width="48.375px" height="25px" data-start="3399" data-end="3411" data-col-size="sm"&gt;S001&lt;/TD&gt;
&lt;TD width="79.7188px" height="25px" data-start="3411" data-end="3426" data-col-size="sm"&gt;ABC&lt;/TD&gt;
&lt;TD width="61.8594px" height="25px" data-start="3426" data-end="3438" data-col-size="sm"&gt;DEF&lt;/TD&gt;
&lt;TD width="91.6875px" height="25px" data-start="3438" data-end="3451" data-col-size="sm"&gt;2025-01-01&lt;/TD&gt;
&lt;TD width="84.6406px" height="25px" data-start="3451" data-end="3466" data-col-size="sm"&gt;10&lt;/TD&gt;
&lt;TD width="49.9219px" height="25px" data-start="3466" data-end="3476" data-col-size="sm"&gt;T1&lt;/TD&gt;
&lt;TD width="43.9688px" height="25px" data-start="3476" data-end="3485" data-col-size="sm"&gt;1&lt;/TD&gt;
&lt;TD width="72.8906px" height="25px" data-start="3485" data-end="3499" data-col-size="sm"&gt;Value1&lt;/TD&gt;
&lt;TD width="72.9375px" height="25px" data-start="3499" data-end="3514" data-col-size="sm"&gt;Value2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR data-start="3515" data-end="3630"&gt;
&lt;TD width="40px"&gt;2&lt;/TD&gt;
&lt;TD width="48.375px" height="25px" data-start="3515" data-end="3527" data-col-size="sm"&gt;S001&lt;/TD&gt;
&lt;TD width="79.7188px" height="25px" data-start="3527" data-end="3542" data-col-size="sm"&gt;ABC&lt;/TD&gt;
&lt;TD width="61.8594px" height="25px" data-start="3542" data-end="3554" data-col-size="sm"&gt;DEF&lt;/TD&gt;
&lt;TD width="91.6875px" height="25px" data-start="3554" data-end="3567" data-col-size="sm"&gt;2025-01-01&lt;/TD&gt;
&lt;TD width="84.6406px" height="25px" data-start="3567" data-end="3582" data-col-size="sm"&gt;10&lt;/TD&gt;
&lt;TD width="49.9219px" height="25px" data-start="3582" data-end="3592" data-col-size="sm"&gt;T1&lt;/TD&gt;
&lt;TD width="43.9688px" height="25px" data-start="3592" data-end="3601" data-col-size="sm"&gt;1&lt;/TD&gt;
&lt;TD width="72.8906px" height="25px" data-start="3601" data-end="3615" data-col-size="sm"&gt;Value1&lt;/TD&gt;
&lt;TD width="72.9375px" height="25px" data-start="3615" data-end="3630" data-col-size="sm"&gt;Value2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR data-start="3631" data-end="3746"&gt;
&lt;TD width="40px"&gt;3&lt;/TD&gt;
&lt;TD width="48.375px" height="25px" data-start="3631" data-end="3643" data-col-size="sm"&gt;S001&lt;/TD&gt;
&lt;TD width="79.7188px" height="25px" data-start="3643" data-end="3658" data-col-size="sm"&gt;ABC&lt;/TD&gt;
&lt;TD width="61.8594px" height="25px" data-start="3658" data-end="3670" data-col-size="sm"&gt;MTH&lt;/TD&gt;
&lt;TD width="91.6875px" height="25px" data-start="3670" data-end="3683" data-col-size="sm"&gt;2025-01-02&lt;/TD&gt;
&lt;TD width="84.6406px" height="25px" data-start="3683" data-end="3698" data-col-size="sm"&gt;15&lt;/TD&gt;
&lt;TD width="49.9219px" height="25px" data-start="3698" data-end="3708" data-col-size="sm"&gt;T1&lt;/TD&gt;
&lt;TD width="43.9688px" height="25px" data-start="3708" data-end="3717" data-col-size="sm"&gt;1&lt;/TD&gt;
&lt;TD width="72.8906px" height="25px" data-start="3717" data-end="3731" data-col-size="sm"&gt;Value3&lt;/TD&gt;
&lt;TD width="72.9375px" height="25px" data-start="3731" data-end="3746" data-col-size="sm"&gt;Value4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR data-start="3747" data-end="3862"&gt;
&lt;TD width="40px"&gt;4&lt;/TD&gt;
&lt;TD width="48.375px" height="25px" data-start="3747" data-end="3759" data-col-size="sm"&gt;S002&lt;/TD&gt;
&lt;TD width="79.7188px" height="25px" data-start="3759" data-end="3774" data-col-size="sm"&gt;MTH&lt;/TD&gt;
&lt;TD width="61.8594px" height="25px" data-start="3774" data-end="3786" data-col-size="sm"&gt;SCI&lt;/TD&gt;
&lt;TD width="91.6875px" height="25px" data-start="3786" data-end="3799" data-col-size="sm"&gt;2025-01-01&lt;/TD&gt;
&lt;TD width="84.6406px" height="25px" data-start="3799" data-end="3814" data-col-size="sm"&gt;20&lt;/TD&gt;
&lt;TD width="49.9219px" height="25px" data-start="3814" data-end="3824" data-col-size="sm"&gt;T2&lt;/TD&gt;
&lt;TD width="43.9688px" height="25px" data-start="3824" data-end="3833" data-col-size="sm"&gt;0&lt;/TD&gt;
&lt;TD width="72.8906px" height="25px" data-start="3833" data-end="3847" data-col-size="sm"&gt;Value5&lt;/TD&gt;
&lt;TD width="72.9375px" height="25px" data-start="3847" data-end="3862" data-col-size="sm"&gt;Value6&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;How do i only select one row and not duplicates. I want to do this in the load script.&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 13 Oct 2025 11:36:18 GMT</pubDate>
    <dc:creator>Christinedv</dc:creator>
    <dc:date>2025-10-13T11:36:18Z</dc:date>
    <item>
      <title>Duplicates with multiple fields</title>
      <link>https://community.qlik.com/t5/Data-Quality/Duplicates-with-multiple-fields/m-p/2533239#M4271</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;H4 data-start="3142" data-end="3165"&gt;&lt;FONT size="4"&gt;I am trying to remove duplicates from my data. The issue is that for a row to be considered a duplicate, it has to be the same across multiple fields. For example, another student making the same transfer doesn't count as a duplicate. I want to keep only one row when the &lt;CODE data-start="904" data-end="915"&gt;StudentID&lt;/CODE&gt;, &lt;CODE data-start="917" data-end="931"&gt;CurrentClass&lt;/CODE&gt;, &lt;CODE data-start="933" data-end="944"&gt;NextClass&lt;/CODE&gt;, &lt;CODE data-start="946" data-end="952"&gt;Date&lt;/CODE&gt;, and &lt;CODE data-start="958" data-end="972"&gt;DurationDays&lt;/CODE&gt; are the same across rows — like rows 1 and 2 in the table below. I have other fields that I want to keep in my fact table, but they are not important for identifying duplicates.&lt;BR /&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;DIV class="_tableContainer_1rjym_1"&gt;
&lt;DIV class="group _tableWrapper_1rjym_13 flex w-fit flex-col-reverse" tabindex="-1"&gt;
&lt;TABLE class="w-fit min-w-(--thread-content-width)" width="647px" data-start="3167" data-end="3862"&gt;
&lt;THEAD data-start="3167" data-end="3282"&gt;
&lt;TR data-start="3167" data-end="3282"&gt;
&lt;TH width="40px"&gt;TransferID&lt;/TH&gt;
&lt;TH width="48.375px" height="23px" data-start="3167" data-end="3179" data-col-size="sm"&gt;StudentID&lt;/TH&gt;
&lt;TH width="79.7188px" height="23px" data-start="3179" data-end="3194" data-col-size="sm"&gt;CurrentClass&lt;/TH&gt;
&lt;TH width="61.8594px" height="23px" data-start="3194" data-end="3206" data-col-size="sm"&gt;NextClass&lt;/TH&gt;
&lt;TH width="91.6875px" height="23px" data-start="3206" data-end="3219" data-col-size="sm"&gt;Date&lt;/TH&gt;
&lt;TH width="84.6406px" height="23px" data-start="3219" data-end="3234" data-col-size="sm"&gt;DurationDays&lt;/TH&gt;
&lt;TH width="49.9219px" height="23px" data-start="3234" data-end="3244" data-col-size="sm"&gt;Teacher&lt;/TH&gt;
&lt;TH width="43.9688px" height="23px" data-start="3244" data-end="3253" data-col-size="sm"&gt;Passed&lt;/TH&gt;
&lt;TH width="72.8906px" height="23px" data-start="3253" data-end="3267" data-col-size="sm"&gt;OtherField1&lt;/TH&gt;
&lt;TH width="72.9375px" height="23px" data-start="3267" data-end="3282" data-col-size="sm"&gt;OtherField2&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY data-start="3399" data-end="3862"&gt;
&lt;TR data-start="3399" data-end="3514"&gt;
&lt;TD width="40px"&gt;1&lt;/TD&gt;
&lt;TD width="48.375px" height="25px" data-start="3399" data-end="3411" data-col-size="sm"&gt;S001&lt;/TD&gt;
&lt;TD width="79.7188px" height="25px" data-start="3411" data-end="3426" data-col-size="sm"&gt;ABC&lt;/TD&gt;
&lt;TD width="61.8594px" height="25px" data-start="3426" data-end="3438" data-col-size="sm"&gt;DEF&lt;/TD&gt;
&lt;TD width="91.6875px" height="25px" data-start="3438" data-end="3451" data-col-size="sm"&gt;2025-01-01&lt;/TD&gt;
&lt;TD width="84.6406px" height="25px" data-start="3451" data-end="3466" data-col-size="sm"&gt;10&lt;/TD&gt;
&lt;TD width="49.9219px" height="25px" data-start="3466" data-end="3476" data-col-size="sm"&gt;T1&lt;/TD&gt;
&lt;TD width="43.9688px" height="25px" data-start="3476" data-end="3485" data-col-size="sm"&gt;1&lt;/TD&gt;
&lt;TD width="72.8906px" height="25px" data-start="3485" data-end="3499" data-col-size="sm"&gt;Value1&lt;/TD&gt;
&lt;TD width="72.9375px" height="25px" data-start="3499" data-end="3514" data-col-size="sm"&gt;Value2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR data-start="3515" data-end="3630"&gt;
&lt;TD width="40px"&gt;2&lt;/TD&gt;
&lt;TD width="48.375px" height="25px" data-start="3515" data-end="3527" data-col-size="sm"&gt;S001&lt;/TD&gt;
&lt;TD width="79.7188px" height="25px" data-start="3527" data-end="3542" data-col-size="sm"&gt;ABC&lt;/TD&gt;
&lt;TD width="61.8594px" height="25px" data-start="3542" data-end="3554" data-col-size="sm"&gt;DEF&lt;/TD&gt;
&lt;TD width="91.6875px" height="25px" data-start="3554" data-end="3567" data-col-size="sm"&gt;2025-01-01&lt;/TD&gt;
&lt;TD width="84.6406px" height="25px" data-start="3567" data-end="3582" data-col-size="sm"&gt;10&lt;/TD&gt;
&lt;TD width="49.9219px" height="25px" data-start="3582" data-end="3592" data-col-size="sm"&gt;T1&lt;/TD&gt;
&lt;TD width="43.9688px" height="25px" data-start="3592" data-end="3601" data-col-size="sm"&gt;1&lt;/TD&gt;
&lt;TD width="72.8906px" height="25px" data-start="3601" data-end="3615" data-col-size="sm"&gt;Value1&lt;/TD&gt;
&lt;TD width="72.9375px" height="25px" data-start="3615" data-end="3630" data-col-size="sm"&gt;Value2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR data-start="3631" data-end="3746"&gt;
&lt;TD width="40px"&gt;3&lt;/TD&gt;
&lt;TD width="48.375px" height="25px" data-start="3631" data-end="3643" data-col-size="sm"&gt;S001&lt;/TD&gt;
&lt;TD width="79.7188px" height="25px" data-start="3643" data-end="3658" data-col-size="sm"&gt;ABC&lt;/TD&gt;
&lt;TD width="61.8594px" height="25px" data-start="3658" data-end="3670" data-col-size="sm"&gt;MTH&lt;/TD&gt;
&lt;TD width="91.6875px" height="25px" data-start="3670" data-end="3683" data-col-size="sm"&gt;2025-01-02&lt;/TD&gt;
&lt;TD width="84.6406px" height="25px" data-start="3683" data-end="3698" data-col-size="sm"&gt;15&lt;/TD&gt;
&lt;TD width="49.9219px" height="25px" data-start="3698" data-end="3708" data-col-size="sm"&gt;T1&lt;/TD&gt;
&lt;TD width="43.9688px" height="25px" data-start="3708" data-end="3717" data-col-size="sm"&gt;1&lt;/TD&gt;
&lt;TD width="72.8906px" height="25px" data-start="3717" data-end="3731" data-col-size="sm"&gt;Value3&lt;/TD&gt;
&lt;TD width="72.9375px" height="25px" data-start="3731" data-end="3746" data-col-size="sm"&gt;Value4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR data-start="3747" data-end="3862"&gt;
&lt;TD width="40px"&gt;4&lt;/TD&gt;
&lt;TD width="48.375px" height="25px" data-start="3747" data-end="3759" data-col-size="sm"&gt;S002&lt;/TD&gt;
&lt;TD width="79.7188px" height="25px" data-start="3759" data-end="3774" data-col-size="sm"&gt;MTH&lt;/TD&gt;
&lt;TD width="61.8594px" height="25px" data-start="3774" data-end="3786" data-col-size="sm"&gt;SCI&lt;/TD&gt;
&lt;TD width="91.6875px" height="25px" data-start="3786" data-end="3799" data-col-size="sm"&gt;2025-01-01&lt;/TD&gt;
&lt;TD width="84.6406px" height="25px" data-start="3799" data-end="3814" data-col-size="sm"&gt;20&lt;/TD&gt;
&lt;TD width="49.9219px" height="25px" data-start="3814" data-end="3824" data-col-size="sm"&gt;T2&lt;/TD&gt;
&lt;TD width="43.9688px" height="25px" data-start="3824" data-end="3833" data-col-size="sm"&gt;0&lt;/TD&gt;
&lt;TD width="72.8906px" height="25px" data-start="3833" data-end="3847" data-col-size="sm"&gt;Value5&lt;/TD&gt;
&lt;TD width="72.9375px" height="25px" data-start="3847" data-end="3862" data-col-size="sm"&gt;Value6&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;How do i only select one row and not duplicates. I want to do this in the load script.&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Oct 2025 11:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Duplicates-with-multiple-fields/m-p/2533239#M4271</guid>
      <dc:creator>Christinedv</dc:creator>
      <dc:date>2025-10-13T11:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates with multiple fields</title>
      <link>https://community.qlik.com/t5/Data-Quality/Duplicates-with-multiple-fields/m-p/2533254#M4272</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/352851"&gt;@Christinedv&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add field as you load this table&lt;BR /&gt;StudentID&amp;amp;'_'&amp;amp;CurrentClass&amp;amp;'_'&amp;amp;NextClass&amp;amp;'_'&amp;amp;Date&amp;amp;'_'&amp;amp;DurationDays as DuplicateKey&lt;BR /&gt;&lt;BR /&gt;Then make resident load distinct DuplicateKey ... to tmp table drop old table and rename tmp to final name.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 12:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Duplicates-with-multiple-fields/m-p/2533254#M4272</guid>
      <dc:creator>BPiotrowski</dc:creator>
      <dc:date>2025-10-13T12:38:03Z</dc:date>
    </item>
  </channel>
</rss>

