<?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 function + Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385293#M486287</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 figured it out myself! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems I had my "sum" expression in the wrong place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Cindz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2013 09:59:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-26T09:59:28Z</dc:date>
    <item>
      <title>Calculated Dimension AGGR function + Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385291#M486285</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 use a calculated dimension to define products as "New Launches" or "Existing" products.&lt;/P&gt;&lt;P&gt;I've got a similar expression that calculates what price bracket they fall into, its working nicely also using AGGR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue with the time periods specifically. Think my set analysis is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the user to select some sequential months and for the expression to compare the selected time period to the previous (unselected time period) to determine whether it is new or not. So if there are sales in the selected time period and NO sales for the period before then the product is logically a "New Launch" or else it is an existing product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression below isn't working and I'm sure it's because of the set analysis trying to exclude the selected period.&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_13641597148801932" jivemacro_uid="_13641597148801932"&gt;&lt;P&gt;if(aggr(if(Period&amp;lt;= vMaxMonth and Period &amp;gt;= vMinMonth,sum(Value)),Description,Market) &amp;gt; 0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and sum({&amp;lt;Period=&amp;gt;}aggr(if(Period&amp;lt;vMinMonth and Period&amp;gt;=vMinMonthTotal,Value),Description,Market)) = 0 , 'New Launch', 'Existing')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxMonth is a variable = the latest month selected&lt;/P&gt;&lt;P&gt;vMinMonth is a variable = the earliest month selected&lt;/P&gt;&lt;P&gt;vMinMonthTotal is the earliest month in the database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value is the Sales&lt;/P&gt;&lt;P&gt;Period is my time dimension.&lt;/P&gt;&lt;P&gt;Description is the products.&lt;/P&gt;&lt;P&gt;Market is the total market.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Cindy &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 21:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385291#M486285</guid>
      <dc:creator />
      <dc:date>2013-03-24T21:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension AGGR function + Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385292#M486286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you pls. upload a sample app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 04:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385292#M486286</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-03-25T04:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension AGGR function + Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385293#M486287</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 figured it out myself! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems I had my "sum" expression in the wrong place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Cindz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 09:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385293#M486287</guid>
      <dc:creator />
      <dc:date>2013-03-26T09:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension AGGR function + Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385294#M486288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please share the corrected expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 13:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-AGGR-function-Set-Analysis/m-p/385294#M486288</guid>
      <dc:creator>sr_qlikview</dc:creator>
      <dc:date>2013-03-29T13:24:03Z</dc:date>
    </item>
  </channel>
</rss>

