<?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: hold all months less than current month  in variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232770#M392626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, if you're using month(today()) to get the current month, then I'm guessing you're using month(Date) as Month instead of monthstart(Date). In that case, just replace my monthstart() with month(). Hopefully this does the trick?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat({&amp;lt;Month={"=Month&amp;lt;month(today())"}&amp;gt;} distinct Month,', ',Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2016 23:44:37 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2016-11-14T23:44:37Z</dc:date>
    <item>
      <title>hold all months less than current month  in variable</title>
      <link>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232765#M392621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, How do I define a variable which holds all months(separated by comma) less than current month&amp;nbsp; in a variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 15:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232765#M392621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T15:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: hold all months less than current month  in variable</title>
      <link>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232766#M392622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming your months are defined as dates (like the first of the month, formatted to not show the day), then I believe this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;concat&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"=Month&amp;lt;monthstart(today())"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;,',',&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 00:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232766#M392622</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-11T00:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: hold all months less than current month  in variable</title>
      <link>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232767#M392623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this but my variable didn't return anything.. I think I am doing something wrong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my requirement:&lt;/P&gt;&lt;P&gt;If current month is Sept, my variable should return - Jan, Feb, Mar, Apr, May, Jun, Jul, Aug(i.e Months in MMM format separated by commas).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 00:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232767#M392623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T00:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: hold all months less than current month  in variable</title>
      <link>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232768#M392624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are your months defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;date(monthstart(Date),'MMM') as Month&lt;/LI&gt;&lt;LI&gt;month(Date) as Month&lt;/LI&gt;&lt;LI&gt;'Sep' as Month&lt;/LI&gt;&lt;LI&gt;other?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 16:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232768#M392624</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-14T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: hold all months less than current month  in variable</title>
      <link>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232769#M392625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read the current date from Today() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I use Month(Today()) to get current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use a variable which will store all MTD Months separated by commas(eg: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Jan, Feb, Mar, Apr, May, Jun, Jul, Aug&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need anything further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 23:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232769#M392625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T23:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: hold all months less than current month  in variable</title>
      <link>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232770#M392626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, if you're using month(today()) to get the current month, then I'm guessing you're using month(Date) as Month instead of monthstart(Date). In that case, just replace my monthstart() with month(). Hopefully this does the trick?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat({&amp;lt;Month={"=Month&amp;lt;month(today())"}&amp;gt;} distinct Month,', ',Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 23:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hold-all-months-less-than-current-month-in-variable/m-p/1232770#M392626</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-14T23:44:37Z</dc:date>
    </item>
  </channel>
</rss>

