<?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: Help: Count and sum confusion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130885#M19706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your above expression is not returning a sales net value. It's calculating a change percentage of sales net value comparing two months'&amp;nbsp; aggregated values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using this expression and assuming you have a field called State, try an expression search like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;State = {"&lt;/STRONG&gt;=&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum({&amp;lt;Month={$(vMaxMonth)}&amp;gt;}SalesNetValue)-sum({&amp;lt;Month={$(VPrevMonth)}&amp;gt;}SalesNetValue))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Month={$(VPrevMonth)}&amp;gt;}SalesNetValue)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;0"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DISTINCT State)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Sep 2018 08:55:49 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2018-09-15T08:55:49Z</dc:date>
    <item>
      <title>Help: Count and sum confusion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130884#M19705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I facing issue in taking count of state.&lt;/P&gt;&lt;P&gt;Please find below expression used in pivote table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;Month={$(vMaxMonth)}&amp;gt;}SalesNetValue)-sum({&amp;lt;Month={$(VPrevMonth)}&amp;gt;}SalesNetValue))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Month={$(VPrevMonth)}&amp;gt;}SalesNetValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query: I want display count of states having salesnetvalue (using above expression) below zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 08:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130884#M19705</guid>
      <dc:creator>sachinryeola</dc:creator>
      <dc:date>2018-09-15T08:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Count and sum confusion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130885#M19706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your above expression is not returning a sales net value. It's calculating a change percentage of sales net value comparing two months'&amp;nbsp; aggregated values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using this expression and assuming you have a field called State, try an expression search like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;State = {"&lt;/STRONG&gt;=&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum({&amp;lt;Month={$(vMaxMonth)}&amp;gt;}SalesNetValue)-sum({&amp;lt;Month={$(VPrevMonth)}&amp;gt;}SalesNetValue))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Month={$(VPrevMonth)}&amp;gt;}SalesNetValue)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;0"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DISTINCT State)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 08:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130885#M19706</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-15T08:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Count and sum confusion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130886#M19707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me in this query..&lt;/P&gt;&lt;P&gt;I am Using below expression for&amp;nbsp; Pareto Classes. &lt;/P&gt;&lt;P&gt;Now I want to show count of States falling under each class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Rangesum(Above(Sum({1} SalesNetValue)/Sum({1} total SalesNetValue),1,RowNo()))&amp;lt;0.8, 'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Rangesum(Above(Sum({1} SalesNetValue)/Sum({1} total SalesNetValue),1,RowNo()))&amp;lt;0.9, 'B',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'C')),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (StateCode,(=Sum({1} SalesNetValue),Desc))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 13:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130886#M19707</guid>
      <dc:creator>sachinryeola</dc:creator>
      <dc:date>2018-09-15T13:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Count and sum confusion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130887#M19708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the Aggr() function as calculated dimension in a chart and as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Distinct StateCode)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 16:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130887#M19708</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-15T16:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Count and sum confusion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130888#M19709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine if I take count for State as in Aggr I have used statecode...&lt;/P&gt;&lt;P&gt;but if I use statecode and distributor code in aggr and then use count of statecode and distributor code then values for statecode are correct but for distributor code it is giving wrong values....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2018 05:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Count-and-sum-confusion/m-p/130888#M19709</guid>
      <dc:creator>sachinryeola</dc:creator>
      <dc:date>2018-09-16T05:07:48Z</dc:date>
    </item>
  </channel>
</rss>

