<?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: Re: Turning an IF Statement to Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744541#M265815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are a few things to help with the issue&lt;/P&gt;&lt;P&gt;a) I have a calendar table that needs to be separated from the fact table - this is too complex to explain but trust me that this is how it needs to be designed&lt;/P&gt;&lt;P&gt;b) I have a table (see Usage.qvd) which has a number of records - each record has a subscriber id, a start date an end date and the status for that period.&lt;/P&gt;&lt;P&gt;c) A subscriber therefore can have a number of records to reflect the various status that it has passed say from Active (Status 3) to Inactive (Status 1) and back Active for example&lt;/P&gt;&lt;P&gt;d) I need to build a chart that on the x axis has the date element (year, quarter, Month week etc) and on the y-axis number of DISTINCT subscribers that have been active (Status of 3) for the chosen period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the 2 qvds you need &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2014 01:28:32 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2014-11-17T01:28:32Z</dc:date>
    <item>
      <title>Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744532#M265806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a very simple structure, as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="_test1.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71232__test1.jpg" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I am achieving my objective of plotting a calendar dimension on the X-axis and the following expression on the x-axis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= count(distinct if(StartDateInt &amp;lt;= DateID and EndDateInt &amp;gt;= DateID and Status = 3, SubscriberKey))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is VERY SLOW so I am trying to define the expression using SET ANALYSIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my attempt which does not appear to work - ANY HELP WOULD BE APPRECIATED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= count(distinct&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&amp;lt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[StartDateInt] = {"&amp;lt;=(DateID)"}, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[EndDateInt] = {"&amp;gt;=(DateID)"},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Status] = {3}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SubscriberKey)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 07:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744532#M265806</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-14T07:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744533#M265807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't it possible to create a Date Calendar for your fact table?&lt;/P&gt;&lt;P&gt;Using Iceland table and if together will always give you poor performance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 07:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744533#M265807</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-14T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744534#M265808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I agree with you 100% but as as I should have mentioned this is a simplified extract from a very large application that, for reasons that are too complex to explain here, the calendar needs to be disjointed from the fact table - after all this is why we have Set Analysis!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to respond&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 07:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744534#M265808</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-14T07:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744535#M265809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;Did you select only one DateID? Because in your expression &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;=(DateID)&lt;/EM&gt; if you have several &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateID&lt;/EM&gt; it will not work just because will be represented as&amp;nbsp; &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;=(Only(DateID)) and if you have several of them you will get Null().&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an option you can try to use Max(&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateID&lt;/EM&gt;) instead of &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateID&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 07:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744535#M265809</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-14T07:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744536#M265810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the IF statement I get the right results irrespective of the range of dates selected.&lt;/P&gt;&lt;P&gt;Removing the DISTINCT speeds things up but I need to calculate DISTINCT so that is back in&lt;/P&gt;&lt;P&gt;I cannot see how I can write this (and to work) using SET ANALYSIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 15:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744536#M265810</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-14T15:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744537#M265811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;What is the working if statement? Could you show it? &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;And you didn't answer my question: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Did you select only one DateID? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 11:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744537#M265811</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-15T11:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744538#M265812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working IF statement is in the question - here it is again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count(distinct &lt;STRONG&gt;IF&lt;/STRONG&gt;(StartDateInt &amp;lt;= DateID and EndDateInt &amp;gt;= DateID and Status = 3, SubscriberKey))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It works whether I select a year,a quarter, a month,a week or a date or date range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 15:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744538#M265812</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-15T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744539#M265813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is DateID a fixed value or something that depends on the transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with your lines like &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[StartDateInt] = {"&amp;lt;=(DateID)"},&lt;/EM&gt; is that "&amp;lt;=" is doing a search - not a selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is a fixed value you could for example use a dollar sign expansion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 12.7272720336914px; font-family: inherit;"&gt;= $(='&lt;/EM&gt;&lt;EM style="font-family: inherit; font-size: 12.7272720336914px; line-height: 1.5em; font-weight: inherit;"&gt;count(distinct&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 12.7272720336914px; font-family: inherit;"&gt;{&amp;lt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 12.7272720336914px; font-family: inherit;"&gt;[StartDateInt] = {"&amp;lt;=' &amp;amp; DateID &amp;amp; '"},&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 12.7272720336914px; font-family: inherit;"&gt;[EndDateInt] = {"&amp;gt;=&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 12.7272720336914px; font-weight: inherit;"&gt;' &amp;amp; DateID &amp;amp; '&lt;/EM&gt;"},&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 12.7272720336914px; font-family: inherit;"&gt;[Status] = {3}&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 12.7272720336914px; font-family: inherit;"&gt;&amp;gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 12.7272720336914px; font-family: inherit;"&gt;SubscriberKey)'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the data model? Is it possible to instead flag the correct lines in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 18:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744539#M265813</guid>
      <dc:creator>morgankejerhag</dc:creator>
      <dc:date>2014-11-15T18:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744540#M265814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understood, you need to calculate Amount of Subscribers in Year or Month or Day and show these numbers on the chart.&lt;/P&gt;&lt;P&gt;So, it's better to rebuild the data model and calculate with just simple Sum() or Count() without any IF or Set Analysis with the table like:&lt;/P&gt;&lt;P&gt;Date SubsKey Status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do it for you if you post a sample of your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 01:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744540#M265814</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-17T01:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744541#M265815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are a few things to help with the issue&lt;/P&gt;&lt;P&gt;a) I have a calendar table that needs to be separated from the fact table - this is too complex to explain but trust me that this is how it needs to be designed&lt;/P&gt;&lt;P&gt;b) I have a table (see Usage.qvd) which has a number of records - each record has a subscriber id, a start date an end date and the status for that period.&lt;/P&gt;&lt;P&gt;c) A subscriber therefore can have a number of records to reflect the various status that it has passed say from Active (Status 3) to Inactive (Status 1) and back Active for example&lt;/P&gt;&lt;P&gt;d) I need to build a chart that on the x axis has the date element (year, quarter, Month week etc) and on the y-axis number of DISTINCT subscribers that have been active (Status of 3) for the chosen period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the 2 qvds you need &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 01:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744541#M265815</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-17T01:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744542#M265816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Hi Morgan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;As I explained this is a simplification of a small part of a large project - the data structure is as above - 2 tables (see data (Qvd files) that I attached for Sergey earlier), Calendar and Usage that need to be kept unassociated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt; I need to build a chart that on the x axis has the date element (year, quarter, Month week etc) and on the y-axis number of DISTINCT subscribers that have been active (Status of 3) for the chosen period&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 01:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744542#M265816</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-17T01:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744543#M265817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexis,&lt;/P&gt;&lt;P&gt;PFA my solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's better to add additional calendar just to decrease data in the LinkTable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built the linkable for all Statues, but you can easily filter it and make it smaller if you need it only for Status=3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just reload the data from your qvd. I reduced the data in this file to load it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 03:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744543#M265817</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-17T03:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an IF Statement to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744544#M265818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. So the two tables are not connected at all? How many rows do you have in each of the tables in the real case? Since they are not connected QlikView will generate a Cartesian product and consume a LOT of memory and cpu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you have the calendar as X-axis the value of DateID will be different for each dimensional point. Set analysis however is calculated once for the whole set of dimensional values. You can not have a set analysis that takes the current dimensional value into account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without changing your data model I don't think you can solve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 07:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turning-an-IF-Statement-to-Set-Analysis/m-p/744544#M265818</guid>
      <dc:creator>morgankejerhag</dc:creator>
      <dc:date>2014-11-17T07:13:29Z</dc:date>
    </item>
  </channel>
</rss>

