<?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 Set Analysis Failed to Ignore Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Failed-to-Ignore-Dimension/m-p/526445#M481831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi QlikCommunity folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a total sum table by using Set Analysis, for the first 2 year data, I want to sum the total 1st 24 months (i.e. year 1 and year 2 total) value and starting from the 3rd year, the value is based on the previous 2 year data (i.e. year 3 will show the total of year 1 and year 2, and year 4 will show the total of year 2 and year 3). For each product, I have individual tab to provide detailed analysis pertains to that product only (by having a trigger when activating the tab associated with that product with a filter type of product = XXXX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using the following expression to calculate the total sum for the first 2 years:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Year IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=2011, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Year IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2010,2011} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month Name IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Isolate.ProductCode={'0001','0002','0003'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Type of Products]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} total aggr(count({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Year IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2010,2011} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month Name IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Isolate.ProductCode={'0001','0002','0003'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Type of Products]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}SurveillanceFile.PK),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month Name IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)), null()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However, not all products have sales for each month, and when I used the above expression, the months that had no sales will show up as with NULL vs. the total sales. For example, is May 2011 does not have sale for product X, then the total sum column will show a "-" even though it meets the if statement criteria&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Does anyone have idea on how to tackle this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 13:30:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-16T13:30:57Z</dc:date>
    <item>
      <title>Set Analysis Failed to Ignore Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Failed-to-Ignore-Dimension/m-p/526445#M481831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi QlikCommunity folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a total sum table by using Set Analysis, for the first 2 year data, I want to sum the total 1st 24 months (i.e. year 1 and year 2 total) value and starting from the 3rd year, the value is based on the previous 2 year data (i.e. year 3 will show the total of year 1 and year 2, and year 4 will show the total of year 2 and year 3). For each product, I have individual tab to provide detailed analysis pertains to that product only (by having a trigger when activating the tab associated with that product with a filter type of product = XXXX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using the following expression to calculate the total sum for the first 2 years:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Year IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=2011, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Year IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2010,2011} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month Name IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Isolate.ProductCode={'0001','0002','0003'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Type of Products]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} total aggr(count({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Year IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2010,2011} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month Name IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Isolate.ProductCode={'0001','0002','0003'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Type of Products]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}SurveillanceFile.PK),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Month Name IMDt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)), null()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However, not all products have sales for each month, and when I used the above expression, the months that had no sales will show up as with NULL vs. the total sales. For example, is May 2011 does not have sale for product X, then the total sum column will show a "-" even though it meets the if statement criteria&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Does anyone have idea on how to tackle this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 13:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Failed-to-Ignore-Dimension/m-p/526445#M481831</guid>
      <dc:creator />
      <dc:date>2013-09-16T13:30:57Z</dc:date>
    </item>
  </channel>
</rss>

