<?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: Load distinct (a.k.a this ain't SQL) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332448#M411489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Could you send an image of the model indicating where are the fields? Maybe we can help you...&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2017 21:06:03 GMT</pubDate>
    <dc:creator>hector_munoz</dc:creator>
    <dc:date>2017-06-08T21:06:03Z</dc:date>
    <item>
      <title>Load distinct (a.k.a this ain't SQL)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332444#M411485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a product table with a key and attributes.&lt;/P&gt;&lt;P&gt;We have products in the detail which are not in the master (long story, don't ask)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to append the distinct products in the detail which are NOT already in the master.&lt;/P&gt;&lt;P&gt;This is easy with SQL or ETL tools but with click I get one of several results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Master as it is without detail&lt;/P&gt;&lt;P&gt;2) Master &amp;amp; distinct detail but detail duplicates with master&lt;/P&gt;&lt;P&gt;3) Pist de resistance - master &amp;amp; distinct detail but when I create a table the app crashes. (my personal favorite)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using Qlik Sense 3.0 - hoping this is not part of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read Barry's page on distinct load but wanted to check with the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for caring&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 00:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332444#M411485</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-06-08T00:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load distinct (a.k.a this ain't SQL)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332445#M411486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suposse what you need is to complete a master table from data that belongs to another table, right? For example, in 'product master' table we have 2 products, in 'product fact' table we have 3 and we want to add to the first table the product that is missing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEFORE:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="08-06-2017 5-59-14.png" class="jive-image image-1" src="/legacyfs/online/166141_08-06-2017 5-59-14.png" style="height: 223px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFTER:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="08-06-2017 5-59-53.png" class="jive-image image-2" src="/legacyfs/online/166154_08-06-2017 5-59-53.png" style="height: 206px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is similar to what you need, try the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PRODUCT_MASTER:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PM ID, PM Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, Product 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, Product 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PRODUCT_FACTS:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PM ID, PF Description, PF Date, PF Units, PF Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, Product 1, 01/01/2017, 10, 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, Product 1, 02/01/2017, 20, 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, Product 1, 03/01/2017, 30, 300&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, Product 2, 01/01/2017, 10, 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, Product 2, 02/01/2017, 20, 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, Product 2, 03/01/2017, 30, 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3, Product 3, 01/01/2017, 10, 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3, Product 3, 02/01/2017, 20, 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3, Product 3, 03/01/2017, 30, 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3, Product 3, 04/01/2017, 40, 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CONCATENATE (PRODUCT_MASTER)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD DISTINCT [PM ID] AS [PM ID], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; [PF Description] AS [PM Description]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT PRODUCT_FACTS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE Not(Exists('PM Description', 'PF Description'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attach you a QlikView app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 04:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332445#M411486</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-06-08T04:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load distinct (a.k.a this ain't SQL)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332446#M411487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 13:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332446#M411487</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-06-08T13:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load distinct (a.k.a this ain't SQL)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332447#M411488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution is getting me the required but the application is crashing when an object references this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a table with the %ProductKey and Product, it works for a bit but scrolling through the values eventually crashes the app.&amp;nbsp; If I create a table with only Product, it crashes immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been working on this for days now and getting a little perturbed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm exporting to the 3.2 desktop.&amp;nbsp; If it works there, I guess the next step is to open a ticket with support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 14:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332447#M411488</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-06-08T14:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load distinct (a.k.a this ain't SQL)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332448#M411489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Could you send an image of the model indicating where are the fields? Maybe we can help you...&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332448#M411489</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-06-08T21:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load distinct (a.k.a this ain't SQL)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332449#M411490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have it working.&amp;nbsp; There was one row which caused sense to crash.&amp;nbsp; When the row was removed, it worked perfectly.&amp;nbsp; I believe this was an OS/Qlik problem because it happened with windows 7 pro but not Windows 10 pro.&amp;nbsp; I checked the release notes but didn't find anything about compatibility.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-distinct-a-k-a-this-ain-t-SQL/m-p/1332449#M411490</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-06-08T21:20:34Z</dc:date>
    </item>
  </channel>
</rss>

