<?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 negative values per group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814850#M1212904</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;with your formula, this is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricardosilva_0-1623666489108.png" style="width: 525px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56760iEF1121D1F2D15CDC/image-dimensions/525x160?v=v2" width="525" height="160" role="button" title="ricardosilva_0-1623666489108.png" alt="ricardosilva_0-1623666489108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the script i used (if it's useful)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Load * inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;PROD STAT, STORE, YEAR, AMT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,A,2020,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,A,2021,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,B,2020,4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,B,2021,8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,C,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,C,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,A,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,A,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,B,2020,10&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,B,2021,8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,C,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,C,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,A,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,A,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,B,2020,8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,B,2021,8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,C,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,C,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 10:42:32 GMT</pubDate>
    <dc:creator>ricardosilva</dc:creator>
    <dc:date>2021-06-14T10:42:32Z</dc:date>
    <item>
      <title>Count negative values per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1813624#M1212792</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to calculate the last column, that is the count of &lt;STRONG&gt;store &lt;/STRONG&gt;by &lt;STRONG&gt;prod stat&lt;/STRONG&gt;&amp;nbsp; with negative var €.&lt;/P&gt;&lt;P&gt;I already tried with aggr, but no success.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricardosilva_0-1623152806672.png" style="width: 465px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56497i751126B1CB2CF5EB/image-dimensions/465x185?v=v2" width="465" height="185" role="button" title="ricardosilva_0-1623152806672.png" alt="ricardosilva_0-1623152806672.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please any one can help me.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 11:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1813624#M1212792</guid>
      <dc:creator>ricardosilva</dc:creator>
      <dc:date>2021-06-08T11:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count negative values per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1813779#M1212802</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28697"&gt;@ricardosilva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Sum(Total Aggr(If(Sum(Y)-sum([Y-1]) &amp;lt; 0, 1), ProdStat, Store))&lt;/P&gt;&lt;P&gt;Sum(Y)-sum([Y-1]) &amp;lt;-- replace with ur variance formula.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 01:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1813779#M1212802</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-06-09T01:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count negative values per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814850#M1212904</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;with your formula, this is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricardosilva_0-1623666489108.png" style="width: 525px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56760iEF1121D1F2D15CDC/image-dimensions/525x160?v=v2" width="525" height="160" role="button" title="ricardosilva_0-1623666489108.png" alt="ricardosilva_0-1623666489108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the script i used (if it's useful)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Load * inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;PROD STAT, STORE, YEAR, AMT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,A,2020,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,A,2021,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,B,2020,4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,B,2021,8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,C,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1,C,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,A,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,A,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,B,2020,10&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,B,2021,8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,C,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2,C,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,A,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,A,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,B,2020,8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,B,2021,8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,C,2020,6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3,C,2021,5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 10:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814850#M1212904</guid>
      <dc:creator>ricardosilva</dc:creator>
      <dc:date>2021-06-14T10:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count negative values per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814855#M1212906</link>
      <description>&lt;P&gt;Hi Ricard,&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Sum(Total&lt;STRONG&gt;&amp;lt;[PROD STAT]&amp;gt;&lt;/STRONG&gt; Aggr(If(Sum({&amp;lt;YEAR={2021}&amp;gt;}AMT)-sum({&amp;lt;YEAR={2020}&amp;gt;}AMT) &amp;lt; 0, 1), [PROD STAT], STORE))&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 10:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814855#M1212906</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-06-14T10:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count negative values per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814857#M1212907</link>
      <description>&lt;P&gt;O/P:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1623667692982.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56764iBE248F678A8CDEAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1623667692982.png" alt="MayilVahanan_0-1623667692982.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 10:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814857#M1212907</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-06-14T10:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count negative values per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814877#M1212910</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Mayil&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 12:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-negative-values-per-group/m-p/1814877#M1212910</guid>
      <dc:creator>ricardosilva</dc:creator>
      <dc:date>2021-06-14T12:21:31Z</dc:date>
    </item>
  </channel>
</rss>

