<?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 Calculate the Min of excluded dates in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Calculate-the-Min-of-excluded-dates/m-p/80159#M1368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been a Qlik Sense user for about 2 years for now. But I'm facing an issue I can't easily solve ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database with historical data, flagged by an extract date.&lt;/P&gt;&lt;P&gt;After applying some filters, I can find the max possible extract date.&lt;/P&gt;&lt;P&gt;What I want now is to find data related to the date directly after this max possible extract date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With an image :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" height="280" src="https://community.qlik.com/legacyfs/online/198952_Capture.JPG" style="height: 279.877px; width: 184px;" width="184" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Note that "extract date+1" is not possible as I do not have data every single day (such as weekends) and because of active selection !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried mixing min-max and ALL-TOTAL, with no success:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Min(ALL Aggr(Only(If(Extract_date &amp;gt; Max(TOTAL Extract_date),&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Extract_date)),&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Extract_date))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the solution is using set analysis ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2018 15:33:15 GMT</pubDate>
    <dc:creator>adrien_marchadi</dc:creator>
    <dc:date>2018-04-09T15:33:15Z</dc:date>
    <item>
      <title>Calculate the Min of excluded dates</title>
      <link>https://community.qlik.com/t5/Management-Governance/Calculate-the-Min-of-excluded-dates/m-p/80159#M1368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been a Qlik Sense user for about 2 years for now. But I'm facing an issue I can't easily solve ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database with historical data, flagged by an extract date.&lt;/P&gt;&lt;P&gt;After applying some filters, I can find the max possible extract date.&lt;/P&gt;&lt;P&gt;What I want now is to find data related to the date directly after this max possible extract date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With an image :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" height="280" src="https://community.qlik.com/legacyfs/online/198952_Capture.JPG" style="height: 279.877px; width: 184px;" width="184" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Note that "extract date+1" is not possible as I do not have data every single day (such as weekends) and because of active selection !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried mixing min-max and ALL-TOTAL, with no success:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Min(ALL Aggr(Only(If(Extract_date &amp;gt; Max(TOTAL Extract_date),&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Extract_date)),&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Extract_date))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the solution is using set analysis ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Calculate-the-Min-of-excluded-dates/m-p/80159#M1368</guid>
      <dc:creator>adrien_marchadi</dc:creator>
      <dc:date>2018-04-09T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the Min of excluded dates</title>
      <link>https://community.qlik.com/t5/Management-Governance/Calculate-the-Min-of-excluded-dates/m-p/80160#M1369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it work to set your max date as a variable and then use this as a reference in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maxDate = Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Extract_date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Min({1&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Extract_date = {"&amp;gt;=$(=maxDate)"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Extract_date)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 02:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Calculate-the-Min-of-excluded-dates/m-p/80160#M1369</guid>
      <dc:creator>rachel_delany</dc:creator>
      <dc:date>2018-04-10T02:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the Min of excluded dates</title>
      <link>https://community.qlik.com/t5/Management-Governance/Calculate-the-Min-of-excluded-dates/m-p/80161#M1370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rachel for this answer !&lt;/P&gt;&lt;P&gt;With slight modifications, it did the trick !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 15:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Calculate-the-Min-of-excluded-dates/m-p/80161#M1370</guid>
      <dc:creator>adrien_marchadi</dc:creator>
      <dc:date>2018-04-12T15:11:29Z</dc:date>
    </item>
  </channel>
</rss>

