<?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: How to get date 10 years older to the current date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-get-date-10-years-older-to-the-current-date/m-p/1063843#M17205</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;Use Addyears function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addyears(Date,-10)&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>Thu, 18 Feb 2016 17:40:46 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2016-02-18T17:40:46Z</dc:date>
    <item>
      <title>How to get date 10 years older to the current date</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-date-10-years-older-to-the-current-date/m-p/1063842#M17204</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;Struggling with an issue which i thought would be rather simple.&lt;/P&gt;&lt;P&gt;I would need to do an bring up some data from SQL based on dates and the difference btwn them should be exactly 10 years.&lt;/P&gt;&lt;P&gt;Ex: If any user opens the app today they should be able to see date ranging from 2/18/2006 to 2/18/2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 12:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-date-10-years-older-to-the-current-date/m-p/1063842#M17204</guid>
      <dc:creator />
      <dc:date>2016-02-18T12:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date 10 years older to the current date</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-date-10-years-older-to-the-current-date/m-p/1063843#M17205</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;Use Addyears function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addyears(Date,-10)&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>Thu, 18 Feb 2016 17:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-date-10-years-older-to-the-current-date/m-p/1063843#M17205</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-02-18T17:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date 10 years older to the current date</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-date-10-years-older-to-the-current-date/m-p/1063844#M17206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be set a variable like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MaxDate:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(AddYears(Max(Date), 10), 'DD-MMM-YYYY') &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;as MaxDate,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Max(Date), 'DD-MMM-YYYY') as MinDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;Resident YourFactTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMaxDate = Peek('MaxDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMinDate = Peel('MinDate');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table MaxDate;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where DateField &amp;gt;= $(vMinDate) and DateField &amp;lt;= $(vMaxDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 18:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-date-10-years-older-to-the-current-date/m-p/1063844#M17206</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-18T18:27:58Z</dc:date>
    </item>
  </channel>
</rss>

