<?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: Wildmatch using field as value list in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1539917#M38981</link>
    <description>&lt;P&gt;Okay, this is odd ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that the "ValueList()" function could have helped me, but it only works in the graphical part.&lt;/P&gt;&lt;P&gt;To be honest i never encountered the "Evaluate" function before, your learned me something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now it works as i expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much Vegar &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://community.qlik.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 21:52:17 GMT</pubDate>
    <dc:creator>bfournet</dc:creator>
    <dc:date>2019-02-05T21:52:17Z</dc:date>
    <item>
      <title>Wildmatch using field as value list</title>
      <link>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1539906#M38979</link>
      <description>&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I'm trying to load data using wildmatch function in a where clause.&lt;/P&gt;&lt;P&gt;Usually, this is not a problem if the matching value list is hard coded inside the script or stored in a variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, what i need is to read the rule from a field of my table (RULE).&lt;/P&gt;&lt;P&gt;But it doesn't work and don't understand why ... &lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://10.236.58.52/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an idea ? Did I missed something ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can test by pasting the following script. Thank you very much !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET vMatchRule = 'B*','C*';&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;DATA_TMP:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LOAD * Inline [&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;VALUE, RULE&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AIRPLANE, "'B*','C*'"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOAT, "'B*','C*'"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAR, "'B*','C*'"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRAIN, "'B*','C*'"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DATA:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident DATA_TMP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//Where WildMatch(VALUE, RULE); // Doesn't work, why ?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Where WildMatch(VALUE, $(vMatchRule)); // Works !&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;DROP Table DATA_TMP;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1539906#M38979</guid>
      <dc:creator>bfournet</dc:creator>
      <dc:date>2024-11-16T06:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch using field as value list</title>
      <link>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1539908#M38980</link>
      <description>&lt;P&gt;Don't ask why, but the following tweak seems to work.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA_TMP:
LOAD * Inline [
    VALUE, RULE
    AIRPLANE, "'B*','C*'"
    BOAT, "'B*','C*'"
    CAR, "'B*','C*'"
    TRAIN, "'B*','C*'"
]
 WHERE &lt;BR /&gt;      WildMatch(VALUE,evaluate(SubField(RULE,',')))
;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Feb 2019 21:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1539908#M38980</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-02-05T21:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch using field as value list</title>
      <link>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1539917#M38981</link>
      <description>&lt;P&gt;Okay, this is odd ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that the "ValueList()" function could have helped me, but it only works in the graphical part.&lt;/P&gt;&lt;P&gt;To be honest i never encountered the "Evaluate" function before, your learned me something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now it works as i expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much Vegar &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://community.qlik.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 21:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1539917#M38981</guid>
      <dc:creator>bfournet</dc:creator>
      <dc:date>2019-02-05T21:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch using field as value list</title>
      <link>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1543118#M39175</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried to reproduce the same scenario but with an other dataset (see attached QVD file). It contains the nine following records :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5777iA61B5CD1E61FD2C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The goal is to only keep rows , where the strings contained in field "SECURITY_KEY" doesn't start by 'B' or 'C'.&lt;/P&gt;&lt;P&gt;Consequently, it should only load and keep three records, those containing the words : ABRICOT, ABEILLE, ASSIETTE.&lt;/P&gt;&lt;P&gt;I tried to load it using the following script :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DATA:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LOAD Distinct&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USER,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SECURITY_KEY,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ListeValeursExclues&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM [lib://Bureau/DATA.qvd]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(qvd)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Where Not WildMatch(SECURITY_KEY, Evaluate(SubField(ListeValeursExclues,',')));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it still doesn't work, all of the records are loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ? This thing is really weird&amp;nbsp;&lt;img id="smileymad" class="emoticon emoticon-smileymad" src="https://community.qlik.com/i/smilies/16x16_smiley-mad.png" alt="Smiley Mad" title="Smiley Mad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 15:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1543118#M39175</guid>
      <dc:creator>bfournet</dc:creator>
      <dc:date>2019-02-12T15:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch using field as value list</title>
      <link>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1543264#M39180</link>
      <description>&lt;P&gt;The subfield()&amp;nbsp; splits your listevaleursexclude into two rows, and at leas one of them will always return zero. Therefore, will all values be included in your expressioin. You could do an workaround like my script below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TMP:
LOAD 
     SECURITY_KEY
FROM
	DATA.qvd (qvd)
Where  
	WildMatch(SECURITY_KEY, Evaluate(SubField(ListeValeursExclues,','))) ;
;

LOAD &lt;BR /&gt;     USER, 
     SECURITY_KEY, 
     ListeValeursExclues
FROM
	DATA.qvd (qvd)
WHERE 
	NOT EXISTS(SECURITY_KEY)
;
DROP TABLE TMP;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 21:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Wildmatch-using-field-as-value-list/m-p/1543264#M39180</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-02-12T21:16:15Z</dc:date>
    </item>
  </channel>
</rss>

