<?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 based on a condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546059#M598749</link>
    <description>&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;Thanks but it does not work. It just give me as result 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 21:21:18 GMT</pubDate>
    <dc:creator>Zaga_69</dc:creator>
    <dc:date>2019-02-18T21:21:18Z</dc:date>
    <item>
      <title>Counting based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546000#M598746</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;I would like to count the Cost Center which meets the following condition:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CostElementFlagPur={1}, Scenario={'ACT'}, PPV_Type= &amp;gt;} Amount_GC )&amp;nbsp; /&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CostElementFlagPur={1}, Scenario={'PY'}, PPV_Type= &amp;gt;} Amount_GC ))&amp;gt; 1&lt;/P&gt;&lt;P&gt;I tried sth like this:&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt;(sum({&amp;lt;CostElementFlagPur={1}, Scenario={'ACT'}, PPV_Type= &amp;gt;} Amount_GC )&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum({&amp;lt;CostElementFlagPur={1}, Scenario={'PY'}, PPV_Type= &amp;gt;} Amount_GC ))&amp;gt; 1 , count({&amp;lt;CostElementFlagPur={1}, PPV_Type=&amp;gt;} distinct CostCenter))&lt;/P&gt;&lt;P&gt;However, it does work, since it counts the total Cost Center and does not take into account the condition mentioned above.&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;P&gt;Many Thanks!&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546000#M598746</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2024-11-16T04:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546010#M598747</link>
      <description>Try this:&lt;BR /&gt;count({&amp;lt;CostElementFlagPur={1}, PPV_Type=,CostCenter={"=sum({&amp;lt;CostElementFlagPur={1}, Scenario={'ACT'}, PPV_Type= &amp;gt;} Amount_GC ) / sum({&amp;lt;CostElementFlagPur={1}, Scenario={'PY'}, PPV_Type= &amp;gt;} Amount_GC ))&amp;gt; 1"} &amp;gt;} distinct CostCenter)</description>
      <pubDate>Mon, 18 Feb 2019 18:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546010#M598747</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-02-18T18:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Counting based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546014#M598748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try with :&lt;/P&gt;&lt;P&gt;count({&amp;lt;CostCenter={"=sum({&amp;lt;CostElementFlagPur={1}, Scenario={'ACT'}, PPV_Type= &amp;gt;} Amount_GC ) /&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CostElementFlagPur={1}, Scenario={'PY'}, PPV_Type= &amp;gt;} Amount_GC ))&amp;gt; 1"}&amp;gt;} CostCenter)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 18:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546014#M598748</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2019-02-18T18:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546059#M598749</link>
      <description>&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;Thanks but it does not work. It just give me as result 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 21:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546059#M598749</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2019-02-18T21:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Counting based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546060#M598750</link>
      <description>&lt;P&gt;Hi Sergio,&lt;/P&gt;&lt;P&gt;Thanks but it does not work. It just give me as result 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 21:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546060#M598750</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2019-02-18T21:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Counting based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546495#M598751</link>
      <description>All the field names must be the exact case sensitive field names. If you then still get 0 then there are no CostCenter values that meet the condition you specified.</description>
      <pubDate>Tue, 19 Feb 2019 16:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-based-on-a-condition/m-p/1546495#M598751</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-02-19T16:41:34Z</dc:date>
    </item>
  </channel>
</rss>

