<?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 Comma Separated Value and Joins in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comma-Separated-Value-and-Joins/m-p/198509#M57795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dinesh,&lt;/P&gt;&lt;P&gt;In Table A, create an additional column that will count the number of IDs you have that is&lt;/P&gt;&lt;P&gt;substringcount ( 'ID_List', ',' ) + 1 as No_IDs&lt;/P&gt;&lt;P&gt;Then load a modified Table A in your script to create a one row for each separate ID for each PK through a loop using the "while iterno() " function.&lt;/P&gt;&lt;P&gt;Load PK,&lt;BR /&gt; subfield(ID_List,',',iterno()) as ID&lt;BR /&gt;Resident TableA&lt;BR /&gt;while iterno() &amp;lt;= No_IDs;&lt;/P&gt;&lt;P&gt;That should prepare Table A to be joined with Table B&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2011 16:03:42 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2011-04-05T16:03:42Z</dc:date>
    <item>
      <title>Comma Separated Value and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Separated-Value-and-Joins/m-p/198508#M57794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table which has comma separated ID's and another table which is basically a lookup for the ID's. How would I join the two tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A&lt;/P&gt;&lt;P&gt;PK1 ID1, ID2, ID3&lt;/P&gt;&lt;P&gt;PK2 ID1, ID3&lt;/P&gt;&lt;P&gt;PK3 ID1, ID2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B&lt;/P&gt;&lt;P&gt;ID1 Description1&lt;/P&gt;&lt;P&gt;ID2 Description2&lt;/P&gt;&lt;P&gt;ID3 Description3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 15:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Separated-Value-and-Joins/m-p/198508#M57794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-05T15:33:48Z</dc:date>
    </item>
    <item>
      <title>Comma Separated Value and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Separated-Value-and-Joins/m-p/198509#M57795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dinesh,&lt;/P&gt;&lt;P&gt;In Table A, create an additional column that will count the number of IDs you have that is&lt;/P&gt;&lt;P&gt;substringcount ( 'ID_List', ',' ) + 1 as No_IDs&lt;/P&gt;&lt;P&gt;Then load a modified Table A in your script to create a one row for each separate ID for each PK through a loop using the "while iterno() " function.&lt;/P&gt;&lt;P&gt;Load PK,&lt;BR /&gt; subfield(ID_List,',',iterno()) as ID&lt;BR /&gt;Resident TableA&lt;BR /&gt;while iterno() &amp;lt;= No_IDs;&lt;/P&gt;&lt;P&gt;That should prepare Table A to be joined with Table B&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 16:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Separated-Value-and-Joins/m-p/198509#M57795</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2011-04-05T16:03:42Z</dc:date>
    </item>
    <item>
      <title>Comma Separated Value and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Separated-Value-and-Joins/m-p/198510#M57796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Works like a charm. Thank you.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 21:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Separated-Value-and-Joins/m-p/198510#M57796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-05T21:25:56Z</dc:date>
    </item>
  </channel>
</rss>

