<?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: Date variable -1 year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618335#M46070</link>
    <description>&lt;P&gt;Thank you sir, works like a charm! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 14:51:16 GMT</pubDate>
    <dc:creator>Rick_T</dc:creator>
    <dc:date>2019-08-29T14:51:16Z</dc:date>
    <item>
      <title>Date variable -1 year</title>
      <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618261#M46055</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a date variable which stores another date variable -1 year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first date variable is a flexible one which the end users can fill in by them self. Then i want to make another variable which stores the date that the end user fills in -1 year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example: the end user fills in 29-8-2019. The new variable needs to take that date -1 year which will result in 29-8-2018. Does anyone have an idea how I can achieve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rick&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618261#M46055</guid>
      <dc:creator>Rick_T</dc:creator>
      <dc:date>2019-08-29T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable -1 year</title>
      <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618272#M46059</link>
      <description>&lt;P&gt;Try below expression&amp;nbsp;vInput is the variable for input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Date(AddYears(Date#(vInput,'DD-M-YYYY'),-1),'DD-M-YYYY')&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618272#M46059</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-08-29T13:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable -1 year</title>
      <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618281#M46062</link>
      <description>&lt;P&gt;You can call the existing variable and use AddYears.&lt;/P&gt;&lt;P&gt;For example you have a variable vVar1 which takes the input date from the user then you can create a second variable as vVar2 = AddYears(vVar1, -1).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618281#M46062</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2019-08-29T13:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable -1 year</title>
      <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618321#M46067</link>
      <description>&lt;P&gt;Hello, thanks for the reply. I am using the second variable as a filter within a set expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should look something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{$&amp;lt;&lt;BR /&gt;Status -={'Canceled'},&lt;BR /&gt;Aanmaakdatum = {"&amp;lt;=$(vDateInput-1)"}&lt;BR /&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;[Kontr-afspr])&lt;/P&gt;&lt;P&gt;Where the vDateInput-1 is based on the original vDateInput.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618321#M46067</guid>
      <dc:creator>Rick_T</dc:creator>
      <dc:date>2019-08-29T14:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable -1 year</title>
      <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618324#M46068</link>
      <description>&lt;P&gt;Don't understand the calling a existing variable by addyears. I am trying this but it shows the original variable as a field not a variable. See below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18116i93E405F6379DD9F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618324#M46068</guid>
      <dc:creator>Rick_T</dc:creator>
      <dc:date>2019-08-29T14:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable -1 year</title>
      <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618325#M46069</link>
      <description>&lt;P&gt;&lt;SPAN&gt;change this to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aanmaakdatum = {"&amp;lt;=$(&lt;/SPAN&gt;&lt;SPAN&gt;=Date(AddYears(Date#(vInput,'DD-M-YYYY'),-1),'DD-M-YYYY')&lt;/SPAN&gt;&lt;SPAN&gt;)"}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618325#M46069</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-08-29T14:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable -1 year</title>
      <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618335#M46070</link>
      <description>&lt;P&gt;Thank you sir, works like a charm! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618335#M46070</guid>
      <dc:creator>Rick_T</dc:creator>
      <dc:date>2019-08-29T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable -1 year</title>
      <link>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618341#M46071</link>
      <description>&lt;P&gt;No Problem&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-variable-1-year/m-p/1618341#M46071</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-08-29T14:55:42Z</dc:date>
    </item>
  </channel>
</rss>

