<?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: Getting Max Date before Today() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1964912#M79537</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156197"&gt;@calvintang&lt;/a&gt;&amp;nbsp; Please see the script below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp:&lt;BR /&gt;load Date(Date#([Issue Date],'YYYY-MM-DD'),'MM/DD/YYYY') as [Issue Date],&lt;BR /&gt;[Issue ID],&lt;BR /&gt;[Issue Type]&lt;/P&gt;
&lt;P&gt;Inline [&lt;BR /&gt;Issue Date | Issue ID | Issue Type&lt;/P&gt;
&lt;P&gt;2022-02-26 | 1 | Organizational&lt;/P&gt;
&lt;P&gt;2022-02-27 | 2 | Technical&lt;/P&gt;
&lt;P&gt;2022-05-20 | 3 | Systems&lt;/P&gt;
&lt;P&gt;2022-09-20 | 4 | Switchover] (delimiter is '|');&lt;/P&gt;
&lt;P&gt;Inner Join (Temp)&lt;BR /&gt;Temp1:&lt;BR /&gt;Load Date(Max([Issue Date]),'MM/DD/YYYY') as [Issue Date];&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;[Issue Date], &lt;BR /&gt;[Issue ID],&lt;BR /&gt;[Issue Type]&lt;BR /&gt;Resident Temp&lt;BR /&gt;where [Issue Date]&amp;lt;Today();&lt;/P&gt;
&lt;P&gt;//Drop table Temp;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;If this resolves the issue, please like and accept it as a solution.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 04:30:36 GMT</pubDate>
    <dc:creator>sidhiq91</dc:creator>
    <dc:date>2022-08-05T04:30:36Z</dc:date>
    <item>
      <title>Getting Max Date before Today()</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1964896#M79536</link>
      <description>&lt;P&gt;Data frame:&lt;/P&gt;
&lt;P&gt;Issue Date | Issue ID | Issue Type&lt;/P&gt;
&lt;P&gt;2022-02-26 | 1 | Organizational&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2022-02-27 | 2 | Technical&lt;/P&gt;
&lt;P&gt;2022-05-20 | 3 | Systems&lt;/P&gt;
&lt;P&gt;2022-09-20 | 4 | Switchover&lt;/P&gt;
&lt;P&gt;Ideally, I'd like to get the latest date before today(). In the scenario above, that would be 2022-05-20, instead of 2022-09-20.&lt;/P&gt;
&lt;P&gt;May I know what is the syntax to achieve this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 02:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1964896#M79536</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-08-05T02:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Max Date before Today()</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1964912#M79537</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156197"&gt;@calvintang&lt;/a&gt;&amp;nbsp; Please see the script below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp:&lt;BR /&gt;load Date(Date#([Issue Date],'YYYY-MM-DD'),'MM/DD/YYYY') as [Issue Date],&lt;BR /&gt;[Issue ID],&lt;BR /&gt;[Issue Type]&lt;/P&gt;
&lt;P&gt;Inline [&lt;BR /&gt;Issue Date | Issue ID | Issue Type&lt;/P&gt;
&lt;P&gt;2022-02-26 | 1 | Organizational&lt;/P&gt;
&lt;P&gt;2022-02-27 | 2 | Technical&lt;/P&gt;
&lt;P&gt;2022-05-20 | 3 | Systems&lt;/P&gt;
&lt;P&gt;2022-09-20 | 4 | Switchover] (delimiter is '|');&lt;/P&gt;
&lt;P&gt;Inner Join (Temp)&lt;BR /&gt;Temp1:&lt;BR /&gt;Load Date(Max([Issue Date]),'MM/DD/YYYY') as [Issue Date];&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;[Issue Date], &lt;BR /&gt;[Issue ID],&lt;BR /&gt;[Issue Type]&lt;BR /&gt;Resident Temp&lt;BR /&gt;where [Issue Date]&amp;lt;Today();&lt;/P&gt;
&lt;P&gt;//Drop table Temp;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;If this resolves the issue, please like and accept it as a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 04:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1964912#M79537</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-08-05T04:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Max Date before Today()</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1964954#M79539</link>
      <description>&lt;P&gt;I am sorry, but I am unable to reload the data in that fashion - is there a different way using measure? Set analysis perhaps?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 06:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1964954#M79539</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-08-05T06:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Max Date before Today()</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1965062#M79545</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156197"&gt;@calvintang&lt;/a&gt;&amp;nbsp; Please use the below expression to get the desired output.&lt;/P&gt;
&lt;P&gt;Max({&amp;lt;[Issue Date]={"&amp;lt;=$(=Date(today(),'MM/DD/YYYY'))"}&amp;gt;}[Issue Date])&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sidhiq91_0-1659689363250.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86041iF711D95E73A0C6F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sidhiq91_0-1659689363250.png" alt="sidhiq91_0-1659689363250.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 08:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1965062#M79545</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-08-05T08:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Max Date before Today()</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1965602#M79582</link>
      <description>&lt;P&gt;Thank you! This worked!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 00:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-Max-Date-before-Today/m-p/1965602#M79582</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-08-08T00:28:39Z</dc:date>
    </item>
  </channel>
</rss>

