<?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: Set Analysis Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652628#M475119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try making a variable and perform the calculation [ &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Capture_Date+(vRollPeriod*7)&lt;/SPAN&gt; ] in the variable and return it into the set analysis expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2014 10:48:11 GMT</pubDate>
    <dc:creator>hannan_t</dc:creator>
    <dc:date>2014-08-11T10:48:11Z</dc:date>
    <item>
      <title>Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652620#M475111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am challenged w a Set Analysis expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following Set Analysis expression is returning NO values;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Date={"&amp;lt;=Capture_Date+(vRollPeriod*7)"}&amp;gt;}Sales_Retail)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas the following IF expression IS returning the expected values;&lt;/P&gt;&lt;P&gt;=Sum(If(Date&amp;lt;=Capture_Date+(vRollPeriod*7),Sales_Retail,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues as to why the Set Analysis expression will not return a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add some context, the intent is to provide visibility to Customer Purchases ("Sales_Retail") for a select period ("vRollPeriod") since they were registered ("Capture_Date"). "Date" represents the date of a purchase. Further, "vRollPeriod" is a selection of value that represents a No of Weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 01:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652620#M475111</guid>
      <dc:creator />
      <dc:date>2014-08-10T01:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652621#M475112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({$&amp;lt;Date={"&amp;lt;=Date(Capture_Date+($(vRollPeriod)*7))"}&amp;gt;}Sales_Retail)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 02:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652621#M475112</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-08-10T02:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652622#M475113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, unfortunately that is not working. I will attach the .qvw for better context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 11:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652622#M475113</guid>
      <dc:creator />
      <dc:date>2014-08-10T11:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652623#M475114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.qvw attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 12:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652623#M475114</guid>
      <dc:creator />
      <dc:date>2014-08-10T12:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652624#M475115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;In this case, Set Analysis will not work. Set Analysis is calculated once for the whole chart, before it is rendered, therefore its speed. But in your case, what you want to do is a column by column comparison, not a set analysis. Depending on the value in one column you want to get different values in the other, and thus for each row. You If() solution is good, and probably the only one here, apart from doing something in the script.&lt;/P&gt;&lt;P&gt;Moreover, you are using calculated dimensions, that need to be solved before the set and that will only work with If() and not Set Analysis&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Do not upload so big files, took long to download. A dozen customers would have done the same!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 16:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652624#M475115</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-08-10T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652625#M475116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not clear on how I am wanting to do a column by column comparison. I do have a few columns visible that display the components of the expression-- this is for demonstration purposes. Those will go away once I get the Set Analysis expression right. I find it hard to believe that a Set Analysis expression cannot be used in place of the IF expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 21:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652625#M475116</guid>
      <dc:creator />
      <dc:date>2014-08-10T21:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652626#M475117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;This has been long discussed in Qlik Community since the introduction of Set Analysis in later version 8.5. Here you are some of the links that provide some insights on when to use If() and when Set Analysis, and why:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/82978"&gt;Set analysis help&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/460127"&gt;Re: If statement vs set analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/41354"&gt;Background Chart Expression Color using Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/39833"&gt;Basic Set Analysis Question&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1335"&gt;Evaluating "sets" in the context of a dimension&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/11267"&gt;Sum of others using set analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/29125"&gt;Set analysis: ColA &amp;amp;lt;= ColB&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/554148"&gt;Re: Gap between "if" and set analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652626#M475117</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-08-11T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652627#M475118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({$&amp;lt;Date={"&amp;lt;=Date(Capture_Date+($(=vRollPeriod)*7))"}&amp;gt;}Sales_Retail)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;i thought the problem is about vRollPeriod variable &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 10:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652627#M475118</guid>
      <dc:creator>menta</dc:creator>
      <dc:date>2014-08-11T10:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652628#M475119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try making a variable and perform the calculation [ &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Capture_Date+(vRollPeriod*7)&lt;/SPAN&gt; ] in the variable and return it into the set analysis expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 10:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue/m-p/652628#M475119</guid>
      <dc:creator>hannan_t</dc:creator>
      <dc:date>2014-08-11T10:48:11Z</dc:date>
    </item>
  </channel>
</rss>

