<?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 on sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1116#M511843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khawar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Aggr function is just like a group by in the front-end.&lt;/P&gt;&lt;P&gt;And add "nodistinct" means for every group, the expression will calculate a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can try to create some table and value to try to use it &lt;/P&gt;&lt;P&gt;or you can find some other examples to see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I have clarified the aggr nodistinct.&lt;/P&gt;&lt;P&gt;Please make my answer to "correct" status, so other person will know the thread is finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Aiolos &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2018 02:01:12 GMT</pubDate>
    <dc:creator>uacg0009</dc:creator>
    <dc:date>2018-01-17T02:01:12Z</dc:date>
    <item>
      <title>Count on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1112#M511839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i need your help to calculate a value.&lt;/P&gt;&lt;P&gt;So,this is my dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 384px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="96"&gt;COD PERSON&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="96"&gt;COD ANIMAL&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="96"&gt;CATEGORY&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="96"&gt;AMOUNT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CAT2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;7655,8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CAT2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1064,02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;B&lt;/TD&gt;&lt;TD class="xl68"&gt;5&lt;/TD&gt;&lt;TD class="xl69"&gt;CAT3&lt;/TD&gt;&lt;TD class="xl70" style="border-left: none;"&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;B&lt;/TD&gt;&lt;TD class="xl68"&gt;6&lt;/TD&gt;&lt;TD class="xl69"&gt;CAT3&lt;/TD&gt;&lt;TD class="xl70" style="border-left: none;"&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;C&lt;/TD&gt;&lt;TD class="xl68"&gt;7&lt;/TD&gt;&lt;TD class="xl69"&gt;CAT1&lt;/TD&gt;&lt;TD class="xl70" style="border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;C&lt;/TD&gt;&lt;TD class="xl68"&gt;8&lt;/TD&gt;&lt;TD class="xl69"&gt;CAT5&lt;/TD&gt;&lt;TD class="xl70" style="border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I want to the take, for every "COD PERSON" that have two different "COD ANIMAL" ,the row that have Amount, for each row, &amp;lt;=5000.&lt;/P&gt;&lt;P&gt;So in my table is expected to have&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 384px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="96"&gt;C&lt;/TD&gt;&lt;TD class="xl65" width="96"&gt;7&lt;/TD&gt;&lt;TD class="xl66" width="96"&gt;CAT1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="96"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;C&lt;/TD&gt;&lt;TD class="xl65"&gt;8&lt;/TD&gt;&lt;TD class="xl66"&gt;CAT5&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do?? I need to calculate this in frontend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1112#M511839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T20:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1113#M511840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khawar, you can try with:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[COD PERSON]={"=Count(Distinct [COD ANIMAL])=2"}, AMOUNT={"&amp;lt;=5000"}&amp;gt;} AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change "=2" to "&amp;gt;1" for "more than 1 different animal" instead of "two different animals"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 21:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1113#M511840</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-01-15T21:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1114#M511841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khawar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope below is what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Count on sum.PNG" class="jive-image image-1" src="/legacyfs/online/190173_Count on sum.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Aiolos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 06:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1114#M511841</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2018-01-16T06:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1115#M511842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/uacg0009"&gt;uacg0009&lt;/A&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;your qvw is correct!!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;can you explain me, how it work "Aggr(NODISTINCT " ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;thx&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1115#M511842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T16:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1116#M511843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khawar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Aggr function is just like a group by in the front-end.&lt;/P&gt;&lt;P&gt;And add "nodistinct" means for every group, the expression will calculate a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can try to create some table and value to try to use it &lt;/P&gt;&lt;P&gt;or you can find some other examples to see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I have clarified the aggr nodistinct.&lt;/P&gt;&lt;P&gt;Please make my answer to "correct" status, so other person will know the thread is finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Aiolos &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 02:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-on-sum/m-p/1116#M511843</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2018-01-17T02:01:12Z</dc:date>
    </item>
  </channel>
</rss>

