<?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 Unique combination of fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unique-combination-of-fields/m-p/514320#M481097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My qlikview-file exists of 1 big table.&lt;/P&gt;&lt;P&gt;In this table a combination of fields should be unique.(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;However the input has to be correct)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What would be a good way to check if a combination of fields within a table is indeed unique?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I want t check if the combination of the fields:&lt;/P&gt;&lt;P&gt;[Date], [department], [activity], [uom]&lt;/P&gt;&lt;P&gt;is unique at the time the script is reloaded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 16:19:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-23T16:19:02Z</dc:date>
    <item>
      <title>Unique combination of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Unique-combination-of-fields/m-p/514320#M481097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My qlikview-file exists of 1 big table.&lt;/P&gt;&lt;P&gt;In this table a combination of fields should be unique.(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;However the input has to be correct)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What would be a good way to check if a combination of fields within a table is indeed unique?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I want t check if the combination of the fields:&lt;/P&gt;&lt;P&gt;[Date], [department], [activity], [uom]&lt;/P&gt;&lt;P&gt;is unique at the time the script is reloaded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 16:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unique-combination-of-fields/m-p/514320#M481097</guid>
      <dc:creator />
      <dc:date>2013-10-23T16:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unique combination of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Unique-combination-of-fields/m-p/514321#M481098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of ways to do it depending on what you want to do if you have duplicates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CountTable:&lt;/P&gt;&lt;P&gt;LOAD Sum(1) as ComboCount&lt;/P&gt;&lt;P&gt;RESIDENT MyTable&lt;/P&gt;&lt;P&gt;GROUP BY &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Date], [department], [activity], [uom]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF NoOfRows('CountTable') &amp;lt; NoOfRows('MyTable') THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; TRACE Non-Uniques values in MyTable;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 16:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unique-combination-of-fields/m-p/514321#M481098</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-10-23T16:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unique combination of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Unique-combination-of-fields/m-p/514322#M481099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps using DISTINCT, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [department],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [activity], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [uom]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;From &amp;lt;&amp;gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 17:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unique-combination-of-fields/m-p/514322#M481099</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-23T17:08:32Z</dc:date>
    </item>
  </channel>
</rss>

