<?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 COUNT, AGGR, IF AND SUM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/COUNT-AGGR-IF-AND-SUM/m-p/1677140#M727751</link>
    <description>&lt;P&gt;Hi Friends!&lt;/P&gt;&lt;P&gt;I have a data set which has Customer wise Sales with Zone, Region and Product [in multiple rows as Invoiced]. I am trying to have an expression that gives me Count of Customers which are above 500 Sales Month till Date in the below table -&lt;/P&gt;&lt;P&gt;Dimensions - Zone | Region | Product |&lt;/P&gt;&lt;P&gt;Expressions - Total Customers Sold [#] | &amp;gt;500 Customers Sold [#]&lt;/P&gt;&lt;P&gt;I have tried [unsuccessfully] to achieve the same with the following expression -&lt;/P&gt;&lt;P&gt;COUNT(AGGR(IF(SUM({&amp;lt;MonthYear={'Feb-2020'}&amp;gt;}Sales)&amp;gt;=500,1,0),Zone,Region,Product,Customer))&lt;/P&gt;&lt;P&gt;Need to figure out where to put the IF statement correctly or any other alternative options to execute the same. Appreciate the help in advance!!!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:14:25 GMT</pubDate>
    <dc:creator>sonu8072</dc:creator>
    <dc:date>2024-11-16T01:14:25Z</dc:date>
    <item>
      <title>COUNT, AGGR, IF AND SUM</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-AGGR-IF-AND-SUM/m-p/1677140#M727751</link>
      <description>&lt;P&gt;Hi Friends!&lt;/P&gt;&lt;P&gt;I have a data set which has Customer wise Sales with Zone, Region and Product [in multiple rows as Invoiced]. I am trying to have an expression that gives me Count of Customers which are above 500 Sales Month till Date in the below table -&lt;/P&gt;&lt;P&gt;Dimensions - Zone | Region | Product |&lt;/P&gt;&lt;P&gt;Expressions - Total Customers Sold [#] | &amp;gt;500 Customers Sold [#]&lt;/P&gt;&lt;P&gt;I have tried [unsuccessfully] to achieve the same with the following expression -&lt;/P&gt;&lt;P&gt;COUNT(AGGR(IF(SUM({&amp;lt;MonthYear={'Feb-2020'}&amp;gt;}Sales)&amp;gt;=500,1,0),Zone,Region,Product,Customer))&lt;/P&gt;&lt;P&gt;Need to figure out where to put the IF statement correctly or any other alternative options to execute the same. Appreciate the help in advance!!!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-AGGR-IF-AND-SUM/m-p/1677140#M727751</guid>
      <dc:creator>sonu8072</dc:creator>
      <dc:date>2024-11-16T01:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT, AGGR, IF AND SUM</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-AGGR-IF-AND-SUM/m-p/1678013#M727752</link>
      <description>&lt;P&gt;Hi Sonu,&lt;/P&gt;&lt;P&gt;Could you please share expected result as well in the data excel.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 12:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-AGGR-IF-AND-SUM/m-p/1678013#M727752</guid>
      <dc:creator>sagarjagga</dc:creator>
      <dc:date>2020-02-21T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT, AGGR, IF AND SUM</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-AGGR-IF-AND-SUM/m-p/1678020#M727753</link>
      <description>&lt;P&gt;May be try using Sum instead of Count here&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(
    If(Sum({&amp;lt;MonthYear = {'Feb-2020'}&amp;gt;} Sales) &amp;gt;= 500, 1, 0)
, Zone, Region, Product, Customer))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-AGGR-IF-AND-SUM/m-p/1678020#M727753</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-21T13:08:15Z</dc:date>
    </item>
  </channel>
</rss>

