<?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: Set analysis not working properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524368#M457303</link>
    <description>Is this the only option to solve my problem?&lt;BR /&gt;Since my Qlikview file uses a BINARY statement to loading this specific data from another document...</description>
    <pubDate>Thu, 27 Dec 2018 13:02:45 GMT</pubDate>
    <dc:creator>thymenkristen</dc:creator>
    <dc:date>2018-12-27T13:02:45Z</dc:date>
    <item>
      <title>Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524345#M457299</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;My goal is to count the distinct number of Hoofdgroep_key(s), if the sum of Sales &amp;gt; 500, per&amp;nbsp;Debiteur_Key&lt;/P&gt;&lt;P&gt;Currently i have the following calculated dimension.&lt;/P&gt;&lt;P&gt;=aggr(Count(DISTINCT{&amp;lt;Hoofdgroep_Key={"=sum(Sales)&amp;gt; 500"}&amp;gt;} Hoofdgroep_Key), Debiteur_Key)&lt;/P&gt;&lt;P&gt;But it is not working properly.&lt;/P&gt;&lt;P&gt;Becuase, without any selections the count is returning 9.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Prtscreen1.JPG" style="width: 202px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2682iD3476428C4CB28CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prtscreen1.JPG" alt="Prtscreen1.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;And after the selection of a single Debiteur_Key the count is returning 2. Which is the correct value.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Prtscreen2.JPG" style="width: 198px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2683i9E231480B07682A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prtscreen2.JPG" alt="Prtscreen2.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;All help is welcome,&amp;nbsp;thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 12:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524345#M457299</guid>
      <dc:creator>thymenkristen</dc:creator>
      <dc:date>2018-12-27T12:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524352#M457300</link>
      <description>&lt;P&gt;May be you need to create a key which combines&amp;nbsp;&lt;SPAN&gt;Hoofdgroep_Key and&amp;nbsp;Debiteur_Key into a single field to use within your set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;Debiteur_Key&amp;amp;'|'&amp;amp;Hoofgroep_Key as New_Key&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and then this&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;=Aggr(Count(DISTINCT{&amp;lt;&lt;FONT color="#FF0000"&gt;New_Key&lt;/FONT&gt; = {"=Sum(Sales) &amp;gt; 500"}&amp;gt;} Hoofdgroep_Key), Debiteur_Key)&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Dec 2018 12:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524352#M457300</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-27T12:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524357#M457301</link>
      <description>&lt;P&gt;And how/where can I create such a key?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 12:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524357#M457301</guid>
      <dc:creator>thymenkristen</dc:creator>
      <dc:date>2018-12-27T12:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524362#M457302</link>
      <description>&lt;P&gt;In the script, in the load part of the table that contains ur 2 fields&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 12:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524362#M457302</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2018-12-27T12:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524368#M457303</link>
      <description>Is this the only option to solve my problem?&lt;BR /&gt;Since my Qlikview file uses a BINARY statement to loading this specific data from another document...</description>
      <pubDate>Thu, 27 Dec 2018 13:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524368#M457303</guid>
      <dc:creator>thymenkristen</dc:creator>
      <dc:date>2018-12-27T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524369#M457304</link>
      <description>&lt;P&gt;The other option might need to use another aggr() function combined with if statement.... but it would be difficult to give the exact expression without looking at the data. Would you be able to provide a sample?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 13:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524369#M457304</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-27T13:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524379#M457305</link>
      <description>&lt;P&gt;I Attached some sample data&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 13:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524379#M457305</guid>
      <dc:creator>thymenkristen</dc:creator>
      <dc:date>2018-12-27T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524384#M457306</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;=Aggr(Count(Aggr(If(Sum(Sales) &amp;gt; 500, Hoofdgroep_Key), Hoofdgroep_Key, Debiteur_Key)), Debiteur_Key)&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Dec 2018 13:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524384#M457306</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-27T13:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524398#M457307</link>
      <description>&lt;P&gt;Great, It works1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Checked it thoroughly and&amp;nbsp;it returns the correct values!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks alot Sunny!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 13:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-properly/m-p/1524398#M457307</guid>
      <dc:creator>thymenkristen</dc:creator>
      <dc:date>2018-12-27T13:39:38Z</dc:date>
    </item>
  </channel>
</rss>

