<?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: End Of Contract Formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077512#M635498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another (shorter) option would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SetDateYear(StartDate, 2017-Even(Year(StartDate)))&lt;/STRONG&gt; as [End Of Contract2]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2016 22:03:43 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-04T22:03:43Z</dc:date>
    <item>
      <title>End Of Contract Formula</title>
      <link>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077509#M635495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are well,&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;I want to get the &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; text-align: center;"&gt;&lt;STRONG&gt;End Of Contract result &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for each employee as shown in the below table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 411px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="text-align: center;" width="69"&gt;Employee&lt;/TD&gt;&lt;TD class="xl66" style="border-left-style: none; text-align: center;" width="68"&gt;StartDate&lt;/TD&gt;&lt;TD class="xl66" style="border-left-style: none; text-align: center;" width="104"&gt;Contract Period&lt;/TD&gt;&lt;TD class="xl66" style="border-left-style: none; text-align: center;" width="66"&gt;Status&lt;/TD&gt;&lt;TD class="xl66" style="border-left-style: none; text-align: center;" width="104"&gt;&lt;STRONG&gt;End Of Contract&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;John&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2/7/2002&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;Renewed&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2/7/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;Sergio&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1/3/2015&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;Renewed&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1/3/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;Michael&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;10/5/2010&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;Renewed&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;10/5/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;Sara&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1/9/2001&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;Renewed&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1/9/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;Joly&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1/9/1990&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;Renewed&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1/9/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;Boadicea&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;4/17/2014&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;Renewed&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;4/17/2018&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula for end of contract is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=DATE(YEAR(B2) + DATEDIF(B2, DATE(2017, MONTH(B2), DAY(B2)), "Y") + ISEVEN(YEAR(B2)), MONTH(B2), DAY(B2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my issue is that I need to convert this &lt;SPAN style="font-size: 13.3333px;"&gt;formula &lt;/SPAN&gt;to Qlikview logic so I can show this report in QLikview. O&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;r if there is any other &lt;/SPAN&gt;formula can do the same that would be fine.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ibrahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 20:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077509#M635495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-04T20:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: End Of Contract Formula</title>
      <link>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077510#M635496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Employee, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract Period], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MakeDate(2017 + (-1*Even(Year(StartDate))), Month(StartDate), Day(StartDate))) as [End Of Contract]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2061" data-containertype="14" data-objectid="215657" data-objecttype="1" href="https://community.qlik.com/thread/215657"&gt;https://community.qlik.com/thread/215657&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123595_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 20:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077510#M635496</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-04T20:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: End Of Contract Formula</title>
      <link>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077511#M635497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one should also work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(AddYears(StartDate, 2017 - Year(StartDate) + (-1*Even(Year(StartDate))))) as [End Of Contract1]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 20:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077511#M635497</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-04T20:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: End Of Contract Formula</title>
      <link>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077512#M635498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another (shorter) option would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SetDateYear(StartDate, 2017-Even(Year(StartDate)))&lt;/STRONG&gt; as [End Of Contract2]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 22:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077512#M635498</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-04T22:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: End Of Contract Formula</title>
      <link>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077513#M635499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much .. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ibrahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 05:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077513#M635499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-05T05:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: End Of Contract Formula</title>
      <link>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077514#M635500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer.&lt;/P&gt;&lt;P&gt;If not, please make clear what part of this topic you still need help with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not start new questions in the same topic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 14:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/End-Of-Contract-Formula/m-p/1077514#M635500</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-05-05T14:34:34Z</dc:date>
    </item>
  </channel>
</rss>

