<?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 do I pull data from a rolling 18 months in the Script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440995#M803918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a screenshot of the error message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2017 20:04:04 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-08T20:04:04Z</dc:date>
    <item>
      <title>How do I pull data from a rolling 18 months in the Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440992#M803915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to pull in 18 &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;full&lt;/STRONG&gt;&lt;/SPAN&gt; months of data on a rolling basis. I do not want any partial months except for the current month. How would I accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I experimented with the following let statements with no luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vStartDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TODAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-547);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v18MonthsAgo&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-01-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;***&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"DATE_CHANGED"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'MM/DD/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateChanged;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;FROM MyTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;WHERE "DATE_CHANGED" &amp;gt; '$(v18MonthsAgo)' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440992#M803915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull data from a rolling 18 months in the Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440993#M803916</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;LET vStartDate = Num(MonthStart(Today(), -18));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&amp;nbsp; DATE("DATE_CHANGED", 'MM/DD/YYYY') as DateChanged;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM MyTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE "DATE_CHANGED" &amp;gt; '$(vStartDate)'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 19:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440993#M803916</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-08T19:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull data from a rolling 18 months in the Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440994#M803917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get error message "Conversion failed when converting date and/or time from character string"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 20:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440994#M803917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull data from a rolling 18 months in the Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440995#M803918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a screenshot of the error message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 20:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440995#M803918</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-08T20:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull data from a rolling 18 months in the Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440996#M803919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/182607_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 20:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440996#M803919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T20:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull data from a rolling 18 months in the Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440997#M803920</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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LET vStartDate = Date(MonthStart(Today(), -18), 'DDMMMYYYY');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Load&amp;nbsp; DATE("DATE_CHANGED", 'MM/DD/YYYY') as DateChanged;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FROM MyTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;WHERE "DATE_CHANGED" &amp;gt; '$(vStartDate)'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 20:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440997#M803920</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-08T20:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull data from a rolling 18 months in the Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440998#M803921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can tell, this worked! Thank you for your help and quick responses!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 20:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-data-from-a-rolling-18-months-in-the-Script/m-p/1440998#M803921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T20:27:36Z</dc:date>
    </item>
  </channel>
</rss>

