<?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: link two tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018420#M84113</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;your suggestion works only when there is one x&lt;BR /&gt;for example 651x00 gives all possible combinations 651000, 651100, etc...&lt;BR /&gt;however sometimes I have the following:&lt;BR /&gt;xxxx1 with you script the result is 11111,00001,22221,33331,....99991&lt;BR /&gt;where as I want to have all possible combinations like 00001,00011,00021,etc...&lt;BR /&gt;and sometimes I might have 651xx00&lt;BR /&gt;&lt;BR /&gt;so when there is only one x in the account , your script works fine but when there is more than one this script fails&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 09:30:34 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2022-12-20T09:30:34Z</dc:date>
    <item>
      <title>link two tables</title>
      <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2017871#M84061</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I'm working in Qlik Sense&lt;BR /&gt;I got two tables T1 and T2&lt;BR /&gt;T1 has column named Account and contains for example 2 values 7010100 and 7010200&lt;BR /&gt;T2 also has a column named Account but values are like this 7010x00 for example&lt;BR /&gt;&lt;BR /&gt;so I want to translate the values of T1 to match the values of T2 so that rows link together&lt;BR /&gt;the difficulty is the x position is not always before the last 2 digits&lt;/P&gt;
&lt;P&gt;Kindly advise&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 10:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2017871#M84061</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-12-19T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: link two tables</title>
      <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2017879#M84062</link>
      <description>&lt;P&gt;Perhaps something like:&lt;/P&gt;
&lt;P&gt;Load Replace(Account,'x',IterNo()-1) as Account&lt;/P&gt;
&lt;P&gt;From T2&lt;/P&gt;
&lt;P&gt;While IterNo() &amp;lt;= 10;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 10:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2017879#M84062</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-12-19T10:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: link two tables</title>
      <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2017883#M84063</link>
      <description>&lt;P&gt;You can use PurgeChar Or KeepChar function to achieve this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PurgeChar ( T2, 'x')&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;KeepChar ( T2, '1234567890')&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 10:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2017883#M84063</guid>
      <dc:creator>Gang</dc:creator>
      <dc:date>2022-12-19T10:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: link two tables</title>
      <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018408#M84108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/148408"&gt;@Gang&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;i don't want to remove the x&lt;BR /&gt;I want to replace it by numbers from 0-&amp;gt;9 and then match the result with teh really existing accounts&lt;BR /&gt;another thing is that I might have more than one x like&lt;BR /&gt;651xxxx0 or xxxx1&lt;/P&gt;
&lt;P&gt;xxxx1 should match 11101 (real account)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 09:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018408#M84108</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-12-20T09:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: link two tables</title>
      <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018420#M84113</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;your suggestion works only when there is one x&lt;BR /&gt;for example 651x00 gives all possible combinations 651000, 651100, etc...&lt;BR /&gt;however sometimes I have the following:&lt;BR /&gt;xxxx1 with you script the result is 11111,00001,22221,33331,....99991&lt;BR /&gt;where as I want to have all possible combinations like 00001,00011,00021,etc...&lt;BR /&gt;and sometimes I might have 651xx00&lt;BR /&gt;&lt;BR /&gt;so when there is only one x in the account , your script works fine but when there is more than one this script fails&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 09:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018420#M84113</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-12-20T09:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: link two tables</title>
      <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018441#M84115</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216"&gt;@ali_hijazi&lt;/a&gt;&amp;nbsp; I think you could solve it as below. (Psedocode so you might need to modify)&lt;BR /&gt;Make three fields as&lt;BR /&gt;T2:&lt;BR /&gt;subfield(&lt;SPAN&gt;Account&amp;nbsp;,'x',1) as AccPart1,&lt;BR /&gt;keepchar(Account,'x') as AccPartX,&lt;BR /&gt;subfield(Account&amp;nbsp;,'x',-1) as AccPart3,&lt;BR /&gt;&lt;BR /&gt;left join(T2)&lt;BR /&gt;&lt;/SPAN&gt;load&lt;BR /&gt;repeat('x',len(iterno())) as&amp;nbsp;&lt;SPAN&gt;AccPartX,&lt;/SPAN&gt;&lt;BR /&gt;iterno() as NewPart2&lt;BR /&gt;autogenerate(1)&lt;BR /&gt;while iterno() &amp;lt;10000;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;newT2:&lt;BR /&gt;load&lt;BR /&gt;AccPart1 &amp;amp; NewPart2 &amp;amp;&amp;nbsp;AccPart3 as&amp;nbsp;Account&lt;BR /&gt;resident T2;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 10:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018441#M84115</guid>
      <dc:creator>AronC</dc:creator>
      <dc:date>2022-12-20T10:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: link two tables</title>
      <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018457#M84119</link>
      <description>&lt;P&gt;Would have been good to lead with that...&lt;/P&gt;
&lt;P&gt;With an unknown number of wildcards and an unknown number of combinations, I'm not sure how to go about doing this except by looping through all the possible iterations:&lt;/P&gt;
&lt;P&gt;* Count the number of 'x's&lt;/P&gt;
&lt;P&gt;* Iterate 10^Count(x) times&lt;/P&gt;
&lt;P&gt;* Replace the 'x's based on the iteration number, using the digits of iterno, e.g. on the 158th iteration x0xx0 will be replaced with 10580&lt;/P&gt;
&lt;P&gt;This shouldn't be too hard to do if the length of the string is known in advance, but if it isn't, you'll probably have to loop through the iterations of replacing each 'x' as well.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 10:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018457#M84119</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-12-20T10:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: link two tables</title>
      <link>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018802#M84149</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;Managed to do this using the LevensteinDist function&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;X_Account:&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;/P&gt;
&lt;P&gt;XAccount&lt;/P&gt;
&lt;P&gt;651x000&lt;/P&gt;
&lt;P&gt;651x001&lt;/P&gt;
&lt;P&gt;xxxx1&lt;/P&gt;
&lt;P&gt;65xxx00&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Account:&lt;/P&gt;
&lt;P&gt;Load * inline [&lt;/P&gt;
&lt;P&gt;AccountID,AccountName&lt;/P&gt;
&lt;P&gt;6511000,A1&lt;/P&gt;
&lt;P&gt;6519000,A2&lt;/P&gt;
&lt;P&gt;6511001,A3&lt;/P&gt;
&lt;P&gt;651100,A4&lt;/P&gt;
&lt;P&gt;01011,A5&lt;/P&gt;
&lt;P&gt;02211,A6&lt;/P&gt;
&lt;P&gt;02212,A7&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;join(Account)&lt;/P&gt;
&lt;P&gt;load * resident X_Account;&lt;/P&gt;
&lt;P&gt;drop table X_Account;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tempAccount:&lt;/P&gt;
&lt;P&gt;Load *&lt;/P&gt;
&lt;P&gt;where LevenshteinDistF=Xcount;&lt;/P&gt;
&lt;P&gt;load *, SubStringCount(XAccount,'x') as Xcount, LevenshteinDist(XAccount,AccountID) as LevenshteinDistF&lt;/P&gt;
&lt;P&gt;resident Account;&lt;/P&gt;
&lt;P&gt;drop table Account;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 06:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/link-two-tables/m-p/2018802#M84149</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-12-21T06:45:36Z</dc:date>
    </item>
  </channel>
</rss>

