<?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 restrict months depending on other expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523996#M195741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg and whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both expressions are ok and work perfectly.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I think&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;did not make myself&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;understood&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="alt-edited hps"&gt;I intend to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;condition&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expression1, by &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;returned &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;months in &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;expression2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Bruno &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 08:42:43 GMT</pubDate>
    <dc:creator>bruno_m_santos</dc:creator>
    <dc:date>2013-08-26T08:42:43Z</dc:date>
    <item>
      <title>Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523993#M195738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;doubts&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in one Set Analysis expression&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="alt-edited hps"&gt;I intend to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;restrict the month for&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expression1&lt;/SPAN&gt;, depending on the &lt;SPAN class="hps"&gt;months&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;results&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;expression 2&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I think the problem&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is in the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;quoting&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Someone&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can help me&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression1:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;MonthID = {"&amp;gt;=$(=Max(MonthID) -11)&amp;lt;=$(=Max(MonthID))"},&lt;BR /&gt;CalendarType = {$(=vCalendarType)},&lt;BR /&gt;MonthOrder = ,&lt;BR /&gt;Date = {"&amp;lt;=$(=Max(Date))"},&lt;BR /&gt;Year = ,&lt;BR /&gt;FiscalYear = ,&lt;BR /&gt;Quarter = ,&lt;BR /&gt;Week = ,&lt;BR /&gt;[Period (#)] = ,&lt;BR /&gt;Month =&lt;BR /&gt;,[Brand Code]={'=(365-Max( $(vSetRolling12) Date) + Min( $(vSetRolling12) Date)) &amp;lt;$(vL4LNrDays) and Sum({$(vRolling12)} _Inactive_Brand)&amp;lt;1'}&lt;/P&gt;
&lt;P&gt;&amp;gt;}&lt;/P&gt;
&lt;P&gt;[#Turnover EUR])&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression2&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;sum({&amp;lt;MonthID = {"&amp;gt;=$(=Max(MonthID) -23)&amp;lt;=$(=Max(MonthID)-12)"},&lt;BR /&gt;CalendarType = {$(=vCalendarType)},&lt;BR /&gt;MonthOrder = ,&lt;BR /&gt;Date = {"&amp;lt;=$(=Max(Date))"},&lt;BR /&gt;Year = ,&lt;BR /&gt;FiscalYear = ,&lt;BR /&gt;Quarter = ,&lt;BR /&gt;Week = ,&lt;BR /&gt;[Period (#)] = ,&lt;BR /&gt;Month= ,&lt;BR /&gt;[Brand Code]={'=(365-Max( $(vSetRolling12) Date) + Min( $(vSetRolling12) Date)) &amp;lt;$(vL4LNrDays) and Sum({$(vRolling12)} _Inactive_Brand)&amp;lt;1'}&lt;/P&gt;
&lt;P&gt;&amp;gt;}&lt;/P&gt;
&lt;P&gt;[#Turnover EUR])&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 08:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523993#M195738</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-08-23T08:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523994#M195739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your set expression is rather complex.&lt;/P&gt;&lt;P&gt;First, I suggest you to test each part separately.&lt;/P&gt;&lt;P&gt;For example:&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;MonthID = {"&amp;gt;=$(=Max(MonthID) -23)&amp;lt;=$(=Max(MonthID)-12)"}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[#Turnover EUR])&lt;/SPAN&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;If this one doesn't work properly, try an &lt;SPAN style="color: #000000; font-family: arial, sans-serif;"&gt;explicit form:&lt;/SPAN&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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;MonthID = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthID&lt;/SPAN&gt;&amp;gt;=$(=Max(MonthID) -23) and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthID&lt;/SPAN&gt;&amp;lt;=$(=Max(MonthID)-12)"}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[#Turnover EUR])&lt;/SPAN&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;Also, your expression is a bit tricky as the variables are used with $-sign expansion.&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;Depending on what is the values of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vSetRolling12)&lt;/SPAN&gt; or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vRolling12)&lt;/SPAN&gt; the resulting expression may be wrong.&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;As a guess, In the string "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and Sum({$(vRolling12)} _Inactive_Brand)&amp;lt;1'}" there is no &amp;lt;&amp;gt; signs around the expansion &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vRolling12). If they not present in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vRolling12&lt;/SPAN&gt;, it results in a wrong syntax.&lt;/SPAN&gt;&lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 19:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523994#M195739</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-24T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523995#M195740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have an extra closing curvy bracket after &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({$(vRolling12)} &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 11:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523995#M195740</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-08-25T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523996#M195741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg and whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both expressions are ok and work perfectly.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I think&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;did not make myself&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;understood&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="alt-edited hps"&gt;I intend to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;condition&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expression1, by &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;returned &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;months in &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;expression2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Bruno &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 08:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523996#M195741</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-08-26T08:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523997#M195742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis expressions cannot be conditioned by other expressions, or by any dimensions, because Set Analysis condition is calculated only once per chart, globally, with no regard to dimensions and other expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 13:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523997#M195742</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-08-26T13:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523998#M195743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Oleg,&lt;/P&gt;&lt;P&gt;many thanks by your contribution.&lt;/P&gt;&lt;P&gt;Do you have any suggestion, to achieve my need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 10:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523998#M195743</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-08-27T10:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523999#M195744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Bruno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain your needs more? &lt;/P&gt;&lt;P&gt;As you described only the way you want to use to achive it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 10:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/523999#M195744</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-27T10:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524000#M195745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi whiteline,&lt;/P&gt;&lt;P&gt;I've a SetAnalysis(Rolling12)&amp;nbsp; (Expression1) that it's ok. I've a similar one, for the previous rolling12 (Expression2).&lt;/P&gt;&lt;P&gt;I need to build a Like for Like expression, similar to expression1, but where month exists in expression2.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;MonthID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;"&amp;gt;=$(=Max(MonthID)-11)&amp;lt;=$(=Max(MonthID))"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;CalendarType&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-family: 'Courier New';"&gt;$(=vCalendarType)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;MonthOrder&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;"&amp;lt;=$(=Max(Date))"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;FiscalYear&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;Quarter&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;[Period (#)]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'Jul','Aug'}, &lt;SPAN style="color: #ff0000;"&gt;//I need this dynamic, dependent from possible months in expression2//&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;[Brand Code]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;={'=(365-Max($(vSetRolling12) Date) + Min( $(vSetRolling12) Date)) &amp;lt;$(vL4LNrDays) and Sum({$(vRolling12)} _Inactive_Brand)&amp;lt;1'}&lt;BR /&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New';"&gt;[#Turnover EUR]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;It's possible to concatenate the possible months, returned by expression2 in a variable?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 11:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524000#M195745</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-08-27T11:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524001#M195746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Bruno.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I still don't understand, what means 'possible months, returned by expression2'. Your expression2 is just the same sum as expr1 just 12 months back.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And what means dynamic month, should it be selected by user or be dependent on dimension value (The last one as Oleg mentioned above isn't possible with set analysis).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 14:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524001#M195746</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-27T14:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524002#M195747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi whiteline,&lt;/P&gt;&lt;P&gt;Consider this example, please.&lt;/P&gt;&lt;P&gt;I've two columns, one with Current MAT (Rolling12) and other with Previous MAT.&lt;/P&gt;&lt;P&gt;I pretend to show in Current MAT column, the value for the months that exists in previous MAT (Jul and Aug).&lt;/P&gt;&lt;P&gt;In the real case, I don't have the month as Dimension at chart.&lt;/P&gt;&lt;P&gt;Any doubt, ask please.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruno&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;IMG alt="mat.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/45947_mat.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 22:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524002#M195747</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-08-27T22:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524003#M195748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I think you could use P() function to get the months from the expression2 with the same set expression (bolded).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MonthID = {"&amp;gt;=$(=Max(MonthID) -11)&amp;lt;=$(=Max(MonthID))"},&lt;/P&gt;&lt;P&gt;CalendarType = {$(=vCalendarType)},&lt;/P&gt;&lt;P&gt;MonthOrder = ,&lt;/P&gt;&lt;P&gt;Date = {"&amp;lt;=$(=Max(Date))"},&lt;/P&gt;&lt;P&gt;Year = ,&lt;/P&gt;&lt;P&gt;FiscalYear = ,&lt;/P&gt;&lt;P&gt;Quarter = ,&lt;/P&gt;&lt;P&gt;Week = ,&lt;/P&gt;&lt;P&gt;[Period (#)] = ,&lt;/P&gt;&lt;P&gt;Month = P(&lt;STRONG&gt;{&amp;lt;MonthID = {"&amp;gt;=$(=Max(MonthID) -23)&amp;lt;=$(=Max(MonthID)-12)"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&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; CalendarType = {$(=vCalendarType)}, MonthOrder = , Date = {"&amp;lt;=$(=Max(Date))"}, Year = , FiscalYear = , Quarter = , Week = , [Period (#)] = , Month= ,&lt;/STRONG&gt; &lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;[Brand Code]={'=(365-Max( $(vSetRolling12) Date) + Min( $(vSetRolling12) Date)) &amp;lt;$(vL4LNrDays) and Sum({$(vRolling12)} _Inactive_Brand)&amp;lt;1'}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Month)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Brand Code]={'=(365-Max( $(vSetRolling12) Date) + Min( $(vSetRolling12) Date)) &amp;lt;$(vL4LNrDays) and Sum({$(vRolling12)} _Inactive_Brand)&amp;lt;1'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;[#Turnover EUR])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 08:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524003#M195748</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-29T08:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524004#M195749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Unfortunately&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;it does not work&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;If I have a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;filtered&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;brand&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;works&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;because&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;P&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;(&lt;/SPAN&gt;) returns &lt;SPAN class="hps"&gt;only&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the months&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for that brand&lt;/SPAN&gt;. &lt;SPAN class="hps"&gt;Otherwise&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;it always returns&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;every months. It means that I've brands that have worked the all year and others not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Bruno&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 10:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524004#M195749</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-08-29T10:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524005#M195750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can just clear [brand]= in the set expression for P() or use full {1} set instead of current {$} as a base.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 11:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524005#M195750</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-29T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524006#M195751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may &lt;SPAN class="hps"&gt;be saying&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a big&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;nonsense...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;But&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;espression&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;P&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;(&lt;/SPAN&gt;), &lt;SPAN class="hps"&gt;is it possible to&lt;/SPAN&gt; &lt;SPAN class="alt-edited hps"&gt;evaluate by &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;each line&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;(&lt;/SPAN&gt;Brands), &lt;SPAN class="hps"&gt;which&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;were&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the months&lt;/SPAN&gt; with data&lt;SPAN class="hps"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;If I put&amp;nbsp; {1},it 'll be disrargind the filters, but don't make diference. The fundamental issue is that, by each line (Brand) it's need to evaluate if exists data on expression2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Bruno&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 12:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524006#M195751</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-08-29T12:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis restrict months depending on other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524007#M195752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In such a case to use set analysis you should create some complex key field, and use it for filtering.&lt;/P&gt;&lt;P&gt;For example, the field constructed of Brands and Months allow you select each combination of brand and month separately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 14:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restrict-months-depending-on-other-expression/m-p/524007#M195752</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-29T14:10:03Z</dc:date>
    </item>
  </channel>
</rss>

