<?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: calculated dimension aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525121#M196211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 14:19:42 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-07-25T14:19:42Z</dc:date>
    <item>
      <title>calculated dimension aggr</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525120#M196210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have data for customers and sales by months. requirement is to find new customers, that means: any customer have sales in the latest month and no sales in the past 5 months. i tried to achieve with aggr with Logical AND in calculated dimension, sure i am not understanding the right way to use aggr here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525120#M196210</guid>
      <dc:creator />
      <dc:date>2013-07-25T14:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension aggr</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525121#M196211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525121#M196211</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-25T14:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension aggr</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525122#M196212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thts brilliant ... thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525122#M196212</guid>
      <dc:creator />
      <dc:date>2013-07-25T14:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension aggr</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525123#M196213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not working in all scenarios .... it gets me the result as new for the below example also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month Sales&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;6&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried both ways &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Monthserial={$(=max(Monthserial))}&amp;gt;*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;customer=p({&amp;lt;Sales={0},Monthserial={'&amp;gt;=$(=max(Monthserial)-5)&amp;lt;$(=max(Monthserial)))'}&amp;gt;}customer)&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;customer=p({&amp;lt;Sales-={0},Monthserial={$(=max(Monthserial))}&amp;gt;}[customer])&lt;/P&gt;&lt;P&gt;* p({&amp;lt;Sales={0},Monthserial={"&amp;gt;=$(=max(Monthserial)-5)&amp;lt;$(=max(Monthserial)))"}&amp;gt;}customer),&lt;/P&gt;&lt;P&gt;Monthserial={$(=max(Monthserial))}&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like Sales={0},Monthserial={"&amp;gt;=$(=max(Monthserial)-5)&amp;lt;$(=max(Monthserial)))"} gets customer who got zero sales in any of the past 5 months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how make sure it gets customers only when sales for all past 5 months zero?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 14:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525123#M196213</guid>
      <dc:creator />
      <dc:date>2013-07-30T14:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension aggr</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525124#M196214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525124#M196214</guid>
      <dc:creator />
      <dc:date>2013-07-30T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension aggr</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525125#M196215</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;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13752064445681440" jivemacro_uid="_13752064445681440"&gt;&lt;P&gt;sum({&amp;lt;Monthserial={$(=max(Monthserial))},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer={"=sum({&amp;lt;Monthserial={'&amp;gt;=$(=max(Monthserial)-5)&amp;lt;$(=max(Monthserial))'}&amp;gt;}Sales)=0"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales)&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 17:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525125#M196215</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-30T17:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension aggr</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525126#M196216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tht sure worked.... great ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ididn't even know that we can write set like this. i am lost is how the customer expression is working in the set ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how does it know to assign list of customers when the expression value is true ? i thought using P (possible) only way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will be great if you can explain me the mechanism of how qlikview is handling this set. Thanks for your time in advance.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;sum({&amp;lt;Monthserial={$(=max(Monthserial))},&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer={"=sum({&amp;lt;Monthserial={'&amp;gt;=$(=max(Monthserial)-5)&amp;lt;$(=max(Monthserial))'}&amp;gt;}Sales)=0"}&amp;gt;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales)&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 18:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension-aggr/m-p/525126#M196216</guid>
      <dc:creator />
      <dc:date>2013-07-30T18:10:14Z</dc:date>
    </item>
  </channel>
</rss>

