<?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 Compare Field and Pattern in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222054#M74800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I get no solution for following problem:&lt;/P&gt;&lt;P&gt;I have 2 fields: 1 works as a pattern, e.g. *example* or *test.com. the other one "URL" contains several web addresses, e.g. http://www.test.com&lt;/P&gt;&lt;P&gt;I would like to generate a new field "Pattern_match" from these both fields where only the values of URL are included which match the pattern.&lt;/P&gt;&lt;P&gt;I already tried a solution like this, but then the matches have to be 100% identical:&lt;/P&gt;&lt;P&gt;Pattern_match:&lt;BR /&gt;LOAD fieldvalue('pattern_url',iterno()) as match&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('pattern_url',iterno()))&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN (Pattern_match)&lt;BR /&gt;LOAD fieldvalue('URL',iterno()) as match&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('URL',iterno()))&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 14:11:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-13T14:11:04Z</dc:date>
    <item>
      <title>Compare Field and Pattern</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222054#M74800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I get no solution for following problem:&lt;/P&gt;&lt;P&gt;I have 2 fields: 1 works as a pattern, e.g. *example* or *test.com. the other one "URL" contains several web addresses, e.g. http://www.test.com&lt;/P&gt;&lt;P&gt;I would like to generate a new field "Pattern_match" from these both fields where only the values of URL are included which match the pattern.&lt;/P&gt;&lt;P&gt;I already tried a solution like this, but then the matches have to be 100% identical:&lt;/P&gt;&lt;P&gt;Pattern_match:&lt;BR /&gt;LOAD fieldvalue('pattern_url',iterno()) as match&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('pattern_url',iterno()))&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN (Pattern_match)&lt;BR /&gt;LOAD fieldvalue('URL',iterno()) as match&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('URL',iterno()))&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 14:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222054#M74800</guid>
      <dc:creator />
      <dc:date>2010-07-13T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Compare Field and Pattern</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222055#M74801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enclosed could be one option is your list of patterns are not too long and you are not working with millions of records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 14:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222055#M74801</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-07-13T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Compare Field and Pattern</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222056#M74802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you! it works but indeed the script now takes 21 seconds to calculate up from 3. in the url list i have got about 1500 datasets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 15:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222056#M74802</guid>
      <dc:creator />
      <dc:date>2010-07-13T15:16:11Z</dc:date>
    </item>
    <item>
      <title>Compare Field and Pattern</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222057#M74803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like Rakesh's solution. You might be able to speed it up by eliminating the for each loop. I don't think it necessary. I think it can be done with:&lt;/P&gt;&lt;P&gt;P4:&lt;BR /&gt;load URL as MatchedPattern&lt;BR /&gt;RESIDENT P2&lt;BR /&gt;WHERE wildmatch(URL, $(vAllPaterns));&lt;/P&gt;&lt;P&gt;See attached modifcation of Rakesh's example.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 06:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222057#M74803</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-07-14T06:53:22Z</dc:date>
    </item>
    <item>
      <title>Compare Field and Pattern</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222058#M74804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after testing, rakesh's solution is the faster one for my case and works just fine. thanks to the both of you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 07:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Field-and-Pattern/m-p/222058#M74804</guid>
      <dc:creator />
      <dc:date>2010-07-14T07:47:22Z</dc:date>
    </item>
  </channel>
</rss>

