<?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: Problem AGGR with condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95987#M15415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share full data. (I am unable to replicate the issue with given data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2018 10:10:26 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2018-09-05T10:10:26Z</dc:date>
    <item>
      <title>Problem AGGR with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95984#M15412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Problem with a 'aggr' formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count all the customer with sales &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example this will be 75 (count({&amp;lt; CustID = {"=sum(Sales) &amp;gt; 0"}&amp;gt;}CustID)) for store 0592.&lt;/P&gt;&lt;P&gt;All customers are 78&amp;nbsp; (Count CUSTID)) for 0592&lt;/P&gt;&lt;P&gt;(as you can see in the pic &amp;amp; Excel-File).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="212681" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212681_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Now I want a list of all my stores (counted by store and market).&lt;/P&gt;&lt;P&gt;When I selected the store 0592 I will get 75.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="212682" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/212682_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;aggr( count( {&amp;lt; CUSTID= {"=sum(Sales) &amp;gt; 0"}&amp;gt;}CustID),&amp;nbsp; Store, Market )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if de-select the store and all my stores are shown, I will get the result 78 for the store 0592.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="212683" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/212683_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;What I need to change that even in that overall list it will be 75?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone pls. help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 09:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95984#M15412</guid>
      <dc:creator>Markus_QV</dc:creator>
      <dc:date>2018-09-05T09:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem AGGR with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95985#M15413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try normal expression which you used earlier. i.e.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(count({&amp;lt; CustID = {"=sum(Sales) &amp;gt; 0"}&amp;gt;}CustID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Just add Market as dimension along with Store.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 09:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95985#M15413</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-09-05T09:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem AGGR with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95986#M15414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no Change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 10:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95986#M15414</guid>
      <dc:creator>Markus_QV</dc:creator>
      <dc:date>2018-09-05T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem AGGR with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95987#M15415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share full data. (I am unable to replicate the issue with given data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 10:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95987#M15415</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-09-05T10:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem AGGR with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95988#M15416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Markus. I think there must be something else, I made a sample with your data and expressions... and got no error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 10:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95988#M15416</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-05T10:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem AGGR with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95989#M15417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the the Problem.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Problem_Cust_ID.jpg" class="jive-image image-1" height="51" src="https://community.qlik.com/legacyfs/online/212689_Problem_Cust_ID.jpg" style="background-color: transparent; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-variant: normal; font-weight: 400; height: 51px; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; width: 790.5px; word-spacing: 0px; border-width: 0px; border-color: #575757; border-style: none; margin: 12px;" width="791" /&gt;&lt;/P&gt;&lt;P&gt;As you can see there is 1 cutomer who got sales in 2 stores (1 is negative and 1 is positive).&lt;/P&gt;&lt;P&gt;I need to know if the customer in one store is &amp;gt;0 (not in General).&lt;/P&gt;&lt;P&gt;The last column /formula in the 2nd row is not correct.&lt;/P&gt;&lt;P&gt;Can anyone help me with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( count({&amp;lt; [Cust ID] = {"=sum(Sales)&amp;gt;0"}&amp;gt;}[Cust ID]),&amp;nbsp; Market, Store)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 11:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95989#M15417</guid>
      <dc:creator>Markus_QV</dc:creator>
      <dc:date>2018-09-05T11:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem AGGR with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95990#M15418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I figured out the issue&lt;SPAN style="font-size: 13.3333330154419px;"&gt;, Markus&lt;/SPAN&gt;. Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(Aggr(sum(Sales), Market, Store, [Cust ID] ) &amp;gt; 0, 1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95990#M15418</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-05T13:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem AGGR with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95991#M15419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. Perfect. Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-AGGR-with-condition/m-p/95991#M15419</guid>
      <dc:creator>Markus_QV</dc:creator>
      <dc:date>2018-09-05T13:34:31Z</dc:date>
    </item>
  </channel>
</rss>

