<?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 Show duplicate value within one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-duplicate-value-within-one-field/m-p/1757055#M590708</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a question, how to check if I have duplicate value within one field.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Raport_table_tmp:&lt;BR /&gt;load&lt;BR /&gt;Raport_ResNo,&lt;BR /&gt;Raport_PersonOnResNo,&lt;BR /&gt;Raport_ServiceCode,&lt;BR /&gt;Resident ResTable&lt;/P&gt;&lt;P&gt;and i want to check if particular Person on reservation has duplicates in Raport_ServiceCode value, if yes load them if not make a null().&lt;/P&gt;&lt;P&gt;Can i do it with script? I dont want to make it in front with set analysis becouse of many rows of table&lt;/P&gt;&lt;P&gt;Testing scenario&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ResNo&lt;/TD&gt;&lt;TD&gt;PersonOnRes&lt;/TD&gt;&lt;TD&gt;ServiceCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Service1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Service1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Service1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Service2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Service 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and i want to load only person who has duplicated service code (in case this is person number one) and concat those services into one row in column (on front)&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 13:50:04 GMT</pubDate>
    <dc:creator>Woojtek_96</dc:creator>
    <dc:date>2020-10-29T13:50:04Z</dc:date>
    <item>
      <title>Show duplicate value within one field</title>
      <link>https://community.qlik.com/t5/QlikView/Show-duplicate-value-within-one-field/m-p/1757055#M590708</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a question, how to check if I have duplicate value within one field.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Raport_table_tmp:&lt;BR /&gt;load&lt;BR /&gt;Raport_ResNo,&lt;BR /&gt;Raport_PersonOnResNo,&lt;BR /&gt;Raport_ServiceCode,&lt;BR /&gt;Resident ResTable&lt;/P&gt;&lt;P&gt;and i want to check if particular Person on reservation has duplicates in Raport_ServiceCode value, if yes load them if not make a null().&lt;/P&gt;&lt;P&gt;Can i do it with script? I dont want to make it in front with set analysis becouse of many rows of table&lt;/P&gt;&lt;P&gt;Testing scenario&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ResNo&lt;/TD&gt;&lt;TD&gt;PersonOnRes&lt;/TD&gt;&lt;TD&gt;ServiceCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Service1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Service1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Service1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Service2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Service 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and i want to load only person who has duplicated service code (in case this is person number one) and concat those services into one row in column (on front)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 13:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-duplicate-value-within-one-field/m-p/1757055#M590708</guid>
      <dc:creator>Woojtek_96</dc:creator>
      <dc:date>2020-10-29T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show duplicate value within one field</title>
      <link>https://community.qlik.com/t5/QlikView/Show-duplicate-value-within-one-field/m-p/1757083#M590709</link>
      <description>&lt;P&gt;you can aggregate it something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tmp: load PersonRes, ServiceCode, count(ServiceCode) as cnt resident DATA group by PersonRes, ServiceCOde;&lt;BR /&gt;&lt;BR /&gt;nonconcatenate NewData: load&amp;nbsp;PersonRes, ServiceCode resident tmp where cnt&amp;gt;1;&amp;nbsp; drop table tmp&lt;BR /&gt;&lt;BR /&gt;this last table gives you the Person,ServiceCode that are multiple.&amp;nbsp; you can left join or inner join it to your original table depending on what you need.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 14:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-duplicate-value-within-one-field/m-p/1757083#M590709</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-10-29T14:46:14Z</dc:date>
    </item>
  </channel>
</rss>

