<?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: Min Date based off another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816713#M1213065</link>
    <description>&lt;P&gt;Not sure my initial approach is the right way to go.&amp;nbsp; The following seemed to handle the scenarios with more than one updated date.&amp;nbsp; Was trying to avoid an if statement, but sometimes it is unavoidable:&lt;/P&gt;&lt;P&gt;Min({&amp;lt;NextStatusCode={545}&amp;gt;} if(Updated_Date&amp;gt;=Max540Date,Updated_Date) )&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 18:36:08 GMT</pubDate>
    <dc:creator>GaryGiles</dc:creator>
    <dc:date>2021-06-21T18:36:08Z</dc:date>
    <item>
      <title>Min Date based off another</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816283#M1213037</link>
      <description>&lt;P&gt;I'm looking at order statuses and the dates the orders were updated to those statuses.&amp;nbsp; The statuses are 540 and 545.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables, one with the max date an order hit a 540 status, the second with all the days an order was at 545 status.&amp;nbsp; What I'm trying to calculate is the 545 date that immediately follows the max545 status date.&amp;nbsp; like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ordernumber&lt;/TD&gt;&lt;TD&gt;Max540_Date&lt;/TD&gt;&lt;TD&gt;Min545Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1/1/2020&lt;/TD&gt;&lt;TD&gt;1/1/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2/1/2020&lt;/TD&gt;&lt;TD&gt;2/2/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3/1/2020&lt;/TD&gt;&lt;TD&gt;3/3/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4/1/2020&lt;/TD&gt;&lt;TD&gt;4/4/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;5/1/2020&lt;/TD&gt;&lt;TD&gt;5/5/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do this in a straight table&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the formula that I'm using&amp;nbsp; to calculate the 3rd column but it just gives me "-".&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Min({&amp;lt;Status={'545'},Update_Date={"&amp;gt;=Max540Date"}&amp;gt;}Update_Date)" and it wont work!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 14:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816283#M1213037</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2021-06-19T14:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date based off another</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816369#M1213042</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;=Min({&amp;lt;Status={'545'},Update_Date={"=Update_Date&amp;gt;=Max540Date"}&amp;gt;}Update_Date)&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 12:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816369#M1213042</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-06-20T12:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date based off another</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816416#M1213046</link>
      <description>&lt;P&gt;Doesn't work when all the data was loaded, it only worked on about 150 lines instead of 480K lines I was expecting.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 23:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816416#M1213046</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2021-06-20T23:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date based off another</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816521#M1213057</link>
      <description>&lt;P&gt;We need to use the ordernumber as the field in the set analysis instead of Updated_Date.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Min({&amp;lt;NextStatusCode={545},ordernumber={"=Updated_Date&amp;gt;=Max540Date"}&amp;gt;} Updated_Date)&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 11:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816521#M1213057</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-06-21T11:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date based off another</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816663#M1213063</link>
      <description>&lt;P&gt;Its calculating now and its really close, however if there is more than one updated date at 545 status its not returning a value.&amp;nbsp;&amp;nbsp;&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="nburton78_0-1624293989195.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57191i1E1DAE0FE6EFBD2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nburton78_0-1624293989195.png" alt="nburton78_0-1624293989195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 16:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816663#M1213063</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2021-06-21T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date based off another</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816713#M1213065</link>
      <description>&lt;P&gt;Not sure my initial approach is the right way to go.&amp;nbsp; The following seemed to handle the scenarios with more than one updated date.&amp;nbsp; Was trying to avoid an if statement, but sometimes it is unavoidable:&lt;/P&gt;&lt;P&gt;Min({&amp;lt;NextStatusCode={545}&amp;gt;} if(Updated_Date&amp;gt;=Max540Date,Updated_Date) )&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816713#M1213065</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-06-21T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date based off another</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816751#M1213069</link>
      <description>&lt;P&gt;That worked perfectly! Thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 19:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date-based-off-another/m-p/1816751#M1213069</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2021-06-21T19:47:05Z</dc:date>
    </item>
  </channel>
</rss>

