<?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: Create a variable for previous month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420630#M459104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output is what i'm looking for....&lt;/P&gt;&lt;P&gt;...but I was wondering if it could be possible to use as Date of the Mastercalendar "Due Date" and not "Payment Date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2017 19:27:09 GMT</pubDate>
    <dc:creator>caccio88</dc:creator>
    <dc:date>2017-11-06T19:27:09Z</dc:date>
    <item>
      <title>Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420624#M459098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's my point. I'd like to create a table dipendent from two field of Date.&lt;/P&gt;&lt;P&gt;The first one is the month of the value aggregation and the second one is a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach here what I'm looking for in excel example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the final target table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="295"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="31" width="67"&gt;Jul-17&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="78"&gt;Aug-17&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="76"&gt;Sep-17&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="74"&gt;Oct-17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="31" style="border-top: none;"&gt;36&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;14&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;Thank you so much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filiberto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 13:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420624#M459098</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2017-11-06T13:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420625#M459099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Flag = {1}&amp;gt;} Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/182255_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Flag is created like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MonthName([Payment Date]) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([Due Date] &amp;lt;= MonthName([Payment Date]), 1, 0) as Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Due Date, Month DD, Payment Date, Month PD, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/9/2017,&amp;nbsp; 9.00 , 10/7/2017,&amp;nbsp; 10.00 , 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/9/2017,&amp;nbsp; 7.00 , 10/8/2017,&amp;nbsp; 10.00 , 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/9/2017,&amp;nbsp; 9.00 , 10/9/2017,&amp;nbsp; 10.00 , 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/9/2017,&amp;nbsp; 10.00 , 10/10/2017,&amp;nbsp; 10.00 , 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/9/2017,&amp;nbsp; 9.00 , 10/10/2017,&amp;nbsp; 10.00 , 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/9/2017,&amp;nbsp; 6.00 , 10/10/2017,&amp;nbsp; 10.00 , 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/9/2017,&amp;nbsp; 11.00 , 9/10/2017,&amp;nbsp; 9.00 , 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/9/2017,&amp;nbsp; 10.00 , 9/11/2017,&amp;nbsp; 9.00 , 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/9/2017,&amp;nbsp; 10.00 , 9/12/2017,&amp;nbsp; 9.00 , 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8/9/2017,&amp;nbsp; 8.00 , 9/13/2017,&amp;nbsp; 9.00 , 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/9/2017,&amp;nbsp; 10.00 , 9/14/2017,&amp;nbsp; 9.00 , 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/9/2017,&amp;nbsp; 7.00 , 9/15/2017,&amp;nbsp; 9.00 , 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/9/2017,&amp;nbsp; 10.00 , 8/10/2017,&amp;nbsp; 8.00 , 9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/9/2017,&amp;nbsp; 10.00 , 8/11/2017,&amp;nbsp; 8.00 , 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/9/2017,&amp;nbsp; 7.00 , 8/12/2017,&amp;nbsp; 8.00 , 11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/10/2017,&amp;nbsp; 7.00 , 8/13/2017,&amp;nbsp; 8.00 , 12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/11/2017,&amp;nbsp; 7.00 , 8/14/2017,&amp;nbsp; 8.00 , 13&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/9/2017,&amp;nbsp; 6.00 , 8/15/2017,&amp;nbsp; 8.00 , 14&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/9/2017,&amp;nbsp; 6.00 , 7/10/2017,&amp;nbsp; 7.00 , 15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/10/2017,&amp;nbsp; 6.00 , 7/11/2017,&amp;nbsp; 7.00 , 16&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/9/2017,&amp;nbsp; 7.00 , 7/12/2017,&amp;nbsp; 7.00 , 17&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/10/2017,&amp;nbsp; 10.00 , 7/13/2017,&amp;nbsp; 7.00 , 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/9/2017,&amp;nbsp; 5.00 , 7/14/2017,&amp;nbsp; 7.00 , 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/10/2017,&amp;nbsp; 5.00 , 7/15/2017,&amp;nbsp; 7.00 , 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 13:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420625#M459099</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-06T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420626#M459100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this without creating the flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(If([Due Date] &amp;lt;= MonthYear, Value))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 13:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420626#M459100</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-06T13:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420627#M459101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be better to do this as your flag (&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt; instead of &lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If([Due Date] &amp;lt; MonthName([Payment Date]), 1, 0) as Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 14:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420627#M459101</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-06T14:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420628#M459102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;, as usual! &lt;/P&gt;&lt;P&gt;I think that my issue is a bit different from what I told you before...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach her my real issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think about?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Fil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 18:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420628#M459102</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2017-11-06T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420629#M459103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this look like what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/182300_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 19:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420629#M459103</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-06T19:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420630#M459104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output is what i'm looking for....&lt;/P&gt;&lt;P&gt;...but I was wondering if it could be possible to use as Date of the Mastercalendar "Due Date" and not "Payment Date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 19:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420630#M459104</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2017-11-06T19:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420631#M459105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to elaborate on why you want to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 19:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420631#M459105</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-06T19:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420632#M459106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I'll try...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause in my real dataset i need do something different...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach here a new example to introduce you a new field "CLOSED/OPEN".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to use the "Due Date" as my date for the mastercalendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear enough? &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 19:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420632#M459106</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2017-11-06T19:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420633#M459107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this kind of requirement, I suggest creating a &lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 20:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-variable-for-previous-month/m-p/1420633#M459107</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-06T20:08:58Z</dc:date>
    </item>
  </channel>
</rss>

