<?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 Wildcards within an IF statement in a Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098407#M637297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I multiple IF statements for data scrubbing purposes.&amp;nbsp; I've tested one but when I use a wildcard it just doesn't work. It seems to ignore it or it tries to literally search for the asterisk within the field data. I also tried % character for a wildcard. No luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ([Make] = 'Mercedes', &lt;SPAN style="font-size: 13.3333px;"&gt; 'Mercedes Benz', [Make])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If ([Make] = 'Mercedes&lt;STRONG&gt;*&lt;/STRONG&gt;', 'Mercedes Benz', [Make])&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;(doesn't work)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2016 19:16:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-18T19:16:36Z</dc:date>
    <item>
      <title>Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098407#M637297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I multiple IF statements for data scrubbing purposes.&amp;nbsp; I've tested one but when I use a wildcard it just doesn't work. It seems to ignore it or it tries to literally search for the asterisk within the field data. I also tried % character for a wildcard. No luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ([Make] = 'Mercedes', &lt;SPAN style="font-size: 13.3333px;"&gt; 'Mercedes Benz', [Make])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If ([Make] = 'Mercedes&lt;STRONG&gt;*&lt;/STRONG&gt;', 'Mercedes Benz', [Make])&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;(doesn't work)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 19:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098407#M637297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T19:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098408#M637298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try &lt;STRONG&gt;If(Wildmatch([Make],'Mercedes*')=1,'Mercedes Benz',[Make])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read more about Wildmatch function in reference manual or QlikView Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Milosz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 19:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098408#M637298</guid>
      <dc:creator />
      <dc:date>2016-05-18T19:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098409#M637299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if (wildmatch(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Make] , 'Mercedes&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;')&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&amp;gt;0&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;'Mercedes Benz', [Make])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 19:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098409#M637299</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-05-18T19:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098410#M637300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Index(Make, 'Mercedes'), '&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Mercedes Benz', Make)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 20:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098410#M637300</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-18T20:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098411#M637301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If(Make like '*Mercedes*', Make)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 21:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098411#M637301</guid>
      <dc:creator>holmlund</dc:creator>
      <dc:date>2016-05-18T21:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098412#M637302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;If ([Make] &lt;STRONG style=": ; color: #ff0000;"&gt;like&lt;/STRONG&gt; 'Mercedes&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;', 'Mercedes Benz', [Make]) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 21:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098412#M637302</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-18T21:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098413#M637303</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;maybe also helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/188907"&gt;if condition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 21:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098413#M637303</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-18T21:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098414#M637304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much everyone for the WILDMATCH function and the INDEX. I just looked them up in the reference. Wildmatch says it is case sensitive. Sunny do you know if the same is so for Index?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 21:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098414#M637304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T21:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098415#M637305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Index is case sensitive as well. To get around this, you can use Upper() or Lower() functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Index(Lower(Make), 'mercedes'), '&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Mercedes Benz', Make)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 22:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098415#M637305</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-18T22:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098416#M637306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WildMatch() and like both are case &lt;STRONG style=": ; font-size: 10pt; text-decoration: underline;"&gt;in&lt;/STRONG&gt;sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ConditionalFunctions/wildmatch.htm?q=wildmatch" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ConditionalFunctions/wildmatch.htm?q=wildmatch"&gt;wildmatch ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 22:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098416#M637306</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-18T22:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards within an IF statement in a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098417#M637307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(SUBSTRINGCOUNT(UPPER(MAKE),'MERCEDES') &amp;gt; 0, 'Mercedes Benz', Make) AS ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 11:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcards-within-an-IF-statement-in-a-Script/m-p/1098417#M637307</guid>
      <dc:creator />
      <dc:date>2016-06-14T11:59:32Z</dc:date>
    </item>
  </channel>
</rss>

