<?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: Generic Keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782387#M277083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just make a composite key&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalesId&amp;amp;'|'&amp;amp;SalesResultId&amp;nbsp; as Comp_Key,&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;Xyz,&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 abc;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Dec 2014 14:43:24 GMT</pubDate>
    <dc:creator>saumyashah90</dc:creator>
    <dc:date>2014-12-23T14:43:24Z</dc:date>
    <item>
      <title>Generic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782386#M277082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one table 'Sales' with a key field SalesId and a nother table left joining Sales called SalesResult with a field SalesResultId. However I would like to create an generic key out of SalesId&amp;amp;'|'&amp;amp;SalesResultId to create an unique identifier for all Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me an easy example how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Harry &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 14:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782386#M277082</guid>
      <dc:creator />
      <dc:date>2014-12-23T14:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782387#M277083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just make a composite key&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalesId&amp;amp;'|'&amp;amp;SalesResultId&amp;nbsp; as Comp_Key,&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;Xyz,&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 abc;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 14:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782387#M277083</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2014-12-23T14:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782388#M277084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Saumya! But this is not working for me because you have table SalesResult is joining table Sales. Therefore SalesResultId is unknown in Sales. I tried the following but got a synthetic key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Sales)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalesId&amp;amp;'|'&amp;amp;SalesResultId&amp;nbsp; as Comp_Key&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Sales;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 14:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782388#M277084</guid>
      <dc:creator />
      <dc:date>2014-12-23T14:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782389#M277085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please send me your script.&lt;/P&gt;&lt;P&gt;I will edit and let you know the correct path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 14:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782389#M277085</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2014-12-23T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782390#M277086</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;Please provide sample file this will more easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:- For composite keys try this ways and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SalesId&lt;/P&gt;&lt;P&gt;From Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(tmpTable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;SalesResultId&lt;/P&gt;&lt;P&gt;From SalesResult;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SalesId,&lt;/P&gt;&lt;P&gt;SalesResultId,&lt;/P&gt;&lt;P&gt;SalesId&amp;amp;'|'&amp;amp;SalesResultId as %Key&lt;/P&gt;&lt;P&gt;Resident tmpTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table tmpTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 14:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782390#M277086</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-23T14:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782391#M277087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope two columns SalesId,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalesResultId available in two tables. so at this point synthetic keys will generate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to avoid synthetic key, Please follow this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales -- keep it in two fields and generate a new column with concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesResult -- common two fileds are commented and generate a new column with concatenate, its associated with previous one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But two column names are same. then only associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sub2u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 18:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Keys/m-p/782391#M277087</guid>
      <dc:creator />
      <dc:date>2014-12-23T18:42:04Z</dc:date>
    </item>
  </channel>
</rss>

