<?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: It's hard!! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512966#M552460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Add an example, heeeelp!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 08:49:33 GMT</pubDate>
    <dc:creator>Marcoimp</dc:creator>
    <dc:date>2013-10-24T08:49:33Z</dc:date>
    <item>
      <title>It's hard!!</title>
      <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512965#M552459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to count the unique CONTACTID for this first half year, with a LastYear SALESVALUE&amp;gt;3000$, I do in this way:&lt;/P&gt;&lt;P&gt;=COUNT({$&amp;lt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;F_TYPE={'A'},&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;YEAR={2013},&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;MONTH={"&amp;lt;=6"},&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;SALESVALUE={"&amp;gt;0"},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;STRONG&gt;CONTACTID={"=SUM({$&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;STRONG&gt;F_TYPE={'A'},&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;STRONG&gt;YEAR={2012}, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;STRONG&gt; MONTH=&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;STRONG&gt;&amp;gt;} NETSALEBUDGET)&amp;gt;=3000"}&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;gt;})&lt;/P&gt;&lt;P&gt;&amp;gt;} DISTINCT CONTACTID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is: all seems to be ok, but, when I use this formula in a grid, the sub SUM() (in bold) function seems to count every unique CONTACTID of the whole world and not only for the region code of the dimension line......... how can I correct this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512965#M552459</guid>
      <dc:creator>Marcoimp</dc:creator>
      <dc:date>2013-10-23T13:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: It's hard!!</title>
      <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512966#M552460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Add an example, heeeelp!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 08:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512966#M552460</guid>
      <dc:creator>Marcoimp</dc:creator>
      <dc:date>2013-10-24T08:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: It's hard!!</title>
      <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512967#M552461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't select a COD_STORE then the inner sum is calculated over the CONTACTID's of all COD_STORE's. This sum value is then compared to 2500. But if you select a COD_STORE then the inner sum is calculated over only the CONTACTID's for that selected COD_STORE. You can get the same results if you change the expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=COUNT({$&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MERCH_YEAR={2013}, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MERCH_MONTH={"&amp;lt;=6"}, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; CONTACTID={"=&lt;STRONG&gt;SUM({$&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; MERCH_YEAR={2012}, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; MERCH_MONTH=,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;COD_STORE=&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;gt;} NETSALEBUDGET)&lt;/STRONG&gt;&amp;gt;=2500"}&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &amp;gt;}&amp;nbsp; DISTINCT CONTACTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 09:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512967#M552461</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-24T09:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: It's hard!!</title>
      <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512968#M552462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;yes, but my goal is to know the value for the single store, not for the whole world...&lt;/P&gt;&lt;P&gt;In the example, the correct code for COD_STORE "BV2706" is 65, not 106.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 09:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512968#M552462</guid>
      <dc:creator>Marcoimp</dc:creator>
      <dc:date>2013-10-24T09:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: It's hard!!</title>
      <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512969#M552463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I looked at your sample file.&lt;BR /&gt;in the "List Box" you are counting the "COD_STOR" with NETSALESBUDGET &amp;gt;= 2500.&lt;BR /&gt;While in the column formula ""#TOP CLIENTS 1H 2013 (SUM)" you are counting the "COD_STOR" with NETSALESBUDGET &amp;gt;= 3000&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 10:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512969#M552463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-24T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: It's hard!!</title>
      <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512970#M552464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this, using a combined KEY made of CODE_STORE and CONTACTID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 10:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512970#M552464</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-24T10:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: It's hard!!</title>
      <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512971#M552465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=COUNT({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MERCH_YEAR={2013},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MERCH_MONTH={"&amp;lt;=6"} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;} DISTINCT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(aggr(sum({&amp;lt;MERCH_YEAR={2012},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MERCH_MONTH=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NETSALEBUDGET)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,CONTACTID,COD_STORE)&amp;gt;=2500,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTACTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 10:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512971#M552465</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-24T10:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: It's hard!!</title>
      <link>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512972#M552466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PERFECT! &lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;P&gt;When you know the answer it seems simple!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 12:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/It-s-hard/m-p/512972#M552466</guid>
      <dc:creator>Marcoimp</dc:creator>
      <dc:date>2013-10-24T12:00:36Z</dc:date>
    </item>
  </channel>
</rss>

