<?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 Load in script YearMonth YYYYMM less than today() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036364#M930604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;got a Date field YYYYMM in a table, formatted like this in an earlier step/app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(MyField,'YYYYMM'),'YYYYMM') AS Period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in a second app, I will load this table (with the Period field), and use a where clause that should only load records where Period is less than todays YYYYMM. For example, now we have March 2015 (201503) and then I will only load records less than 201503. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? Format and use today() somehow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036364#M930604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;got a Date field YYYYMM in a table, formatted like this in an earlier step/app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(MyField,'YYYYMM'),'YYYYMM') AS Period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in a second app, I will load this table (with the Period field), and use a where clause that should only load records where Period is less than todays YYYYMM. For example, now we have March 2015 (201503) and then I will only load records less than 201503. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? Format and use today() somehow?&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/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036364#M930604</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036365#M930605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying that you are creating a new application and loading the same table, then you should do as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P&gt;from xyz where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(Date#(MyField,'YYYYMM'),'YYYYMM') &amp;lt; date(today(),'YYYYMM');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If you are saying that you are doing this in same app, where in first step have already converted this then you should do as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Load * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Resident (Tablename Which you have loaded earlier)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where Period &amp;lt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date(today(),'YYYYMM');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 08:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036365#M930605</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-03-09T08:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036366#M930606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like Where Period &amp;lt; Monthstart(today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 08:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036366#M930606</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-09T08:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036367#M930607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Period &amp;lt;= Today();&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 08:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036367#M930607</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-09T08:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036368#M930608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * From yourtable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Where Period &amp;lt;= Today();&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 08:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036368#M930608</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-03-09T08:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036369#M930609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Try like,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load * From Table &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Period &amp;lt; &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Date(Today(),'YYYYMM');&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 08:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036369#M930609</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-03-09T08:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036370#M930610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have made an example (see attached file) which contains this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Item, Date(Date#(Period,'YYYYMM'),'YYYYMM') as Period&amp;nbsp; &lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item, Period&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 201601&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 201602&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 201603&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, 201604&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, 201605&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;where Date(Date#(Period,'YYYYMM'),'YYYYMM') &amp;lt; date(today(),'YYYYMM');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result still shows 201603 (but not 201604 and 201605).&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036370#M930610</guid>
      <dc:creator />
      <dc:date>2016-03-09T09:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036371#M930611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would it show 201604 and 201605? Those period are greater than Today(), right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036371#M930611</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-09T09:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036372#M930612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u are applying the format and filter in a single load statement, then try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where Date(Date#(MyField,'YYYYMM'),'YYYYMM') &amp;lt;Date(today(),'YYYYMM')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036372#M930612</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-03-09T09:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036373#M930613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is OK, but why does it show 201603? 201603 is not less than today?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036373#M930613</guid>
      <dc:creator />
      <dc:date>2016-03-09T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Load in script YearMonth YYYYMM less than today()</title>
      <link>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036374#M930614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean. Try this in that case:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Date#(Period,'YYYYMM') &amp;lt; MonthStart(Today());&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-in-script-YearMonth-YYYYMM-less-than-today/m-p/1036374#M930614</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-09T09:29:11Z</dc:date>
    </item>
  </channel>
</rss>

