<?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: Max Start Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261398#M397829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny T.&amp;nbsp; Worked perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 13:06:49 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2017-01-17T13:06:49Z</dc:date>
    <item>
      <title>Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261392#M397823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning everyone,&lt;/P&gt;&lt;P&gt;Simple question for you all.&amp;nbsp; I need to get the max start date from this sample group of employees.&amp;nbsp; What is the easy way to do it?&amp;nbsp; I have already converted the start date to a numeric field.&amp;nbsp; I only want to see the numeric start date equal to 42734.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149730_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261392#M397823</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-01-17T12:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261393#M397824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be just this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Max([Start Date]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261393#M397824</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261394#M397825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where would you use this?&amp;nbsp; To only get one record don't you have to do a group by?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Temp:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[End Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Start Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NumStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Employee Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Reason f.Action_MASSG]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Action Type_MASSN]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Action Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employment_STAT2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Week Ending]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LinkKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Reason f.Action_MASSG]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Action Type_MASSN]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Term Event]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;D&gt; (&lt;/D&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employment_STAT2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '0' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employment_STAT2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '1' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employment_STAT2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '2' &lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261394#M397825</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-01-17T12:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261395#M397826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, may be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD [End Date], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Start Date],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;num(Date(Floor([Start Date]))) as NumStartDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Employee Number], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Reason f.Action_MASSG], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Action Type_MASSN] as [Action Type], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Employment_STAT2, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Week Ending], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LinkKey,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Reason f.Action_MASSG] &amp;amp; [Action Type_MASSN] as [Term Event]&amp;nbsp; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;D&gt; (qvd)&lt;/D&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Where Employment_STAT2 = '0' or Employment_STAT2 = '1' or Employment_STAT2 = '2' ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Right Join (Temp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;LOAD [Employee Number],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max([Start Date]) as [Start Date]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Resident Temp&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Group By [Employee Number];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261395#M397826</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261396#M397827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trust you are doing good!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Sunny. However, you can refer below script to solve your concern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14846580858349649" jivemacro_uid="_14846580858349649"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;EmployeeNo, StartDate&lt;/P&gt;
&lt;P&gt;0111, 40250&lt;/P&gt;
&lt;P&gt;0111, 40251&lt;/P&gt;
&lt;P&gt;0111, 40260&lt;/P&gt;
&lt;P&gt;0111, 40150&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;INNER JOIN &lt;/P&gt;
&lt;P&gt;LOAD EmployeeNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(StartDate) AS NumStartDate&lt;/P&gt;
&lt;P&gt;Resident Data&lt;/P&gt;
&lt;P&gt;GROUP BY EmployeeNo;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 13:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261396#M397827</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-01-17T13:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261397#M397828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not going to work because you renamed startdate to numstartdate. The inner join will occur only on EmployeeNo keeping all the 4 rows intact&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 13:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261397#M397828</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T13:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261398#M397829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny T.&amp;nbsp; Worked perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 13:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261398#M397829</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-01-17T13:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261399#M397830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My sincere apologies. I misunderstood the requirement. You are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261399#M397830</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-01-17T16:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Max Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261400#M397831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have apologize brother. I was just pointing out that in order for your solution to work, you would just need to keep the name of the field you are joining on the same as it is in the above table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-sql" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;EmployeeNo, StartDate&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;0111, 40250&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;0111, 40251&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;0111, 40260&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;0111, 40150&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;INNER JOIN&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;LOAD EmployeeNo,&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(StartDate) AS &lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;StartDate&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Resident Data&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;GROUP BY EmployeeNo;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is all you needed &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Start-Date/m-p/1261400#M397831</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T16:17:49Z</dc:date>
    </item>
  </channel>
</rss>

