<?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: Dynamic Wildmatch expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530461#M198291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end I used some of the suggestions made and the following is my code straight from the application:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CodeList:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD concat(chr(39) &amp;amp; A &amp;amp; '*' &amp;amp; chr(39), ',') As ValueList&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CommodityCodes.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, no labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vSearch = Peek('ValueList',0,'CodeList');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and used &lt;EM&gt;vSearch&lt;/EM&gt; as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; wildmatch(CommodityCode,$(vSearch)) As Match;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2013 18:41:51 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2013-11-28T18:41:51Z</dc:date>
    <item>
      <title>Dynamic Wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530456#M198286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;In the below expression (highlighted in yelow) the components ('8418*', '8423*' etc) will come from an Excel file - there are over 100 of them although I am just showing 4 here for clarity. As this list of numbers is likely to change from time to time this is the only sensible way that I could come up with to incorporate this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;The idea is that I will display all records that have a nin-zero "GP97Match" value..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Two questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;a) Does anyone know how I can build this dynamic list, and/or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;b) Are there better ways of doing this - i.e. perhaps store the list of numbers in a QlikView table and link it somehow with my data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Thanx in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Alexis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43476" class="jive-image-thumbnail jive-image" onclick="" alt="wildmatch.jpg" src="https://community.qlik.com/legacyfs/online/43476_wildmatch.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 10:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530456#M198286</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-07-02T10:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530457#M198287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; One possible way can be something like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Load the table from excel where the search criteria is stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Concatenate all the values with the comma and *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Example script is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search:&lt;BR /&gt;Load Value&amp;amp;'*' as Value inline [&lt;BR /&gt;Value&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;c&lt;BR /&gt;d&lt;BR /&gt;e&lt;BR /&gt;f&lt;BR /&gt;g&lt;BR /&gt;h&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Concat:&lt;BR /&gt;Load&amp;nbsp; Replace(chr(34)&amp;amp; Concat(Value,',')&amp;amp;chr(34),',','","') as Search&lt;BR /&gt;Resident Search;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let vSearch = Peek('Search',0,'Concat');&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Load WildMatch(ABC,$(vSearch)) as XYZ&lt;BR /&gt;From XYZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 10:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530457#M198287</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-07-02T10:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530458#M198288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helpful answer - the delimiter however is single quotes chr(39) and not double quotes chr(34).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got muddled up trying to create a variable that would give us the desired string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following did not work - can you assist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET test = chr(39) &amp;amp; chr(39) &amp;amp; chr(44) &amp;amp; chr(39) &amp;amp; chr(39); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 11:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530458#M198288</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-07-02T11:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530459#M198289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you manage to solve this? I have a similar situation.. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 16:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530459#M198289</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2013-11-26T16:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530460#M198290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;T_Patterns:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Patterns&lt;/P&gt;&lt;P&gt;FROM data.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Patterns$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Patterns has two entries Matt and Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_Temp:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; Replace(chr(39)&amp;amp; Concat('*' &amp;amp; Patterns &amp;amp; '*',',') &amp;amp; chr(39),&amp;nbsp;&amp;nbsp; ',' ,&amp;nbsp; Chr(39) &amp;amp; ',' &amp;amp; chr(39)) as Search&lt;/P&gt;&lt;P&gt;Resident T_Patterns;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vSearch = Peek('Search',0,'T_Temp');&lt;/P&gt;&lt;P&gt;// vSearch is now '*Matt*','*Mark*'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load only people whose name has a Matt or Mark somewhere in the name&lt;/P&gt;&lt;P&gt;T_People:&lt;/P&gt;&lt;P&gt;Load * where MatchFlag &amp;gt; 0;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wildmatch(Fullname, $(vSearch)) as MatchFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fullname,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City&lt;/P&gt;&lt;P&gt;FROM data.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [People$]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 03:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530460#M198290</guid>
      <dc:creator>jonathjl</dc:creator>
      <dc:date>2013-11-27T03:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530461#M198291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end I used some of the suggestions made and the following is my code straight from the application:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CodeList:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD concat(chr(39) &amp;amp; A &amp;amp; '*' &amp;amp; chr(39), ',') As ValueList&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CommodityCodes.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, no labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vSearch = Peek('ValueList',0,'CodeList');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and used &lt;EM&gt;vSearch&lt;/EM&gt; as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; wildmatch(CommodityCode,$(vSearch)) As Match;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 18:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530461#M198291</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-11-28T18:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530462#M198292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help, both answered were valuable and work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Dec 2013 15:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Wildmatch-expression/m-p/530462#M198292</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2013-12-07T15:41:17Z</dc:date>
    </item>
  </channel>
</rss>

