<?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 Re: How to quickly find out which field is not unique? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95541#M457955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are many techniques out there to this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using SQL or Qlik you may compare count(field) to count(distinct(field))&lt;/P&gt;&lt;P&gt;you may use "EasyQlik QViewer" that gives good indication about data through it's metadata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also in qlik datamodel when you go to the table Viewer tool you may identify usefull information about your key if you show the information of "information density" and "subset ratio"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a key is perfect then the indication "perfect key" should appear on the Table Viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it's helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2018 09:22:36 GMT</pubDate>
    <dc:creator>kfoudhaily</dc:creator>
    <dc:date>2018-06-29T09:22:36Z</dc:date>
    <item>
      <title>How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95539#M457953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;quite often I want to test whether a keyfield is unique in a given table. When I find out that it is not - when I select one key, I get several records - how can I find out which field has several distinct values (apart from looking through all the fields which can take a while if a table is broad)?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 09:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95539#M457953</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2018-06-29T09:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95540#M457954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Go to 'Data model viewer' and click on particular field in the model you are interested in.&lt;/P&gt;&lt;P&gt;On the bottom of the screen in&amp;nbsp; 'Preview' you can find information like field density , subset ratio and info whether the field has duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 09:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95540#M457954</guid>
      <dc:creator>facettti</dc:creator>
      <dc:date>2018-06-29T09:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95541#M457955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are many techniques out there to this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using SQL or Qlik you may compare count(field) to count(distinct(field))&lt;/P&gt;&lt;P&gt;you may use "EasyQlik QViewer" that gives good indication about data through it's metadata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also in qlik datamodel when you go to the table Viewer tool you may identify usefull information about your key if you show the information of "information density" and "subset ratio"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a key is perfect then the indication "perfect key" should appear on the Table Viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it's helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 09:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95541#M457955</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-06-29T09:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95542#M457956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to create a listbox with that keyfield and select the Frequency checkbox. That will show a number next to every value of the listbox with the number of the appearences of every value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206604_Capture.JPG" style="height: 519px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture111.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/206605_Capture111.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 10:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95542#M457956</guid>
      <dc:creator>dapostolopoylos</dc:creator>
      <dc:date>2018-06-29T10:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95543#M457957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dimitrios,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that doesn't work yet: I have a listbox $Field (the system-generated one) with the "show frequency" checked - every field has the value 1, whether or not I select it, but I know - and I can see in another listbox - that to one instance of the key, there are three values in one specific field - that way I can quickly see if a method works or not, and this one doesn't - yet ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried an IF-fct, &amp;gt;&amp;gt; IF(Getpossiblecount($Field) &amp;gt; 1, 'not unique', 'unique') &amp;lt;&amp;lt; - didn't work either ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: With &amp;gt;&amp;gt;Getalternativecount&amp;lt;&amp;lt; it won't work, either - then I always get a value of 3 (for every field) because there are 3 records for one instance of the key logically - but the issue is only one field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95543#M457957</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2018-06-29T12:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95544#M457958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show frequency is the good option to find the number of duplicate values in the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95544#M457958</guid>
      <dc:creator>manoj217</dc:creator>
      <dc:date>2018-06-29T12:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95545#M457959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, no, it is not - as I told you, in my instance the frequency of every field (with one key selected) is always 1 - but I can see in another listbox that in one specific field, there are 3 distinct values resulting in 3 records for this key ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95545#M457959</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2018-06-29T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95546#M457960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I once copied the attached object, but have not recorded, who created it.&lt;/P&gt;&lt;P&gt;You may grap the idea from there.&lt;/P&gt;&lt;P&gt;Please be aware that it needs to calculate quite long in a bigger database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edith says that it might be better to populate the file with some sample data ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 13:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95546#M457960</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2018-06-29T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95547#M457961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The frequency in the $Field listbox shows the number of appearences of a field in your Data Model.&lt;/P&gt;&lt;P&gt;Logically if you have set up a data model based on a star schema all your fields in the&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;$Field listbox should have frequency equal to 1 except from those which are keys between the fact table and the dimension tables and would have frequency equal to 2. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What i want to say is that there is not a solution that will cover all implementation cases because there are many options in constructing your data model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If you could provide a sample app that reflects the issue that you are facing to play around it would be easier to find more solid solutions... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jun 2018 08:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95547#M457961</guid>
      <dc:creator>dapostolopoylos</dc:creator>
      <dc:date>2018-06-30T08:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95548#M457962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest using a table-chart with $Table and $Field as dimensions and:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(count(total &amp;lt;$Field&amp;gt; $Field) &amp;gt; 1, 'Yes', 'No') // to identify key-fields&lt;/P&gt;&lt;P&gt;=FieldValueCount($Field)&lt;/P&gt;&lt;P&gt;=$Rows&lt;/P&gt;&lt;P&gt;=$Rows - FieldValueCount($Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as measures. It will give a good overview about the records of the tables and the distinct values of each field whereby this approach don't work to give a direct answer for the key-fields because they exists in multiple tables and their distinct values overall could be higher as the records of each single table and you don't know which values come from which table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think to get this you will need to include any table-specific condition within an expression which counts directly over the table and not with the systemfields. Not yet checked for this kind of query - you might be able to gather this information through the qvw meta-data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe both ways should be possible but they might be not so easy and quickly like you mentioned it within your question. Therefore it will be probably easier to look for these information within the table-viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jun 2018 13:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95548#M457962</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-06-30T13:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95549#M457963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this tool is from Ralf Becher and here was already a quite similar discussion: &lt;A href="https://community.qlik.com/message/386575"&gt;Re: Chart with count of $Field values&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jun 2018 13:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95549#M457963</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-06-30T13:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95550#M457964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dimitrios,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot provide you a sample app, but I can tell you how I would do it for now, not knowing a faster way:&lt;/P&gt;&lt;P&gt;I would have a table_chart with the internal key (identical to the key, but not linked to other tables) as the dimension and &amp;gt;&amp;gt; COUNT([fieldname] &amp;lt;&amp;lt; (as # of distinct values) for every field as measures.&lt;/P&gt;&lt;P&gt;That does not save me much time or effort compared to just looking through a heap of listboxes to find which field is not unique, but it does return me exactly what I want - most fields will only have a nr. 1 here, one or several will have a value &amp;gt;1.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oops, forgot the DISTINCT - it should be &amp;gt;&amp;gt; COUNT(DISTINCT [fieldname]) &amp;lt;&amp;lt; - if I add that as expression once for every field, that will not save me much effort, but it will return just what I'm looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 08:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95550#M457964</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2018-07-02T08:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to quickly find out which field is not unique?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95551#M457965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whatever works Friedrich, sometimes "dirty" solutions are all we really need &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 12:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-quickly-find-out-which-field-is-not-unique/m-p/95551#M457965</guid>
      <dc:creator>dapostolopoylos</dc:creator>
      <dc:date>2018-07-02T12:40:21Z</dc:date>
    </item>
  </channel>
</rss>

