<?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: Find Max Date with selected date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1687826#M727570</link>
    <description>&lt;P&gt;Did John's last post get you what you needed?&amp;nbsp; If so, do not forget to come back and properly close out your thread by using the Accept as Solution button on that post of John's that got you the info you needed, as this will give him credit and let other Members know it did work.&lt;/P&gt;&lt;P&gt;Here is a Design Blog on Set Analysis basics that has some additional links at the bottom and after that I am including the base URL for the Design Blog area in case you want to do some further searching, as I am sure some of those posts may help further.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Actually found a couple direct posts that may be most helpful followed by the base URL.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2020 19:44:14 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-03-25T19:44:14Z</dc:date>
    <item>
      <title>Find Max Date with selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1677617#M727566</link>
      <description>&lt;P&gt;Need to find max date&amp;nbsp; from Shipping Date field for respective ID's&amp;nbsp;&amp;lt;='12/01/2019'&lt;/P&gt;&lt;P&gt;ID Shipping Date&lt;BR /&gt;1 4/3/2018 3:19:00 AM&lt;BR /&gt;1 10/22/2018 12:46:00 AM&lt;BR /&gt;1 10/22/2018 12:46:00 AM&lt;BR /&gt;1 2/11/2019 12:37:00 AM&lt;BR /&gt;1 2/11/2019 12:37:00 AM&lt;BR /&gt;1 7/23/2019 12:41:00 AM&lt;BR /&gt;1 7/23/2019 12:42:00 AM&lt;BR /&gt;1 1/7/2020 1:21:00 AM&lt;BR /&gt;1 1/7/2020 1:21:00 AM&lt;BR /&gt;1 2/11/2020 2:58:00 AM&lt;BR /&gt;1 2/11/2020 2:59:00 AM&lt;BR /&gt;2 10/20/2017 5:54:00 AM&lt;BR /&gt;2 1/17/2018 4:12:00 AM&lt;BR /&gt;2 12/7/2019 11:37:00 PM&lt;BR /&gt;3 10/22/2018 12:45:00 AM&lt;BR /&gt;3 10/22/2018 12:46:00 AM&lt;BR /&gt;3 2/11/2019 12:36:00 AM&lt;BR /&gt;3 2/11/2019 12:37:00 AM&lt;BR /&gt;3 6/7/2019 7:37:00 AM&lt;BR /&gt;3 1/7/2020 1:21:00 AM&lt;BR /&gt;3 1/28/2020 4:26:00 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Maxdate.PNG" style="width: 680px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28748i22EC1EBFB9F695ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Maxdate.PNG" alt="Maxdate.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1677617#M727566</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find Max Date with selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1677634#M727567</link>
      <description>&lt;P&gt;Maybe something like this? It creates a key of ID|Shipping Date and then finds the max when grouped by ID and joins it to the initial load.&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load *,&lt;BR /&gt;ID &amp;amp; '|'&amp;amp; [Shipping Date] as Max_Ship_Date_Key;&lt;BR /&gt;load * inline [&lt;BR /&gt;ID, Shipping Date&lt;BR /&gt;1, 4/3/2018 3:19:00 AM&lt;BR /&gt;1, 10/22/2018 12:46:00 AM&lt;BR /&gt;1, 10/22/2018 12:46:00 AM&lt;BR /&gt;1, 2/11/2019 12:37:00 AM&lt;BR /&gt;1, 2/11/2019 12:37:00 AM&lt;BR /&gt;1, 7/23/2019 12:41:00 AM&lt;BR /&gt;1, 7/23/2019 12:42:00 AM&lt;BR /&gt;1, 1/7/2020 1:21:00 AM&lt;BR /&gt;1, 1/7/2020 1:21:00 AM&lt;BR /&gt;1, 2/11/2020 2:58:00 AM&lt;BR /&gt;1, 2/11/2020 2:59:00 AM&lt;BR /&gt;2, 10/20/2017 5:54:00 AM&lt;BR /&gt;2, 1/17/2018 4:12:00 AM&lt;BR /&gt;2, 12/7/2019 11:37:00 PM&lt;BR /&gt;3, 10/22/2018 12:45:00 AM&lt;BR /&gt;3, 10/22/2018 12:46:00 AM&lt;BR /&gt;3, 2/11/2019 12:36:00 AM&lt;BR /&gt;3, 2/11/2019 12:37:00 AM&lt;BR /&gt;3, 6/7/2019 7:37:00 AM&lt;BR /&gt;3, 1/7/2020 1:21:00 AM&lt;BR /&gt;3, 1/28/2020 4:26:00 AM&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;data2:&lt;BR /&gt;Left Join(data)&lt;BR /&gt;load&lt;BR /&gt;ID &amp;amp; '|'&amp;amp; FirstSortedValue([Shipping Date],-[Shipping Date]) as Max_Ship_Date_Key,&lt;BR /&gt;FirstSortedValue([Shipping Date],-[Shipping Date]) as Max_Ship_date&lt;BR /&gt;Resident data&lt;BR /&gt;Where [Shipping Date] &amp;lt;= '12/1/2019'&lt;BR /&gt;Group by ID;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 15:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1677634#M727567</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2020-02-20T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find Max Date with selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1677651#M727568</link>
      <description>&lt;P&gt;Can you help me with Set Analysis instead load statement?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1677651#M727568</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-02-20T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find Max Date with selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1677668#M727569</link>
      <description>&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;Aggr(Max({&amp;lt;[Shipping Date]={"&amp;lt;=$(='12/1/2019')"}&amp;gt;}[Shipping Date]),ID)&lt;/P&gt;&lt;P&gt;Not knowing your data model, I would personally make that date a variable where it can be changed by the user. If you go this route the expression would be&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aggr(Max({&amp;lt;[Shipping Date]={"&amp;lt;=$(=vDate)"}&amp;gt;}[Shipping Date]),ID) where vDate is your user-input variable.&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1677668#M727569</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2020-02-20T16:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find Max Date with selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1687826#M727570</link>
      <description>&lt;P&gt;Did John's last post get you what you needed?&amp;nbsp; If so, do not forget to come back and properly close out your thread by using the Accept as Solution button on that post of John's that got you the info you needed, as this will give him credit and let other Members know it did work.&lt;/P&gt;&lt;P&gt;Here is a Design Blog on Set Analysis basics that has some additional links at the bottom and after that I am including the base URL for the Design Blog area in case you want to do some further searching, as I am sure some of those posts may help further.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Actually found a couple direct posts that may be most helpful followed by the base URL.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 19:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Max-Date-with-selected-date/m-p/1687826#M727570</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-03-25T19:44:14Z</dc:date>
    </item>
  </channel>
</rss>

