<?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 Generate new table based on resident in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265819#M99927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I tried that just now and still only get one row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AA 'word','best'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2011 10:24:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-06T10:24:27Z</dc:date>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265813#M99921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure this is a simple question, but I am having a mind blank, hopefully someone can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an existing table with a description (text) field.&amp;nbsp; I want to generate a new table that has the UID and a few specific words I find in the description field with duplication (i.e. a new row per word that I'm searching for).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example with 1 row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, Text&lt;/P&gt;&lt;P&gt;AA, The quick brown fox jumps over the lazy dog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use the wildmatch to search for the words of interest, in this case I'm searching for brown, over and lazy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want another table to generate that links on ID that would now have 3 rows because I found my 3 words:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, Wordmatch&lt;/P&gt;&lt;P&gt;AA, brown&lt;/P&gt;&lt;P&gt;AA, over&lt;/P&gt;&lt;P&gt;AA, lazy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone think of an ingenious way to do this efficiently?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265813#M99921</guid>
      <dc:creator />
      <dc:date>2011-06-06T09:12:58Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265814#M99922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Text&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AA, the word is the best&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Keywords:&lt;BR /&gt;load ID,&lt;BR /&gt;if(isnull(wildmatch(Text,'*word*')), null(), 'word') as Wordmatch&lt;BR /&gt;resident File;&lt;/P&gt;&lt;P&gt;load ID,&lt;BR /&gt;if(isnull(wildmatch(Text,'*best*')), null(), 'best') as Wordmatch&lt;BR /&gt;resident File;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(with other keywords, but the result is the same)&lt;/P&gt;&lt;P&gt;Regarsds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265814#M99922</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T09:46:38Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265815#M99923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion.&amp;nbsp; That's not a bad idea, so you just let them all auto concatenate into a new table Keywords.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is effective when searching for a few words, what if my list of words grew to a more larger size, is there a more efficient way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definitely work though, so I appreciate the suggestion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265815#M99923</guid>
      <dc:creator />
      <dc:date>2011-06-06T09:49:48Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265816#M99924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the do a loop and define the words in line Keywords:&lt;/P&gt;&lt;P&gt;File:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Text&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AA, the word is the best&lt;BR /&gt;];&lt;BR /&gt;for each Keyword in 'word','best'&lt;BR /&gt;Keywords:&lt;BR /&gt;load ID,&lt;BR /&gt;if(isnull(wildmatch(Text,'*$(Keyword)*')), null(), '$(Keyword)') as Wordmatch&lt;BR /&gt;resident File;&lt;/P&gt;&lt;P&gt;next;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265816#M99924</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T09:54:49Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265817#M99925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried your suggestion and I stored my Keyword variable as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Keyword='word;best';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is I only get 1 row with Wormatch as 'word;best'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have an individual row for each word (like below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;AA, word&lt;/P&gt;&lt;P&gt;AA, best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps it is how I have defined my variable for the 'loop'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 10:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265817#M99925</guid>
      <dc:creator />
      <dc:date>2011-06-06T10:03:53Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265818#M99926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is not a good idea with the SET-command.&lt;/P&gt;&lt;P&gt;List your Keywords like&lt;/P&gt;&lt;P&gt;for each Keyword in 'word','best', 'word3', 'word4' ..... and so on.&lt;/P&gt;&lt;P&gt;Using a variable you need to configure the ' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 10:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265818#M99926</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265819#M99927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I tried that just now and still only get one row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AA 'word','best'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 10:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265819#M99927</guid>
      <dc:creator />
      <dc:date>2011-06-06T10:24:27Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265820#M99928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it issem to that there is another error in the script.&lt;/P&gt;&lt;P&gt;I get the right result:&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Unbenannt.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/5087_Unbenannt.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 10:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265820#M99928</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T10:28:11Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265821#M99929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could help you?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;File:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Text&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AA, the word is the best&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BB, the best word is&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;join&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Table containing all your searched words&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt;SearchedWord&lt;BR /&gt;word&lt;BR /&gt;best&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keywords:&lt;BR /&gt;load ID,&lt;BR /&gt;if(isnull(wildmatch(Text,'*'&amp;amp;SearchedWord&amp;amp;'*')), null(), SearchedWord) as Wordmatch&lt;BR /&gt;resident File;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Beyrem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 10:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265821#M99929</guid>
      <dc:creator />
      <dc:date>2011-06-06T10:30:55Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265822#M99930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Beyrem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works well, although I get the null rows where there is no match.&amp;nbsp; I ideally want to create a lookup table that only has IDs where there are matching words and a single word per row (as in your example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I had a long list of words and a really large table of the descriptions, this could get rather unfortunately large.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 11:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265822#M99930</guid>
      <dc:creator />
      <dc:date>2011-06-06T11:26:28Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265823#M99931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please copy/paste what your variable looks like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 12:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265823#M99931</guid>
      <dc:creator />
      <dc:date>2011-06-06T12:46:48Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265824#M99932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I define the loop with&lt;/P&gt;&lt;P&gt;for each Keyword in 'word','best'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in loop 1 the variable "Keyword" is word, in loop 2 it is best.&lt;/P&gt;&lt;P&gt;There is no other variable.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 12:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265824#M99932</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T12:56:45Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265825#M99933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry a bit confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you refer to $(Keyword), where is that variable pulling from and what does it look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 13:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265825#M99933</guid>
      <dc:creator />
      <dc:date>2011-06-06T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265826#M99934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; you list the values in the line &lt;/P&gt;&lt;P&gt;for each Keyword in 'value1', 'value2', 'value3' .... and so on&lt;/P&gt;&lt;P&gt;then the loop uses each value in this list and set it to the variable $(Kalendertag)&lt;/P&gt;&lt;P&gt;But you won't see a variable within all values of the loops&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 13:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265826#M99934</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T13:16:18Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265827#M99935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So do you mean recreating the second table code for each keyword?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keywords:&lt;/P&gt;&lt;P&gt;load ID,&lt;/P&gt;&lt;P&gt;if(isnull(wildmatch(Text,'*word*')), null(), 'word') as Wordmatch&lt;/P&gt;&lt;P&gt;resident File;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load ID,&lt;/P&gt;&lt;P&gt;if(isnull(wildmatch(Text,'*best*')), null(), 'best') as Wordmatch&lt;/P&gt;&lt;P&gt;resident File;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was confused because you used the term 'loop' which to me implies an automated process, this is a repeated statement for each keyword.&amp;nbsp; Was this what you meant?&amp;nbsp; Sorry if I've completely missed something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 13:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265827#M99935</guid>
      <dc:creator />
      <dc:date>2011-06-06T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265828#M99936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; you do missunderstand&lt;/P&gt;&lt;P&gt;you just need to program one time.&lt;/P&gt;&lt;P&gt;The line&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;P&gt;﻿if(isnull(wildmatch(Text,'*$(Keyword)*'),null(),'$(Keyword)') as Wordmatch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives you the value the loop has actual find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 13:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265828#M99936</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T13:27:14Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265829#M99937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks, so my confusion is where and how $(Keyword) is stored - this to me is referring to a variable, so how has your Keyword variable been stored?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 13:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265829#M99937</guid>
      <dc:creator />
      <dc:date>2011-06-06T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265830#M99938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;taken from page 296 of the qv Refernce Manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each..Next&lt;/P&gt;&lt;P&gt;The for each..next control statement creates a loop which executes for each&lt;/P&gt;&lt;P&gt;value in a comma separated list. The statements inside the loop enclosed by&lt;/P&gt;&lt;P&gt;for and next will be executed for each value of the list. Special syntax makes&lt;/P&gt;&lt;P&gt;it possible to generate lists with file and directory names in the current directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin posted the correct code earlier on oin this thread. He chose "Keyword" as his varaible but coudlhave called it anything he wanted. The For Each .. Next loop does not require thta the vraible be declared beforehand with a set/let comand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for each&lt;/STRONG&gt; Keyword &lt;STRONG&gt;in&lt;/STRONG&gt; 'word','best'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keywords:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isnull(wildmatch(Text,'*$(Keyword)*')), null(), '$(Keyword)') as Wordmatch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident File;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps - give Martin his 10 points!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting thread - I think you shoudl add to Martin's code a where clause on your load command to avoid the creation of records with null in the WordMatch field. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 13:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265830#M99938</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-06T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265831#M99939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah thanks for the clarification.&amp;nbsp; I wasn't even aware that loops were possible!&amp;nbsp; This is great news for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 14:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265831#M99939</guid>
      <dc:creator />
      <dc:date>2011-06-06T14:01:18Z</dc:date>
    </item>
    <item>
      <title>Generate new table based on resident</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265832#M99940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wondered if you could clarify what you would include on your where clause for this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 11:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-new-table-based-on-resident/m-p/265832#M99940</guid>
      <dc:creator />
      <dc:date>2011-06-20T11:39:48Z</dc:date>
    </item>
  </channel>
</rss>

