<?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 w/ Aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096836#M364299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)=0 and Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount)&amp;gt;0,1),Code)) &amp;amp; ' New' &amp;amp; Chr(13) &amp;amp;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)&amp;gt;0 and Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount)=0,1),Code)) &amp;amp; ' Lost' &amp;amp; Chr(13)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2016 21:57:50 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-02-23T21:57:50Z</dc:date>
    <item>
      <title>Count w/ Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096833#M364296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been away from QlikView for a while, so I apologize in advance for my rusty QV skills.&amp;nbsp; I have a chart that shows a variance from month to month and denotes whether this variance represents an Increase, a Decrease, a New Code, or a Lost Code.&amp;nbsp; This works as desired. However, I want to get a separate chart that shows the breakdown of the items.&amp;nbsp; I used an Aggr() formula to get the # of increases and the # of decreases, but can't seem to get the # New and # Lost to pull. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv example.JPG" class="jive-image image-1" src="/legacyfs/online/115697_qv example.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;See my attached example file.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096833#M364296</guid>
      <dc:creator />
      <dc:date>2016-02-23T21:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count w/ Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096834#M364297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe a chart with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a calculated dimension&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)=0 and Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount)&amp;gt;0,'New',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)&amp;gt;0 and Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount)=0,'Lost',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)&amp;gt;Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount),'Decrease',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)&amp;lt;Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount),'Increase')))),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Code)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an expression&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count(DISTINCT Code)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096834#M364297</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-02-23T21:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count w/ Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096835#M364298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(if(Aggr(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount),Code)&amp;lt;Aggr(Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount),Code),1)) &amp;amp; ' Increases' &amp;amp; Chr(13) &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(if(Aggr(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount),Code)&amp;gt;Aggr(Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount),Code),1)) &amp;amp; ' Decreases' &amp;amp; Chr(13) &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Aggr(if(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)=0 and Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount)&amp;gt;0, 1), Code)) &amp;amp; ' New' &amp;amp; Chr(13) &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Aggr(if(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)&amp;gt;0 and Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount)=0, 1), Code)) &amp;amp; ' Lost'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096835#M364298</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-23T21:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count w/ Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096836#M364299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)=0 and Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount)&amp;gt;0,1),Code)) &amp;amp; ' New' &amp;amp; Chr(13) &amp;amp;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(Sum({$&amp;lt;MonthYr={'Jan-15'}&amp;gt;} Amount)&amp;gt;0 and Sum({$&amp;lt;MonthYr={'Jan-16'}&amp;gt;} Amount)=0,1),Code)) &amp;amp; ' Lost' &amp;amp; Chr(13)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096836#M364299</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-23T21:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count w/ Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096837#M364300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-w-Aggr/m-p/1096837#M364300</guid>
      <dc:creator />
      <dc:date>2016-02-23T21:59:58Z</dc:date>
    </item>
  </channel>
</rss>

