<?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: Cannot get data for previous month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507483#M1147164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this work as your where clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where MonthName(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CONCLUSION_DATE_TIME&lt;/SPAN&gt;)=MonthName(addmonths(Today(),-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 13:41:42 GMT</pubDate>
    <dc:creator>abeyphilip</dc:creator>
    <dc:date>2013-08-20T13:41:42Z</dc:date>
    <item>
      <title>Cannot get data for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507482#M1147163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data set is looking at data from 01/04/2013&amp;nbsp; to the End of last month (Which at the the moment is: 31/07/2013)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in the where clause I want to be able to get just the latest month's data I.e. July 2013 data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cna someone kindly help me write the where clause where I always get the dataset for the entrity of last month.&amp;nbsp; This will need to be dynamic, so I can place it on the scheduler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; 'EYE_ED_TOTAL_MONTH' &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;data_source&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RunMonthEye&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quarter_NumberEye&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Current_Quarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Current_Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Current_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Main_WeekEye&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ATTENDANCE_CATEGORY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CONCLUSION_DATE_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Eye_Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;C:\QLIKVIEW\DEVELOPMENT\HP\QVD\EYE_ED_MonthEnd.qvd&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WHERE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CONCLUSION_DATE_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;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;MonthStart&lt;/SPAN&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;())-1, 'DD/MM/YYY')&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CONCLUSION_DATE_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&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;MonthEnd&lt;/SPAN&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;())-1, 'DD/MM/YYY')&lt;BR /&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCULSION DATE TIME comes out as a Date&lt;/P&gt;&lt;P&gt;RunMonthEye is a number&lt;/P&gt;&lt;P&gt;Current_Month is a number with July being a 4&lt;/P&gt;&lt;P&gt;Current_Quarter is a number with July being a 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide any assistance please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507482#M1147163</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2013-08-20T12:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get data for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507483#M1147164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this work as your where clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where MonthName(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CONCLUSION_DATE_TIME&lt;/SPAN&gt;)=MonthName(addmonths(Today(),-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 13:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507483#M1147164</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-08-20T13:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get data for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507484#M1147165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amazing!&amp;nbsp;&amp;nbsp; Thank you, yes this works for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 13:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507484#M1147165</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2013-08-20T13:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get data for previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507485#M1147166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(MonthStart(Today(),-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 13:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-data-for-previous-month/m-p/507485#M1147166</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2013-08-20T13:55:02Z</dc:date>
    </item>
  </channel>
</rss>

