<?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 Problem with joining two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90246#M14689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;I need to join two tables in a specific way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;The first one contains, among other data, 8-digit account numbers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="103"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="270"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;40240000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;40230100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;40310000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;40230000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;419_____&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;411_____&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;70090192&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;where 40240000 is an example of a single account and "419_____" translates into all the accounts that begin with "419".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;The second table contains all single account numbers, for example 40240000, 41901010, 41901020 and 41902010.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;My output table should have all the single accounts from the second table joined together with corresponding data from the first table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;I have really no idea how to make one row form the first table split into appropriate number of rows for each fitting account from the second table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Anyone got any idea? Thanks in advance &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2018 09:24:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-10T09:24:37Z</dc:date>
    <item>
      <title>Problem with joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90246#M14689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;I need to join two tables in a specific way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;The first one contains, among other data, 8-digit account numbers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="103"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="270"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;40240000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;40230100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;40310000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;40230000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;419_____&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;411_____&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;70090192&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;where 40240000 is an example of a single account and "419_____" translates into all the accounts that begin with "419".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;The second table contains all single account numbers, for example 40240000, 41901010, 41901020 and 41902010.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;My output table should have all the single accounts from the second table joined together with corresponding data from the first table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;I have really no idea how to make one row form the first table split into appropriate number of rows for each fitting account from the second table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Anyone got any idea? Thanks in advance &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 09:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90246#M14689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T09:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90247#M14690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the First table - lets say &lt;/P&gt;&lt;P&gt;Field1&lt;/P&gt;&lt;P&gt;40240000&lt;/P&gt;&lt;P&gt;40230100&lt;/P&gt;&lt;P&gt;40310000&lt;/P&gt;&lt;P&gt;40230000&lt;/P&gt;&lt;P&gt;419_____&lt;/P&gt;&lt;P&gt;411_____&lt;/P&gt;&lt;P&gt;70090192&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the second table where you have&amp;nbsp; Single account numbers like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field2&lt;/P&gt;&lt;P&gt;41901010&lt;/P&gt;&lt;P&gt;41901020&lt;/P&gt;&lt;P&gt;41101010&lt;/P&gt;&lt;P&gt;41101020&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create new field like &lt;/P&gt;&lt;P&gt;Pick(wildmatch(Field2,'419*','411*',Field2),'419_____','411_____',Field2)&amp;nbsp; as Field1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now Join on Field1 and If not needed then Delete the Field2 OR make sure it wont create Synthetic Key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 15:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90247#M14690</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2018-10-10T15:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90248#M14691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that there are hundreds of accounts and they can change on a random basis. Is there any way to make it a fully automated process not requiring manual entering of the numbers into script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 07:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90248#M14691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-11T07:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90249#M14692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to add (bold) a new join field in the second table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstTable:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;f1&lt;/P&gt;&lt;P&gt;40240000&lt;/P&gt;&lt;P&gt;40230100&lt;/P&gt;&lt;P&gt;40310000&lt;/P&gt;&lt;P&gt;40230000&lt;/P&gt;&lt;P&gt;419_____&lt;/P&gt;&lt;P&gt;411_____&lt;/P&gt;&lt;P&gt;70090192&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;load left(f1, 3) as f3&lt;/P&gt;&lt;P&gt;Resident FirstTable&lt;/P&gt;&lt;P&gt;where right(f1, 5) = '_____'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SecondTable:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;f2,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(exists(f3, left(f2, 3)), left(f2,3)&amp;amp; '_____', f2) as f1 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;inline [&lt;/P&gt;&lt;P&gt;f2&lt;/P&gt;&lt;P&gt;40240000&lt;/P&gt;&lt;P&gt;41901010&lt;/P&gt;&lt;P&gt;41901020&lt;/P&gt;&lt;P&gt;41902010&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//drop table tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215723_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 18:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90249#M14692</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2018-10-11T18:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90250#M14693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, It worked as I wanted &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 11:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-joining-two-tables/m-p/90250#M14693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-17T11:14:33Z</dc:date>
    </item>
  </channel>
</rss>

