<?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: Count by aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-by-aggregation/m-p/1418665#M800870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this (again I don't understand why Aug = 1 and total is 10)... I would have thought the total to be 11 and Aug = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Count(DISTINCT Metrics), MonthYear))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Nov 2017 23:00:46 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-18T23:00:46Z</dc:date>
    <item>
      <title>Count by aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-aggregation/m-p/1418663#M800867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me on below requirement in the UI can't modify the back-end script.&lt;/P&gt;&lt;P&gt;In the below sample source file i need to calculate the Count of Red Ind in the text box with the expression like&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;count of Red Ind aggregated by Metric Group and Metrics for all the Months.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Requirement with expected output:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;By default, it should total red count for all months =&lt;SPAN style="color: #ff0000;"&gt;10&lt;/SPAN&gt; based on unique &lt;STRONG&gt;Metric Group and Metrics &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;if user select&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;June month then it will show &amp;gt;&amp;gt; 2 (as red count is repeated for Met 12 two time need to pick only 2 rows out of 3 rows in June month)&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;&amp;gt;&amp;gt; July -- 3&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;&amp;gt;&amp;gt; Aug -- 1&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;&amp;gt;&amp;gt; Sep -- 1&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;&amp;gt;&amp;gt; Oct --1&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;&amp;gt;&amp;gt; Nov -- 2&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;Please find the attched sample soure file Please provide the solution in the app.&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13.3333px;"&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-by-aggregation/m-p/1418663#M800867</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count by aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-aggregation/m-p/1418664#M800869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t understand exactly how you come to a count of 10 and for august of a count of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you count for a combination of metric group and metrics?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can create a extra field in your load script like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;"Metric Group"&amp;amp;' '&amp;amp;Metrics as MandM,&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(aggr([Red Ind],MandM))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to count it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the other case you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(aggr(aggr("Red Ind",Metrics),[Metric Group]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to aggregate both of them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2017 18:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-by-aggregation/m-p/1418664#M800869</guid>
      <dc:creator>Ralf_Heukäufer</dc:creator>
      <dc:date>2017-11-18T18:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count by aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-aggregation/m-p/1418665#M800870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this (again I don't understand why Aug = 1 and total is 10)... I would have thought the total to be 11 and Aug = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Count(DISTINCT Metrics), MonthYear))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2017 23:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-by-aggregation/m-p/1418665#M800870</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-18T23:00:46Z</dc:date>
    </item>
  </channel>
</rss>

