<?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: Match Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897143#M990473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that you just need the function WildMatch() - that allows you to match one value (or the value of one field) against several values - and act accordingly. You can wrap it like PICK(MATCH()) to pick an action or output a specific value, depending on which value the field in one specific row matches.&lt;/P&gt;&lt;P&gt;Wildmatch() allows you to use wildcards - the wildcard for any number of letters is the asterisk *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your expression will be sth like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp; PICK(Wildmatch(Product, *b*, *k*, *B*, *K*), 'Error', 'Error', 'Warning', 'Warning')&amp;nbsp; &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do that in the script in a LOAD, you can give this any fieldname and then you can show a listbox of that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2015 10:14:15 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-07-17T10:14:15Z</dc:date>
    <item>
      <title>Match Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897142#M990472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Hi Experts, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;How to write the below expression, I have to show this(Error and Warning) in List box as a filter. I have tried with Wildmatch but its case insensitive so I am not able to get it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;I have Prodcut column Ex: Its just an example, In real I have millions of records&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Product&lt;BR /&gt; Abc&lt;BR /&gt; ABC&lt;BR /&gt; cBc&lt;BR /&gt; CBc&lt;/P&gt;&lt;P&gt;KZX&lt;/P&gt;&lt;P&gt;kYS&lt;BR /&gt; ] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to expression like below:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;if&amp;nbsp; &lt;SPAN style="font-family: Calibri;"&gt;PRODUCTS IN ('%b%', '%k%') as Error&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;if PRODUCTS IN ('%B%','%K%') as&amp;nbsp; WARNING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Then my List box should show like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Exception(Filter name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Warning&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;So Error should be equal to -&amp;nbsp; Abc and kYS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Warning should be equal to - ABC,cBc,CBc,KZX&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897142#M990472</guid>
      <dc:creator />
      <dc:date>2015-07-17T10:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Match Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897143#M990473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that you just need the function WildMatch() - that allows you to match one value (or the value of one field) against several values - and act accordingly. You can wrap it like PICK(MATCH()) to pick an action or output a specific value, depending on which value the field in one specific row matches.&lt;/P&gt;&lt;P&gt;Wildmatch() allows you to use wildcards - the wildcard for any number of letters is the asterisk *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your expression will be sth like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp; PICK(Wildmatch(Product, *b*, *k*, *B*, *K*), 'Error', 'Error', 'Warning', 'Warning')&amp;nbsp; &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do that in the script in a LOAD, you can give this any fieldname and then you can show a listbox of that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897143#M990473</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-17T10:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Match Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897144#M990474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write in expression&lt;/P&gt;&lt;P&gt;Pick(Wildmatch(Product,'*b*','*k*','*B*','*K*'),'&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 13px;"&gt;Error&lt;/SPAN&gt;','&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 13px;"&gt;Error&lt;/SPAN&gt;','&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 13px;"&gt;WARNING&lt;/SPAN&gt;','&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 13px;"&gt;WARNING&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use also the same in backend script like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Pick(Wildmatch(Product,'*b*','*k*','*B*','*K*'),'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 13px;"&gt;Error&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 13px;"&gt;Error&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 13px;"&gt;WARNING&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 13px;"&gt;WARNING&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;') as flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897144#M990474</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2015-07-17T10:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Match Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897145#M990475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but it showing only Error&amp;nbsp; as it comparing both small letter or upper letter as one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897145#M990475</guid>
      <dc:creator />
      <dc:date>2015-07-17T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Match Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897146#M990476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but it showing only Error&amp;nbsp; as it comparing both small letter or upper letter as one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897146#M990476</guid>
      <dc:creator />
      <dc:date>2015-07-17T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Match Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897147#M990477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(Index(Product,'b')&amp;gt;0 or Index(Product,'k')&amp;gt;0, 'error',&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Index(Product,'B')&amp;gt;0 or Index(Product,'K')&amp;gt;0, 'Warning')) as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897147#M990477</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-17T10:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Match Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897148#M990478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897148#M990478</guid>
      <dc:creator />
      <dc:date>2015-07-17T10:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Match Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897149#M990479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not use wildmatch in your scenario as it does a case insensitive search. Please try the following&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD *Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Abc&lt;/P&gt;&lt;P&gt;ABC&lt;/P&gt;&lt;P&gt;cBc&lt;/P&gt;&lt;P&gt;CBc&lt;/P&gt;&lt;P&gt;KZX&lt;/P&gt;&lt;P&gt;kYS&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD Product,&lt;/P&gt;&lt;P&gt;//if (WildMatch(Product,'?b?', '?k?'),1,0) as Error,&lt;/P&gt;&lt;P&gt;//if (WildMatch(Product,'?B?', '?K?'),1,0) as Warning&lt;/P&gt;&lt;P&gt;if (SubStringCount(Product,'b')&amp;gt;0 or SubStringCount(Product,'k') ,1,0) as Error,&lt;/P&gt;&lt;P&gt;if (SubStringCount(Product,'B')&amp;gt;0 or SubStringCount(Product,'K') ,1,0) as Warning&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Expression/m-p/897149#M990479</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-17T10:48:21Z</dc:date>
    </item>
  </channel>
</rss>

