<?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: How to replace the current month variable with any month I select? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581583#M683636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you are thinking in select more than one value for the months and you want to save all values in the variable, you can use Concat(GetFieldSelections(F1), '|').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second parameters is a split character between values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 23:42:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-27T23:42:11Z</dc:date>
    <item>
      <title>How to replace the current month variable with any month I select?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581581#M683634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable vCurrentMonth which on reload loads the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box with that last 6 months displayed.&amp;nbsp; I would like the vCurrentMonth variable to swap out the current month with the one I select.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So for instance if February is the current month and I select December.&amp;nbsp; December now becomes the current month.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 23:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581581#M683634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T23:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the current month variable with any month I select?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581582#M683635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darrin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set a trigger on Field change action, and in this set the variable value as GetFieldSelections(Month) or Only(Month) or Max(Month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document Properties - &amp;gt; Triggers -&amp;gt; On Fields list, select the month field and then set the action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Print3.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53989_Print3.PNG.png" style="width: 620px; height: 255px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Print4.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53996_Print4.PNG.png" style="width: 620px; height: 425px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if you have any problem.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 23:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581582#M683635</guid>
      <dc:creator />
      <dc:date>2014-02-27T23:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the current month variable with any month I select?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581583#M683636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you are thinking in select more than one value for the months and you want to save all values in the variable, you can use Concat(GetFieldSelections(F1), '|').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second parameters is a split character between values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 23:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581583#M683636</guid>
      <dc:creator />
      <dc:date>2014-02-27T23:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the current month variable with any month I select?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581584#M683637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guzman, that worked great.&amp;nbsp; But one thing broke.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a second variable for the vPrevMonth to store the prior month which I have now set a second action on max(F1) -1&lt;/P&gt;&lt;P&gt;I have numbers for the months from the start of our calendar so -1 will always work and it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This month is 50 and my variable, when I click on Feb, does make the vPrevMonth = 49.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it seems that my set analysis using the vPrevMonth does not work any longer.&amp;nbsp; My fear is that when I select my month it now has the month as the current selection and thus drops the prior month I wish to display as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a nutshell I want to take this further where when a month is selected, the previous changes and is not limited by the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 08:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581584#M683637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-28T08:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the current month variable with any month I select?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581585#M683638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want previous as well as the current month data, try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum( {&amp;lt;Month={$(vCurrentMonth), $(vPrevMonth)}&amp;gt;} Amount)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For only previous month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum( {&amp;lt;Month={$(vPrevMonth)}&amp;gt;} Amount)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to disregard a field's selection then like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum( {&amp;lt;FieldNameTobeDisregarded=,Month={$(vPrevMonth)}&amp;gt;} Amount)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To disregard all selections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum( {&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;Month={$(vPrevMonth)}&amp;gt;} Amount)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 08:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-the-current-month-variable-with-any-month-I/m-p/581585#M683638</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-02-28T08:47:48Z</dc:date>
    </item>
  </channel>
</rss>

