<?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: wildcard matching within if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582269#M479537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to enclose the variable in apostrophes, and use 'wildmatch'&lt;/P&gt;&lt;P&gt;...if wildmatch('$(name)','*BRR_*') then ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 11:29:20 GMT</pubDate>
    <dc:creator>juleshartley</dc:creator>
    <dc:date>2014-01-29T11:29:20Z</dc:date>
    <item>
      <title>wildcard matching within if statement</title>
      <link>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582267#M479535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Hi everyone,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;today, Im having simple problem that is driving me crazy!&lt;/P&gt;&lt;P&gt;All I want to do is to evaluate if supplyed text matches an expression and then do something:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let maskedCount = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET name = 'BRR_wrwq';&lt;/P&gt;&lt;P&gt;if Match($(name), '*BRR_*') then&lt;/P&gt;&lt;P&gt;&amp;nbsp; let maskedCount = $(maskedCount) + 1;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried all of if and *Match functions in perhaps all combinations possible but its doing just what it wants &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this particular case Im referring to &lt;A href="https://community.qlik.com/thread/80509"&gt;wildmatch function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It still skips the let statement and if I add &amp;lt;&amp;gt;0 it allways enters it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;Im using QlikView 11 SR1 64bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for your responses!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 10:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582267#M479535</guid>
      <dc:creator />
      <dc:date>2014-01-29T10:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard matching within if statement</title>
      <link>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582268#M479536</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;This should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let name = 'BRR_wrwq';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If WildMatch('$(name)', '*BRR_*') then&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Let maskedCount = maskedCount + 1;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;End If&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Let name = 'BRR_wrwq';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let maskedCount = maskedCount + If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WildMatch('$(name)', '*BRR_*'), 1, 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 11:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582268#M479536</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-29T11:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard matching within if statement</title>
      <link>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582269#M479537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to enclose the variable in apostrophes, and use 'wildmatch'&lt;/P&gt;&lt;P&gt;...if wildmatch('$(name)','*BRR_*') then ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 11:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582269#M479537</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-01-29T11:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard matching within if statement</title>
      <link>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582270#M479538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both you solutions are working, thank you very much!&lt;BR /&gt;Mystery solved!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 11:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wildcard-matching-within-if-statement/m-p/582270#M479538</guid>
      <dc:creator />
      <dc:date>2014-01-29T11:30:44Z</dc:date>
    </item>
  </channel>
</rss>

