<?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: Counting excluding a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1603832#M736152</link>
    <description>&lt;P&gt;Try this with wildmatch (*) within double quotes.... so instead of 'ROM', you would use "ROM*"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count( DISTINCT {&amp;lt;C -= {"ROM*"}&amp;gt;} A&amp;amp;'|'&amp;amp;B)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 16:54:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-07-18T16:54:39Z</dc:date>
    <item>
      <title>Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1603813#M736150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am counting 2 columns A and B, &lt;STRONG&gt;Count( DISTINCT A&amp;amp;'|'&amp;amp;B)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to exclude any values in column C with the prefix "&lt;STRONG&gt;ROM&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;tried using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count( DISTINCT {&amp;lt;C-={'ROM'}&amp;gt;} A&amp;amp;'|'&amp;amp;B)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both&amp;nbsp;&lt;STRONG&gt;Count( DISTINCT A&amp;amp;'|'&amp;amp;B)&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Count( DISTINCT {&amp;lt;C-={'ROM'}&amp;gt;} A&amp;amp;'|'&amp;amp;B)&lt;/STRONG&gt; gave me same result.&lt;/P&gt;&lt;P&gt;PS: An example for a value is 'ROM Truck Model'&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1603813#M736150</guid>
      <dc:creator>abhi1693r</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1603831#M736151</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Count( DISTINCT {&amp;lt;C-={'ROM'}&amp;gt;} A&amp;amp;'|'&amp;amp;B) &lt;/STRONG&gt;will only exclude rows where C = 'Rom' exactly. You need to use a wildcard search (*)&amp;nbsp;to look for Rom anywhere in the word. Like: &lt;STRONG&gt;Count( DISTINCT {&amp;lt;C-={'*ROM*'}&amp;gt;} A&amp;amp;'|'&amp;amp;B) or Count( DISTINCT {&amp;lt;C-={'ROM*'}&amp;gt;} A&amp;amp;'|'&amp;amp;B) to only remove values that start with ROM.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1603831#M736151</guid>
      <dc:creator>lockematthewp</dc:creator>
      <dc:date>2019-07-18T16:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1603832#M736152</link>
      <description>&lt;P&gt;Try this with wildmatch (*) within double quotes.... so instead of 'ROM', you would use "ROM*"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count( DISTINCT {&amp;lt;C -= {"ROM*"}&amp;gt;} A&amp;amp;'|'&amp;amp;B)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1603832#M736152</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-18T16:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1604743#M736153</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;How can I have two conditions in this one line. Lets say ROM and COM.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1604743#M736153</guid>
      <dc:creator>abhi1693r</dc:creator>
      <dc:date>2019-07-22T16:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1604762#M736154</link>
      <description>&lt;P&gt;This&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count( DISTINCT {&amp;lt;C -= {"ROM*", "*COM*"}&amp;gt;} A&amp;amp;'|'&amp;amp;B)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 17:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1604762#M736154</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-22T17:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606541#M736155</link>
      <description>&lt;P&gt;What if "COM" is in another column, lets say 'P'?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606541#M736155</guid>
      <dc:creator>abhi1693r</dc:creator>
      <dc:date>2019-07-26T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606542#M736156</link>
      <description>&lt;P&gt;Also, Is there a work around. In some of my cases, this formula does not work!&lt;/P&gt;&lt;P&gt;Help appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606542#M736156</guid>
      <dc:creator>abhi1693r</dc:creator>
      <dc:date>2019-07-26T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606552#M736157</link>
      <description>&lt;P&gt;Not sure what you mean... can you share an example to show where it doesn't work?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606552#M736157</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-26T14:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606621#M736158</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;It will be difficult to give an example, but I will try.&lt;/P&gt;&lt;P&gt;I have table A LEFT JOIN(A) table B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A has a few extra rows which are added to the result after the commons are selected (Just how a left join works)&lt;/P&gt;&lt;P&gt;Now I am using&amp;nbsp;&lt;STRONG&gt;=Count( DISTINCT {&amp;lt;C-={"ROM"}&amp;gt;} A&amp;amp;'|'&amp;amp;B)&amp;nbsp;&lt;/STRONG&gt;and the system is still counting those "extra rows" which got added from in Table A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I think, the formula is working. But still I don't know why its not filtering properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried,&amp;nbsp;&lt;STRONG&gt;Count( DISTINCT {&amp;lt;C-={"ROM"}&amp;gt;} {&amp;lt;P-={"COM"}&amp;gt;} A&amp;amp;'|'&amp;amp;B)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606621#M736158</guid>
      <dc:creator>abhi1693r</dc:creator>
      <dc:date>2019-07-26T19:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Counting excluding a string</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606622#M736159</link>
      <description>&lt;P&gt;I have a feeling it is filtering with &lt;STRONG&gt;ROM &lt;/STRONG&gt;condition first and then applying &lt;STRONG&gt;A&amp;amp;'|'&amp;amp;B.&amp;nbsp;&lt;/STRONG&gt;Because some rows are getting removed when we use C-=ROM&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-excluding-a-string/m-p/1606622#M736159</guid>
      <dc:creator>abhi1693r</dc:creator>
      <dc:date>2019-07-26T19:06:00Z</dc:date>
    </item>
  </channel>
</rss>

