<?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: Can I select one year from two different date fields? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473781#M1131602</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;The best way to do this is to use one of the year fields in the list box, and link the other year using a set expression. Assuming you use [Hire Date] in the list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hire Count = Count(EmployeeID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Termination Count = Count({&amp;lt;[Termination Date] = P([Hire Date])&amp;gt;} EmployeeID&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use a Date island (another date field not connected to the rest of the model):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hire Count = Count({&amp;lt;Hire Date] = P([Island Date])&amp;gt;} EmployeeID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Termination Count = Count({&amp;lt;[Termination Date] = P([Island Date])&amp;gt;} EmployeeID&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 06:17:43 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2013-11-22T06:17:43Z</dc:date>
    <item>
      <title>Can I select one year from two different date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473777#M1131598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is that I have two dates. I have a Hire Date and a Termination Date. I want to be able to select one year and pull up the Hire count and Termination count. Is there a way to combine the two to be able to select one year? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 17:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473777#M1131598</guid>
      <dc:creator>akile002</dc:creator>
      <dc:date>2013-11-21T17:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can I select one year from two different date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473778#M1131599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use on select trigger from on one of the fields to select the other. You find it in Document Settings Actions. Better is to connect them in data model if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach a small example qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 17:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473778#M1131599</guid>
      <dc:creator>jonasheisterkam</dc:creator>
      <dc:date>2013-11-21T17:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I select one year from two different date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473779#M1131600</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;You can create a master calendar and use tat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 18:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473779#M1131600</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-11-21T18:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I select one year from two different date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473780#M1131601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;You can create a Master Calendar having all the dates and then join it with the Hire Date and Termination Date in the script.&lt;/P&gt;&lt;P&gt;And then use the date from the Master Calendar..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Tips to create a Master Calendar refer the link by @Josh Good:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/48693"&gt;http://community.qlik.com/thread/48693&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 06:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473780#M1131601</guid>
      <dc:creator />
      <dc:date>2013-11-22T06:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I select one year from two different date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473781#M1131602</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;The best way to do this is to use one of the year fields in the list box, and link the other year using a set expression. Assuming you use [Hire Date] in the list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hire Count = Count(EmployeeID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Termination Count = Count({&amp;lt;[Termination Date] = P([Hire Date])&amp;gt;} EmployeeID&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use a Date island (another date field not connected to the rest of the model):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hire Count = Count({&amp;lt;Hire Date] = P([Island Date])&amp;gt;} EmployeeID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Termination Count = Count({&amp;lt;[Termination Date] = P([Island Date])&amp;gt;} EmployeeID&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 06:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-select-one-year-from-two-different-date-fields/m-p/473781#M1131602</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-11-22T06:17:43Z</dc:date>
    </item>
  </channel>
</rss>

