<?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 loop a for comparing strings (match based) between two different fields , each coming from different table ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1951849#M1219767</link>
    <description>&lt;P&gt;I'd suggest looking into using the solution described in this thread for a partial text match lookup (mapping load):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Apply-Map-If-Wildmatch-to-find-text-within-text-string/td-p/131240" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Apply-Map-If-Wildmatch-to-find-text-within-text-string/td-p/131240&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 13:37:07 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-07-05T13:37:07Z</dc:date>
    <item>
      <title>How to loop a for comparing strings (match based) between two different fields , each coming from different table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1951845#M1219766</link>
      <description>&lt;P&gt;Hello Experts ,&lt;/P&gt;
&lt;P&gt;As i am not good with looping , how to loop a for comparing strings between two different fields , each coming from different table ?&lt;/P&gt;
&lt;P&gt;Note : Table 1 and table 2 has lots of rows , so joining with cartesian is ruled out .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&lt;BR /&gt;word, value&lt;BR /&gt;Ancient, k1&lt;BR /&gt;Torrent, k2&lt;BR /&gt;Vibrant, k3&lt;BR /&gt;Florent, k4&lt;BR /&gt;Succulent, k5&lt;BR /&gt;Ant, k6&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;table2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;freetext&lt;BR /&gt;SOBBERANT&lt;BR /&gt;movietorrent&lt;BR /&gt;vibrantcolor&lt;BR /&gt;ancient roman church&lt;BR /&gt;Florent&lt;BR /&gt;plant based succuent&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;sample output views&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="compare.PNG" style="width: 612px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83358iF17E7076C18263AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="compare.PNG" alt="compare.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank You All&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1951845#M1219766</guid>
      <dc:creator>prahlad_infy</dc:creator>
      <dc:date>2022-07-05T13:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop a for comparing strings (match based) between two different fields , each coming from different table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1951849#M1219767</link>
      <description>&lt;P&gt;I'd suggest looking into using the solution described in this thread for a partial text match lookup (mapping load):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Apply-Map-If-Wildmatch-to-find-text-within-text-string/td-p/131240" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Apply-Map-If-Wildmatch-to-find-text-within-text-string/td-p/131240&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1951849#M1219767</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-07-05T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop a for comparing strings (match based) between two different fields , each coming from different table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1951959#M1219771</link>
      <description>&lt;P&gt;Thank You Or for the reply .&lt;/P&gt;
&lt;P&gt;I know this is weird , but i my requirement is to achieve result by looping (though not optimized way) .&lt;/P&gt;
&lt;P&gt;That will help me on nested loop understanding .&lt;/P&gt;
&lt;P&gt;So please help me with the solution using loop .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 17:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1951959#M1219771</guid>
      <dc:creator>prahlad_infy</dc:creator>
      <dc:date>2022-07-05T17:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop a for comparing strings (match based) between two different fields , each coming from different table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1952467#M1219793</link>
      <description>&lt;P&gt;In regard to learn to develop nested loops I suggest you look to any starter tutorials by any programming language because in Qlik it's logically the same and the syntactically differences are rather small.&lt;/P&gt;
&lt;P&gt;Within Qlik it's rather seldom that nested loops on loaded data are needed and/or sensible - looping through folder/files and/or branching between various cases are more often but they are mostly outside from the data.&lt;/P&gt;
&lt;P&gt;Especially by your mentioned large data-set it doesn't make sense because comparing each single value from one side to each value from the other side is quite near to a cartesian product ... Therefore I suggest to take a carefully look to the from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;provided link.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 15:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1952467#M1219793</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-07-06T15:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop a for comparing strings (match based) between two different fields , each coming from different table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1952675#M1219803</link>
      <description>&lt;P&gt;Hello marcus ,&lt;/P&gt;
&lt;P&gt;Thanks for replying and mentoring over nuances .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have gone through the link and it did solve my problem . I was just little over curious to know the flow of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;loading two different dataset&amp;nbsp; using loop (load within load , if i may call it ) , which i tried and didnt work .&lt;/P&gt;
&lt;P&gt;Thank to &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;again .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 07:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1952675#M1219803</guid>
      <dc:creator>prahlad_infy</dc:creator>
      <dc:date>2022-07-07T07:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop a for comparing strings (match based) between two different fields , each coming from different table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1952793#M1219808</link>
      <description>&lt;P&gt;Without having seen your loop-script it's difficult to estimate what's going wrong.&lt;/P&gt;
&lt;P&gt;Quite important is the understanding that you couldn't directly access any loaded data within the script - unless:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;during another load&lt;/LI&gt;
&lt;LI&gt;fetching a value with some special functions, like peek() or fieldvalue() whereby in many scenarios it's needed/required to assign them to variables, too&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Peek() will run through the data-tables and fieldvalue() through the system-tables - whereby this mustn't mandatory be single-values else the values might be already merged with a concat-load or another loop-approach.&lt;/P&gt;
&lt;P&gt;And in your case both sides from the data must be fetched - whereby it could become quite difficult to associate the comparing-results to the final/target-table - especially by using fieldvalue() which hasn't a direct-relation to a table.&lt;/P&gt;
&lt;P&gt;This means the biggest challenge isn't the nested loop itself else what you need to do within it.&lt;/P&gt;
&lt;P&gt;Further even with rather small data-sets you could easily create millions of iterations and therefore millions of times of fetching/comparing data and doing anything with it respectively I/O operations with some latency and it will probably need some milliseconds for each which could mean n hours by millions of iterations.&lt;/P&gt;
&lt;P&gt;Therefore don't try to apply loops on data which aren't on the outside of loads.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 11:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-loop-a-for-comparing-strings-match-based-between-two/m-p/1952793#M1219808</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-07-07T11:39:47Z</dc:date>
    </item>
  </channel>
</rss>

