<?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 Find Different Combinations From a Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645034#M236404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the autonumber function to create the unique KIT ID's:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;Load Item1, Item2, Item3, Item4,&lt;STRONG&gt; 'KIT' &amp;amp; autonumber( Item1 &amp;amp; Item2 &amp;amp; Item3 &amp;amp; Item4) as KitID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2014 15:43:25 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-06-09T15:43:25Z</dc:date>
    <item>
      <title>How To Find Different Combinations From a Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645033#M236403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Item 1 &lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Item 2&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Item 3&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Item 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yellow&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;FS1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;455678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Green&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FS2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Red&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FS2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6789&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Blue&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FS1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;455678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Green&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FS2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6789&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Red&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FS1 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25676&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Blue&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FS2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Yellow&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FS1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each row of this table is a KIT of elements, for example the KIT Number 1 will be the elements 1234, Yellow, 4 and FS1, that belongs to all elements in the Number 1 Row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea is try to find how many Diferent Kits i have and if is possible add a New Column with the Kits Name for example KIT1, KIT2.... ETC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for my english.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645033#M236403</guid>
      <dc:creator />
      <dc:date>2014-06-09T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: How To Find Different Combinations From a Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645034#M236404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the autonumber function to create the unique KIT ID's:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;Load Item1, Item2, Item3, Item4,&lt;STRONG&gt; 'KIT' &amp;amp; autonumber( Item1 &amp;amp; Item2 &amp;amp; Item3 &amp;amp; Item4) as KitID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645034#M236404</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-09T15:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How To Find Different Combinations From a Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645035#M236405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Item 1, Item 2, Item 3, Item 4&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1234, Yellow, 4, FS1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 455678, Green, 5, FS2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1234, Red, 5, FS2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 6789, Blue, 5, FS1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 455678, Green, 4, FS2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 6789, Red, 5, FS1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 25676, Blue, 5, FS2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1234, Yellow, 5, FS1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load Distinct [Item 1] Resident Temp;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load Distinct [Item 2] Resident Temp;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load Distinct [Item 3] Resident Temp;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load Distinct [Item 4] Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645035#M236405</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-09T15:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: How To Find Different Combinations From a Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645036#M236406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is not possible do it like this, because i have a table with more or less 10000 Rows, in my question i only show 8 rows as example, sorry i dont clarify this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But finally the idea is that Qlikview detect automatically how many combinations i have and assign a name to each combination.&lt;BR /&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645036#M236406</guid>
      <dc:creator />
      <dc:date>2014-06-09T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How To Find Different Combinations From a Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645037#M236407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your answer was so helpfully, i used it and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a Lot.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 16:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645037#M236407</guid>
      <dc:creator />
      <dc:date>2014-06-09T16:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How To Find Different Combinations From a Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645038#M236408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assumming that the table is already DISTINCT, you can create the Kit ids when you load the table by adding a field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,'KIT' &amp;amp; RownNo() as KitId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table is already loaded, you can add the Ids with a JOIN:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN (Kits)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD DISTINCT *, 'KIT' &amp;amp; RowNo() as Kit RESIDENT Kits;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if the table is not DISTINCT, you can do a two step process to generate DISTINCT ids and join them to the table:&lt;/P&gt;&lt;P&gt;KitIds:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD DISTINCT *, 'KIT' &amp;amp; RowNo() as Kit RESIDENT Kits;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN (Kits) LOAD * RESIDENT KitIds;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Drop Table KitIds;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 16:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Find-Different-Combinations-From-a-Table/m-p/645038#M236408</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-06-09T16:12:00Z</dc:date>
    </item>
  </channel>
</rss>

