<?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: Prior Month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184071#M21997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the timely response.&amp;nbsp; This absolutely works for creating the date, however it only seems to respond with the '&amp;gt;' symbol.&amp;nbsp; As I am trying to report on just the one specific month, I am trying to limit it to just that month.&amp;nbsp; However, by using the '=' alone, no records are being pulled.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2016 17:24:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-14T17:24:54Z</dc:date>
    <item>
      <title>Prior Month</title>
      <link>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184069#M21995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have several SQL queries populating QVDs within Qlik Sense.&amp;nbsp; I am attempting to automate my apps so that at the beginning of every month a task reloads the data and brings in the most recent data.&amp;nbsp; Each SQL table has an 'AsOfDate' field that indicates the relative month of the data (eg 2016-08-01 is the most recent data in each SQL table.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am attempting to do is use a where clause in the Data Load Editor to target last month's data.&amp;nbsp; Currently, I have to go in each month and update the where clause to the most recent month.&amp;nbsp; (where AsOfDate = '2016-08-01';&amp;nbsp; I want to say there is a way to do it with today()-1, but I cant seem to make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Todd &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 11:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184069#M21995</guid>
      <dc:creator />
      <dc:date>2016-09-14T11:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month</title>
      <link>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184070#M21996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Todd - Try and create a variable to generate a date like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Date(MonthStart(Today()-1),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use it in your where clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * From MyQVD.qvd(qvd)&lt;/P&gt;&lt;P&gt;Where LoadDate &amp;gt;= '$(vMinDate)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 17:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184070#M21996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-14T17:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month</title>
      <link>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184071#M21997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the timely response.&amp;nbsp; This absolutely works for creating the date, however it only seems to respond with the '&amp;gt;' symbol.&amp;nbsp; As I am trying to report on just the one specific month, I am trying to limit it to just that month.&amp;nbsp; However, by using the '=' alone, no records are being pulled.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 17:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184071#M21997</guid>
      <dc:creator />
      <dc:date>2016-09-14T17:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month</title>
      <link>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184072#M21998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh - I see what you're saying. Your best bet is to probably turn that date to a number and do your date math that way. If that doesn't work, you could use the Match fuction to say Where Match(YourDate,'$(vMinDate)');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 19:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184072#M21998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-14T19:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Month</title>
      <link>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184073#M21999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be 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&gt;LET vDate = Num(MonthStart(Today()-1));&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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD *&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;From MyQVD.qvd (qvd)&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 &lt;SPAN style="color: #ff0000;"&gt;MonthStart(&lt;/SPAN&gt;LoadDate&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; = $(vDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 03:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prior-Month/m-p/1184073#M21999</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-15T03:41:37Z</dc:date>
    </item>
  </channel>
</rss>

