<?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 Need to get date dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459529#M171529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Member i have the following code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLSCURRENT_MONTH_DB1:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT c.cashier_code,SUBSTR(c.BOOKINGNO,0,2) PUBLISHER,c.rcptno,c.rcptdt RECEIPTDATE, ag.name, m.TYPE, c.rate_type RATETYPE, m.cat_name CATEGORY,SUM(a.amount) AMOUNT,c.paymode PAYMODE, c.check_no &lt;/P&gt;&lt;P&gt;FROM MAIN_CATEGORY m, classified_booking c, agency_Detail_confirm a, AD_AGMAST ag &lt;/P&gt;&lt;P&gt;WHERE c.bookingno=a.bookingno AND c.rcptno=a.rcptno AND c.rcptdt=a.rcptdt AND SUBSTR(c.BOOKINGNO,0,2)='DB' &lt;/P&gt;&lt;P&gt;AND c.rcptdt BETWEEN '20-Feb-2013' AND '31-Mar-2013' AND c.citycode='JAIP' AND m.category_id=c.category_id AND c.agcode=ag.agcode&lt;/P&gt;&lt;P&gt;GROUP BY m.TYPE,m.cat_name,c.category_id,c.rate_type,c.paymode,SUBSTR(c.BOOKINGNO,0,2),c.rcptdt,ag.name,c.rcptno,c.check_no,c.cashier_code&lt;/P&gt;&lt;P&gt;ORDER BY c.rcptdt,SUBSTR(c.BOOKINGNO,0,2),c.rate_type,m.TYPE,c.paymode,m.cat_name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;call StoreAndDrop 'D:\Qlikview\LIVEQVD\CLASSIFIED\', 'CLSCURRENT_MONTH_DB1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is there we have given statically date in between "'20-Feb-2013' AND '31-Mar-2013" .I want it be done automatically like i should not give dates. I need data for every month and dates should be changed for every month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using version 8.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RBK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2013 09:36:37 GMT</pubDate>
    <dc:creator>bharatkishore</dc:creator>
    <dc:date>2013-03-20T09:36:37Z</dc:date>
    <item>
      <title>Need to get date dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459529#M171529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Member i have the following code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLSCURRENT_MONTH_DB1:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT c.cashier_code,SUBSTR(c.BOOKINGNO,0,2) PUBLISHER,c.rcptno,c.rcptdt RECEIPTDATE, ag.name, m.TYPE, c.rate_type RATETYPE, m.cat_name CATEGORY,SUM(a.amount) AMOUNT,c.paymode PAYMODE, c.check_no &lt;/P&gt;&lt;P&gt;FROM MAIN_CATEGORY m, classified_booking c, agency_Detail_confirm a, AD_AGMAST ag &lt;/P&gt;&lt;P&gt;WHERE c.bookingno=a.bookingno AND c.rcptno=a.rcptno AND c.rcptdt=a.rcptdt AND SUBSTR(c.BOOKINGNO,0,2)='DB' &lt;/P&gt;&lt;P&gt;AND c.rcptdt BETWEEN '20-Feb-2013' AND '31-Mar-2013' AND c.citycode='JAIP' AND m.category_id=c.category_id AND c.agcode=ag.agcode&lt;/P&gt;&lt;P&gt;GROUP BY m.TYPE,m.cat_name,c.category_id,c.rate_type,c.paymode,SUBSTR(c.BOOKINGNO,0,2),c.rcptdt,ag.name,c.rcptno,c.check_no,c.cashier_code&lt;/P&gt;&lt;P&gt;ORDER BY c.rcptdt,SUBSTR(c.BOOKINGNO,0,2),c.rate_type,m.TYPE,c.paymode,m.cat_name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;call StoreAndDrop 'D:\Qlikview\LIVEQVD\CLASSIFIED\', 'CLSCURRENT_MONTH_DB1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is there we have given statically date in between "'20-Feb-2013' AND '31-Mar-2013" .I want it be done automatically like i should not give dates. I need data for every month and dates should be changed for every month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using version 8.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RBK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 09:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459529#M171529</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2013-03-20T09:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get date dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459530#M171530</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Best option is to remove that condition from the Sql Query, and include the same field in select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And in QlikView create a Month, Year and date out of it and use in front end as a listbox(Filter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 09:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459530#M171530</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-20T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get date dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459531#M171531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please say to me more clearly...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 09:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459531#M171531</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2013-03-20T09:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get date dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459532#M171532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;Please find this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;LET vLastMonth = Date(AddMonths(Today(),-1),'DD-MMM-YYYY');&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;LET vThisMonth =Date(MonthEnd(Today()),'DD-MMM-YYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;CLSCURRENT_MONTH_DB1:&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;LOAD *;&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;SQL SELECT c.cashier_code,&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;SUBSTR(c.BOOKINGNO,0,2) PUBLISHER,&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;c.rcptno,&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;c.rcptdt RECEIPTDATE,&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;ag.name, m.TYPE, c.rate_type RATETYPE, m.cat_name CATEGORY,SUM(a.amount) AMOUNT,c.paymode PAYMODE, c.check_no&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;FROM MAIN_CATEGORY m, classified_booking c, agency_Detail_confirm a, AD_AGMAST ag&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;WHERE c.bookingno=a.bookingno AND c.rcptno=a.rcptno AND c.rcptdt=a.rcptdt AND SUBSTR(c.BOOKINGNO,0,2)='DB'&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;AND c.rcptdt BETWEEN '$(vLastMonth)' AND '$(vThisMonth)' AND c.citycode='JAIP' AND m.category_id=c.category_id AND c.agcode=ag.agcode&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;GROUP BY m.TYPE,m.cat_name,c.category_id,c.rate_type,c.paymode,SUBSTR(c.BOOKINGNO,0,2),c.rcptdt,ag.name,c.rcptno,c.check_no,c.cashier_code&lt;/P&gt;&lt;P style="color: #737373; font-family: Arial;"&gt;ORDER BY c.rcptdt,SUBSTR(c.BOOKINGNO,0,2),c.rate_type,m.TYPE,c.paymode,m.cat_name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-date-dynamically/m-p/459532#M171532</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2013-03-22T14:07:45Z</dc:date>
    </item>
  </channel>
</rss>

