<?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: SetAnalysis with P statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412567#M491536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your data FlagC and FlagF are not equals in all the rows, the sum must be 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look if you use this the result is 0 because I`ve said above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FlagF = {"=FlagC"}&amp;gt;} Collections_Fees_LC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use this to sum the distincts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FlagF -= {"=FlagC"}&amp;gt;} Collections_Fees_LC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result is 179043&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t know what's the meaning of that 3000 with that filters....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be there is something missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 13:31:09 GMT</pubDate>
    <dc:creator>chematos</dc:creator>
    <dc:date>2012-09-17T13:31:09Z</dc:date>
    <item>
      <title>SetAnalysis with P statement</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412564#M491533</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;I need you help in problem related with Set Analysis. For expression 'Capital' I would like calculate sum of Values in this column where FlagF=FlagC. When I choose selection Payment_Outlay_Period it works correctly, but when deselect it, then it shows incorrect value (for 2012.01 capital must be 3000 insted of 26570). Who can help me and describe this problem?&lt;/P&gt;&lt;P&gt;I guess it is related with o in&amp;nbsp;&amp;nbsp; %CaseIDKey = p({$&amp;lt;FlagC={1}&amp;gt;} may be it returns %CaseIDKey values from all data set despite on concrete Payment_Outlay_Period. If yes, what I should add in this P statement. Thanks for any help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 11:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412564#M491533</guid>
      <dc:creator />
      <dc:date>2012-09-17T11:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: SetAnalysis with P statement</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412565#M491534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not aggregate your source data it would make this much easier to handle?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 12:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412565#M491534</guid>
      <dc:creator />
      <dc:date>2012-09-17T12:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: SetAnalysis with P statement</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412566#M491535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sample is very very little peace of whole report and I haven't possibility to aggregate something more in script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 12:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412566#M491535</guid>
      <dc:creator />
      <dc:date>2012-09-17T12:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: SetAnalysis with P statement</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412567#M491536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your data FlagC and FlagF are not equals in all the rows, the sum must be 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look if you use this the result is 0 because I`ve said above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FlagF = {"=FlagC"}&amp;gt;} Collections_Fees_LC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use this to sum the distincts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FlagF -= {"=FlagC"}&amp;gt;} Collections_Fees_LC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result is 179043&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t know what's the meaning of that 3000 with that filters....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be there is something missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 13:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412567#M491536</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-09-17T13:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: SetAnalysis with P statement</title>
      <link>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412568#M491537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Collections_Fees_LC column contains two type of records 1. Colletions with FlagC=1 and 2. Fees with FlagF=1.&lt;/P&gt;&lt;P&gt;Expression [Nr of payers] contains count of collections by each period, expression [Payments] contains sum of payments for these payers(%CaseIDKey) by each period, and the purpose is to get the sum of Fees for these payers by each period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in P statement&amp;nbsp; &lt;EM&gt;%CaseIDKey = p({$&amp;lt;FlagC={1}&amp;gt;}&lt;/EM&gt;&amp;nbsp; because it takes all &lt;EM&gt;%CaseIDKey&lt;/EM&gt; ignoring periods, but I need only from each period. Who knows what and how I should add some additional condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 20:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SetAnalysis-with-P-statement/m-p/412568#M491537</guid>
      <dc:creator />
      <dc:date>2012-09-17T20:01:00Z</dc:date>
    </item>
  </channel>
</rss>

