<?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: SubStringCount with wild match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123850#M764952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't work in the Load Script. Invalid expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2018 08:40:18 GMT</pubDate>
    <dc:creator>gerhardl</dc:creator>
    <dc:date>2018-07-11T08:40:18Z</dc:date>
    <item>
      <title>SubStringCount with wild match</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123848#M764950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to count the number of times a certain string appears within a single field, which can easily be done with SubStringCount.&lt;/P&gt;&lt;P&gt;But I want to count a string that always looks the same except for a number in the middle of it, so I need to do a wildmatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string I'm looking for will be something like this:&lt;/P&gt;&lt;P&gt;"RuleSet 7: FAILED" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the "7" can be any number (1 to 999).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I do a wildmatch like this, it just returns a 0 or 1 (true or false):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wildmatch(STATUS_DESC,'*&lt;SPAN style="font-size: 13.3333px;"&gt;RuleSet * FAILED*&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I count the NUMBER of times I get the &lt;SPAN style="font-size: 13.3333px;"&gt;"RuleSet *: FAILED"&amp;nbsp; data string?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123848#M764950</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount with wild match</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123849#M764951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(-WildMatch(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;STATUS_DESC, '*&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RuleSet * FAILED*&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 15:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123849#M764951</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T15:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount with wild match</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123850#M764952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't work in the Load Script. Invalid expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 08:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123850#M764952</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2018-07-11T08:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount with wild match</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123851#M764953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try Like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA_Temp:&lt;/P&gt;&lt;P&gt;LOAD *,PurgeChar (STATUS_DESC,'0123456789' ) as purgechar INLINE [&lt;/P&gt;&lt;P&gt;STATUS_DESC&lt;/P&gt;&lt;P&gt;Aaa&lt;/P&gt;&lt;P&gt;bd&lt;/P&gt;&lt;P&gt;n&lt;/P&gt;&lt;P&gt;Ad&lt;/P&gt;&lt;P&gt;bd&lt;/P&gt;&lt;P&gt;cd&lt;/P&gt;&lt;P&gt;Aaa&lt;/P&gt;&lt;P&gt;ba&lt;/P&gt;&lt;P&gt;mm&lt;/P&gt;&lt;P&gt;RuleSet 7: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 8: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 9: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 10: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 11: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 12: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 13: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 14: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 15: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 16: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 17: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 18: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 19: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 20: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 21: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 22: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 23: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 24: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 25: FAILED&lt;/P&gt;&lt;P&gt;RuleSet 26: FAILED&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *,1 as Flag Resident DATA_Temp&lt;/P&gt;&lt;P&gt;where WildMatch(STATUS_DESC,'*RuleSet*') or WildMatch(STATUS_DESC,'*FAILED*');&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207560_Capture.PNG" style="height: 318px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 09:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123851#M764953</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2018-07-11T09:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount with wild match</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123852#M764954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be just do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(WildMatch(&lt;SPAN style="font-style: inherit;"&gt;STATUS_DESC, '*&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;RuleSet * FAILED*&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;'), 1, 0) as Flag&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should give you 1 for everytime the condition is met, 0 otherwise. T&lt;SPAN style="font-size: 10pt;"&gt;hen you can just &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;Sum(Flag)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; to get the count&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 10:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-with-wild-match/m-p/123852#M764954</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-11T10:20:45Z</dc:date>
    </item>
  </channel>
</rss>

