<?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 Problem using p() and e() in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-using-p-and-e-in-set-analysis/m-p/1398832#M424363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do an example of the excluded function e() in set analysis, but I can't make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple table with two fields : Code and Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total amount is &lt;STRONG&gt;1.601.985&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I filter for amounts &lt;SPAN style="text-decoration: underline;"&gt;bigger than 800&lt;/SPAN&gt; and &lt;SPAN style="text-decoration: underline;"&gt;lower than 1400&lt;/SPAN&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The current amount is &lt;STRONG&gt;521.905&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And the excluded amount would be the substracion of the two above : &lt;STRONG&gt;1.080.080&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get the excluded amount with the following formula :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt; Code = E({1&amp;lt;Code= {'$(=vConcatSelectedCodes)'}&amp;nbsp; &amp;gt;})&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;vConcatSelectedCodes is concat(distinct chr(39) &amp;amp; Code &amp;amp; chr(39) ,',')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And this is what I get :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="A.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177507_A.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Could somebody tell what I'm doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you need, I've attached the qvw and qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 17:30:10 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2017-09-22T17:30:10Z</dc:date>
    <item>
      <title>Problem using p() and e() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-p-and-e-in-set-analysis/m-p/1398832#M424363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do an example of the excluded function e() in set analysis, but I can't make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple table with two fields : Code and Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total amount is &lt;STRONG&gt;1.601.985&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I filter for amounts &lt;SPAN style="text-decoration: underline;"&gt;bigger than 800&lt;/SPAN&gt; and &lt;SPAN style="text-decoration: underline;"&gt;lower than 1400&lt;/SPAN&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The current amount is &lt;STRONG&gt;521.905&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And the excluded amount would be the substracion of the two above : &lt;STRONG&gt;1.080.080&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get the excluded amount with the following formula :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt; Code = E({1&amp;lt;Code= {'$(=vConcatSelectedCodes)'}&amp;nbsp; &amp;gt;})&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;vConcatSelectedCodes is concat(distinct chr(39) &amp;amp; Code &amp;amp; chr(39) ,',')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And this is what I get :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="A.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177507_A.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Could somebody tell what I'm doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you need, I've attached the qvw and qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 17:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-p-and-e-in-set-analysis/m-p/1398832#M424363</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2017-09-22T17:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using p() and e() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-p-and-e-in-set-analysis/m-p/1398833#M424364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({1&amp;lt;&lt;SPAN style="color: #800000;"&gt;Code&lt;/SPAN&gt;=&lt;SPAN style="color: #0000ff;"&gt;E&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Code&lt;/SPAN&gt;)&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Amount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177518_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 20:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-p-and-e-in-set-analysis/m-p/1398833#M424364</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-09-22T20:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using p() and e() in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-p-and-e-in-set-analysis/m-p/1398834#M424365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Antonio, that was it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 16:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-p-and-e-in-set-analysis/m-p/1398834#M424365</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2017-10-02T16:25:58Z</dc:date>
    </item>
  </channel>
</rss>

