<?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  if sum(value) ist not  0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540276#M508661</link>
    <description>&lt;P&gt;The expression is wrong. For example,&amp;nbsp; by 5 products the count of projects should be 1 (S4).&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 13:37:01 GMT</pubDate>
    <dc:creator>belromvar</dc:creator>
    <dc:date>2019-02-06T13:37:01Z</dc:date>
    <item>
      <title>Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540178#M508657</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I have the following scenario.&amp;nbsp; I want to create a chart that shows the distribution of&amp;nbsp;products within a project.&lt;/P&gt;&lt;P&gt;The condition is that the sum of the amount for a specific type should not be 0.&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;S3&lt;/TD&gt;&lt;TD&gt;P_A&lt;/TD&gt;&lt;TD&gt;BUD&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;S3&lt;/TD&gt;&lt;TD&gt;P_B&lt;/TD&gt;&lt;TD&gt;BUD&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;S3&lt;/TD&gt;&lt;TD&gt;P_D&lt;/TD&gt;&lt;TD&gt;BUD&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;S3&lt;/TD&gt;&lt;TD&gt;P_D&lt;/TD&gt;&lt;TD&gt;BUD&lt;/TD&gt;&lt;TD&gt;-50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I expect a chart with dimension = "2" (count of&amp;nbsp; different products &amp;lt;&amp;gt; 0) and the expression = 1 (count of projects).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dimension looks like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;aggr( Count(DISTINCT {&amp;lt;Product = {"=aggr(Sum({&amp;lt;Type = {'BUD'}&amp;gt;}Amount),Project, Product) &amp;gt; 0"}&amp;gt;} Product), Project) &lt;/PRE&gt;&lt;P&gt;but it only works when one project is selected. For multiple projects, it shows an empty value. I am attaching a working example of what I have achieved so far. I think I am quite near, any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540178#M508657</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2024-11-16T04:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540219#M508658</link>
      <description>&lt;P&gt;Is this what you are looking to get?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 527px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5299i2FA3760983F607D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To do this, add a new field in the script which is a combination of Project and Product&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;LOAD *,
	 Project&amp;amp;Product as Project_Product_Key;&lt;/FONT&gt;
LOAD * INLINE [
    Project, Product, Type, Amount
    S1, P_A, BUD, 10
    S1, P_B, BUD, 20
    S1, P_C, BUD, 30
    S2, P_A, BUD, 40
    S3, P_D, BUD, -50
    S3, P_D, BUD, 50
    S3, P_A, BUD, 100
    S3, P_B, BUD, 15
    S4, P_A, BUD, 5
    S4, P_A, BUD, -5
    S4, P_A, ACT, 10
    S4, P_A, ACT, 10
    S4, P_B, BUD, 11
    S4, P_C, BUD, 12
    S4, P_D, BUD, 13
    S4, P_E, BUD, 14
    S4, P_A, BUD, 15
];&lt;/PRE&gt;&lt;P&gt;and then change your dimension to this&lt;/P&gt;&lt;PRE&gt;=Aggr(Count(DISTINCT {&amp;lt;Project_Product_Key = {"=Sum({&amp;lt;Type = {'BUD'}&amp;gt;}Amount) &amp;gt; 0"}&amp;gt;} Product), Project)&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2019 12:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540219#M508658</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-06T12:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540264#M508659</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;thanks for your help. How do I need to change my Expression if I add 'Product' as second Dimension? I am not getting the right sum, I tried with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count(DISTINCT {&amp;lt;Product= &amp;gt;}&amp;nbsp; Project)&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count(DISTINCT {&amp;lt;Project_Product_Key = {"=Sum({&amp;lt;Type = {'ACT'}&amp;gt;}Amount) &amp;lt;&amp;gt; 0"}&amp;gt;} Project)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dist.PNG" style="width: 260px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5308i9CF6897CFFAFE15D/image-size/large?v=v2&amp;amp;px=999" role="button" title="dist.PNG" alt="dist.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540264#M508659</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2019-02-06T13:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540272#M508660</link>
      <description>&lt;P&gt;You want this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 577px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5309iB21D8F15FAD551C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540272#M508660</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-06T13:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540276#M508661</link>
      <description>&lt;P&gt;The expression is wrong. For example,&amp;nbsp; by 5 products the count of projects should be 1 (S4).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540276#M508661</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2019-02-06T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540278#M508662</link>
      <description>&lt;P&gt;You want Product as second dimension or Project?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540278#M508662</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-06T13:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540280#M508663</link>
      <description>&lt;P&gt;Product. But I also need the total count of projects for each bar.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540280#M508663</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2019-02-06T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540281#M508664</link>
      <description>&lt;P&gt;Are you saying that for 5, you want to see 5 stacks but see 1 at the top?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540281#M508664</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-06T13:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540285#M508665</link>
      <description>&lt;P&gt;Exactly. The five stacked products, but 1 representing the project count.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540285#M508665</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2019-02-06T13:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540286#M508666</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 547px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5311i1F77ADBDBA9B3C11/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540286#M508666</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-06T13:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540301#M508667</link>
      <description>&lt;P&gt;Sorry, not yet,&amp;nbsp;the expression returns always 1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dist2.PNG" style="width: 305px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5313iAA231C3C1EF55D0E/image-dimensions/305x256?v=v2" width="305" height="256" role="button" title="dist2.PNG" alt="dist2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 14:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540301#M508667</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2019-02-06T14:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540304#M508668</link>
      <description>&lt;P&gt;Would you be able to share a sample where we need to have more than one Project? I think the sample always have 1 project for each count(Product).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 14:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540304#M508668</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-06T14:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540307#M508669</link>
      <description />
      <pubDate>Wed, 06 Feb 2019 14:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540307#M508669</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2019-02-06T14:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540315#M508670</link>
      <description>&lt;P&gt;Check attached&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 14:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540315#M508670</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-06T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540359#M508671</link>
      <description>&lt;P&gt;Hi Sunny,&amp;nbsp;&lt;/P&gt;&lt;P&gt;see attached&amp;nbsp; QVW and image, the count is still not returning the correct value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dist3.PNG" style="width: 377px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5322i6506D3C9219E252E/image-dimensions/377x323?v=v2" width="377" height="323" role="button" title="dist3.PNG" alt="dist3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540359#M508671</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2019-02-06T15:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540375#M508672</link>
      <description>&lt;P&gt;Don't think this is possible. but may be someone might have another trick to do this&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540375#M508672</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-06T15:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count  if sum(value) ist not  0</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540419#M508673</link>
      <description>&lt;P&gt;Thanks for the help. I decided to use 2 overlapped charts to achieve the goal. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-sum-value-ist-not-0/m-p/1540419#M508673</guid>
      <dc:creator>belromvar</dc:creator>
      <dc:date>2019-02-06T16:16:21Z</dc:date>
    </item>
  </channel>
</rss>

