<?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: Set Expression Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592261#M219599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer the attached file. I have created a chart object for demonstrating how the variable can be used. Please also refer the variable from variable overview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 09:10:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-17T09:10:55Z</dc:date>
    <item>
      <title>Set Expression Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592256#M219594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;sum({&amp;lt;R_YEAR=, &lt;SPAN style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;R_MONTH={'&amp;gt;$(=max(R_MONTH))'}&lt;/STRONG&gt;,&lt;/SPAN&gt; To_YEAR={$(=max(R_YEAR)+1)},To_MONTH={'&amp;gt;=$(=max(R_MONTH))&amp;lt;=$(=max(R_MONTH))'}, POL_TYPE={'F'}&amp;gt;}[PREMIUM] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Pls refer my attachment and I want the above highlighted part of the expression to change as &lt;SPAN style="color: #575757;"&gt;R_Month should be months coming after the R_Month and all other conditions should remain as it is. Here I have defined R_Month &amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #575757;"&gt;Max(&lt;/SPAN&gt;R_Month) But I want it to be changed R_Month&amp;lt;&amp;gt;&lt;SPAN style="color: #575757;"&gt;Max(&lt;/SPAN&gt;R-Month)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Eg If User select R_Month=Jan Expression should select Feb-dec&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R_Month=Dec Expression should select Jan-Nov etc&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R_Month=Jun Expression should select Jul-May etc&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Pls help me&lt;/P&gt;&lt;P class="jive-attachments" style="margin: 15px 0 0; padding: 16px; font-style: inherit; font-family: inherit; background-color: #fdfdfd;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" class="j-attachment-icon" href="https://community.qlik.com/servlet/JiveServlet/download/469456-92079/000001.qvw" style="font-style: inherit; font-family: inherit; color: #3778c7;"&gt;000001.qvw&lt;/A&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 07:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592256#M219594</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-02-17T07:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592257#M219595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;Date = {'&amp;gt;=$(=MonthStart(Max(Date), -3))&amp;lt;=$(=MonthEnd(Max(Date)-1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 08:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592257#M219595</guid>
      <dc:creator />
      <dc:date>2014-02-17T08:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592258#M219596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not understand it . pls explain &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 08:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592258#M219596</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-02-17T08:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592259#M219597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The query is a bit unclear but from what I understood, you want to exclude the selected month. You can do this by creating a variable and using that in your set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define a variable "xMonths" as "=Replace(concat({&amp;lt;R_MONTH=&amp;gt;} DISTINCT&amp;nbsp; R_MONTH, ',') ,(Concat(DISTINCT R_MONTH, ',')&amp;amp;','),'')"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable will give you all month names except the one you have selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this variable in your set expression for calculations like below&lt;/P&gt;&lt;P&gt;R_MONTH={$(xMonths)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sajeevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 08:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592259#M219597</guid>
      <dc:creator />
      <dc:date>2014-02-17T08:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592260#M219598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajeewan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please rewrite my expression having inserted the variable created as per your advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 08:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592260#M219598</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-02-17T08:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Expression Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592261#M219599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer the attached file. I have created a chart object for demonstrating how the variable can be used. Please also refer the variable from variable overview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 09:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592261#M219599</guid>
      <dc:creator />
      <dc:date>2014-02-17T09:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592262#M219600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply and attachment. But as I mentioned in my original question other conditions too should be in tact in y expression &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;To_YEAR={$(=max(R_YEAR)+1)},To_MONTH={'&amp;gt;=$(=max(R_MONTH))&amp;lt;=$(=max(R_MONTH))'},&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;Please also consider those conditions and modify my expression &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;Thanks&amp;nbsp; a lot for your help&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 09:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Date/m-p/592262#M219600</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-02-17T09:40:33Z</dc:date>
    </item>
  </channel>
</rss>

