<?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: Filtering in Expression of Count() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filtering-in-Expression-of-Count/m-p/1945354#M77914</link>
    <description>&lt;P&gt;Thank you very much, it works perfectly!&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jun 2022 10:18:01 GMT</pubDate>
    <dc:creator>nm02</dc:creator>
    <dc:date>2022-06-19T10:18:01Z</dc:date>
    <item>
      <title>Filtering in Expression of Count()</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-in-Expression-of-Count/m-p/1945349#M77911</link>
      <description>&lt;P&gt;Hello there,&lt;BR /&gt;&lt;BR /&gt;I want to combine 2 filter in one function, but i can't figure it how to do it.&lt;/P&gt;
&lt;P&gt;I have a table with several coloums of which only the [Result] matters.&lt;BR /&gt;I have another table where I assign every [Machine] a [MachineCategory] based on some parameters.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;My goal is to Count all [Result] = 'not Ok' in one specific [MachineCategory] (which you can filter via variable input with variable #vMachineCategory).&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I have these two filters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count({&amp;lt;Result={'not Ok'}&amp;gt;}Result))*100/Count(Result)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- This gives me the percentage of [Result] = 'not Ok' out of all [Result]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count({&amp;lt;MachineCategory={'$(#vMachineCategory)'}&amp;gt;}Result)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- This counts all&amp;nbsp;items in [Result] in a [MachineCategory]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My pseudo code looks something like this:&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;MachineCategory={'$(#vMachineCategory)'}&amp;gt;}&lt;STRONG&gt;Result{&amp;lt;Result={'not Ok'}&amp;gt;}&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;Sadly, this doesn't work. I don't know if it's because of a syntax error on my side or because you can't filter in the &lt;STRONG&gt;expr Expression &lt;/STRONG&gt;of the Count function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would love to get your ideas on that, thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 10:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-in-Expression-of-Count/m-p/1945349#M77911</guid>
      <dc:creator>nm02</dc:creator>
      <dc:date>2022-06-19T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering in Expression of Count()</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-in-Expression-of-Count/m-p/1945352#M77912</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;MachineCategory={'$(#vMachineCategory)'}, &lt;STRONG&gt;Result={'not Ok'}&lt;/STRONG&gt;&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 10:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-in-Expression-of-Count/m-p/1945352#M77912</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-06-19T10:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering in Expression of Count()</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-in-Expression-of-Count/m-p/1945354#M77914</link>
      <description>&lt;P&gt;Thank you very much, it works perfectly!&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 10:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-in-Expression-of-Count/m-p/1945354#M77914</guid>
      <dc:creator>nm02</dc:creator>
      <dc:date>2022-06-19T10:18:01Z</dc:date>
    </item>
  </channel>
</rss>

