<?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 To pick Exactly 12 Months oh Data in Final App in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773903#M274543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,QlikView Gurus stuck with work please help on how to get past 12 months of data into Application,&lt;/P&gt;&lt;P&gt;i Have Accout Period Column i Need to Get past 12 months data fron current date.Please share code modifications&lt;/P&gt;&lt;P&gt;1)&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MakeDate(mid([Acct-Prd],2,4),Right([Acct-Prd],2),'01') as Monthstart,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MakeDate(mid([Acct-Prd],2,4),Right([Acct-Prd],2),&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;IF(Right([Acct-Prd],2)='01','31',&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(Right([Acct-Prd],2)='02','28'))as MothEnd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In above how to write logic for February to get 28 or 29 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;After getting Start date end date while writting Below &lt;/SPAN&gt;condition&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; on QVD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where Monthstart&amp;gt;=Date($(venddate),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;and Monthstart&amp;lt;=Date($(vstartdate),'MM/DD/YYYY');===&amp;gt;not getting values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2014 02:11:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-19T02:11:01Z</dc:date>
    <item>
      <title>To pick Exactly 12 Months oh Data in Final App</title>
      <link>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773903#M274543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,QlikView Gurus stuck with work please help on how to get past 12 months of data into Application,&lt;/P&gt;&lt;P&gt;i Have Accout Period Column i Need to Get past 12 months data fron current date.Please share code modifications&lt;/P&gt;&lt;P&gt;1)&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MakeDate(mid([Acct-Prd],2,4),Right([Acct-Prd],2),'01') as Monthstart,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MakeDate(mid([Acct-Prd],2,4),Right([Acct-Prd],2),&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;IF(Right([Acct-Prd],2)='01','31',&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if(Right([Acct-Prd],2)='02','28'))as MothEnd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In above how to write logic for February to get 28 or 29 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;After getting Start date end date while writting Below &lt;/SPAN&gt;condition&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; on QVD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where Monthstart&amp;gt;=Date($(venddate),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;and Monthstart&amp;lt;=Date($(vstartdate),'MM/DD/YYYY');===&amp;gt;not getting values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 02:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773903#M274543</guid>
      <dc:creator />
      <dc:date>2014-11-19T02:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: To pick Exactly 12 Months oh Data in Final App</title>
      <link>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773904#M274544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any one please help on how to write filter logic on Qvd Load for Qvdgen to get 12 months filter on selection&lt;/P&gt;&lt;P&gt;where Monthstart&amp;gt;=Date($(venddate),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;and Monthstart&amp;lt;=Date($(vstartdate),'MM/DD/YYYY');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 03:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773904#M274544</guid>
      <dc:creator />
      <dc:date>2014-11-19T03:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: To pick Exactly 12 Months oh Data in Final App</title>
      <link>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773905#M274545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your date field Acct-Prd has dates in the following format :&amp;nbsp; 0YYYYMM . I don't know what the 0 signifies but you probably want a WHERE filter like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MonthStart(date(date#(&amp;nbsp; right( [Acct-Prd],6), 'YYYYMM')))&amp;nbsp; &amp;gt;=MonthStart( addmonths( Today(),-12)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MonthEnd(date(date#(&amp;nbsp; right( [Acct-Prd],6), 'YYYYMM'))) &amp;lt;=&amp;nbsp; MonthEnd( Today())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This will check for Acct-Prds whose month is &amp;gt;= than the month that is 12 months before todays date and &amp;lt;= today's &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 03:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773905#M274545</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-11-19T03:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: To pick Exactly 12 Months oh Data in Final App</title>
      <link>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773906#M274546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually can any one please do needful,written Logic as below on Qvd_Gen but not giving any data,if so please suggest correct Approach&lt;/P&gt;&lt;P&gt;where Monthstart&amp;gt;=Date($(venddate),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;and Monthend&amp;lt;=Date($(vstartdate),'MM/DD/YYYY');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 03:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773906#M274546</guid>
      <dc:creator />
      <dc:date>2014-11-19T03:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: To pick Exactly 12 Months oh Data in Final App</title>
      <link>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773907#M274547</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 this script, I think the issue is with the dateformat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where Monthstart&amp;gt;=Date('$(venddate)')&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and Monthend&amp;lt;=Date('$(vstartdate)');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Did you checked the values of variables, is dates are assigned to this variables?&amp;nbsp; If variables are assigned then check the format of variables and Monthstart and Monthend are same.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 05:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773907#M274547</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-19T05:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: To pick Exactly 12 Months oh Data in Final App</title>
      <link>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773908#M274548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry for Deley Response i didnt resolve Issue Completely .I will start new discussion&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 09:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pick-Exactly-12-Months-oh-Data-in-Final-App/m-p/773908#M274548</guid>
      <dc:creator />
      <dc:date>2014-11-24T09:05:19Z</dc:date>
    </item>
  </channel>
</rss>

