<?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: Wilematch text filtering and count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wilematch-text-filtering-and-count/m-p/2011536#M1221775</link>
    <description>&lt;P&gt;Try moving the match statement inside the count() statement, rather than vice versa, e.g.&lt;/P&gt;
&lt;P&gt;Count(wildmatch(R_TITLE,'*Low*'))&lt;/P&gt;
&lt;P&gt;or Count(if(WildMatch(R_TITLE,'*Low*'),1))&lt;/P&gt;
&lt;P&gt;Or using set analysis rather than if() statements.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 15:01:53 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-12-01T15:01:53Z</dc:date>
    <item>
      <title>Wilematch text filtering and count</title>
      <link>https://community.qlik.com/t5/QlikView/Wilematch-text-filtering-and-count/m-p/2011534#M1221774</link>
      <description>&lt;P&gt;I have a request to do some text filtering (which I know is a bad idea but unfortunately it's the only option at this time) and I am trying to get the totals in an overview table.&lt;/P&gt;
&lt;P&gt;The overview table looks like this&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;No. of Entries&lt;/TD&gt;
&lt;TD width="20%"&gt;Title&lt;/TD&gt;
&lt;TD width="20%"&gt;Low&lt;/TD&gt;
&lt;TD width="20%"&gt;Medium&lt;/TD&gt;
&lt;TD width="20%"&gt;High&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;The No. of Entries is simply:&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=if(
Match([OFFICE_CODE], $(vFilterOffice)),
count(R_TITLE)
)&lt;/LI-CODE&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;That is working fine. The Low, Medium, High counts however always return -&lt;/P&gt;
&lt;P&gt;I have tried the following different methods and can not get the count to return.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=if(wildmatch(R_TITLE, '*Low*'), count(R_TITLE))&lt;/LI-CODE&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=if(
Match([OFFICE_CODE], $(vFilterOffice)),
(
if(wildmatch(R_TITLE, '*Low*'), count(R_TITLE)
)
)
)&lt;/LI-CODE&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wilematch-text-filtering-and-count/m-p/2011534#M1221774</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2022-12-01T14:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wilematch text filtering and count</title>
      <link>https://community.qlik.com/t5/QlikView/Wilematch-text-filtering-and-count/m-p/2011536#M1221775</link>
      <description>&lt;P&gt;Try moving the match statement inside the count() statement, rather than vice versa, e.g.&lt;/P&gt;
&lt;P&gt;Count(wildmatch(R_TITLE,'*Low*'))&lt;/P&gt;
&lt;P&gt;or Count(if(WildMatch(R_TITLE,'*Low*'),1))&lt;/P&gt;
&lt;P&gt;Or using set analysis rather than if() statements.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 15:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wilematch-text-filtering-and-count/m-p/2011536#M1221775</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-12-01T15:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wilematch text filtering and count</title>
      <link>https://community.qlik.com/t5/QlikView/Wilematch-text-filtering-and-count/m-p/2011549#M1221776</link>
      <description>&lt;P&gt;Thank you, moving it inside the count statement worked.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 15:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wilematch-text-filtering-and-count/m-p/2011549#M1221776</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2022-12-01T15:16:22Z</dc:date>
    </item>
  </channel>
</rss>

