<?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: Using Max with Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118951#M756747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.&amp;nbsp; I changed the field names to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;[GPatent Expiry Date]&lt;SPAN style="color: #000000;"&gt;&amp;gt; &lt;/SPAN&gt;ExclusivityDate&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;[GPatent Expiry Date]&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;ExclusivityDate&lt;SPAN style="color: #000000;"&gt;)), &lt;/SPAN&gt;[GPatent Expiry Date]&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;and I get the following results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;IMG alt="GenericDrugEntryDateTable5.JPG" class="jive-image image-1" height="287" src="https://community.qlik.com/legacyfs/online/213337_GenericDrugEntryDateTable5.JPG" style="height: 287px; width: 797.9372197309417px;" width="798" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;For the product circled in red ACALABRUTINIB, it has more than 1 Generic Drug Product Entry Dates, however, this should be a single date which is the maximum of the Patent Expiry Date and Should be 01/07/2036 since the Maximum Exclusivity date is less than the Maximum Patent Expiry Date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Chris&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2018 03:49:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-12T03:49:39Z</dc:date>
    <item>
      <title>Using Max with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118948#M756744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;IMG alt="GenericDrugEntryDateTable4.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213336_GenericDrugEntryDateTable4.JPG" style="height: 228px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to have a calculated dimension "Generic Product Entry Date" calculated as a maximum of a range of dates as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;[GPatent Expiry Date]&lt;SPAN style="color: #000000;"&gt; &amp;gt; &lt;/SPAN&gt;ExclusivityDate&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;[GPatent Expiry Date]&lt;SPAN style="color: #000000;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;ExclusivityDate&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I get errors as in the above table.&amp;nbsp; How do i accomplish this with set analysis or whatever is appropriate?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118948#M756744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Max with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118949#M756745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is this not an expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 03:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118949#M756745</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2018-09-12T03:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Max with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118950#M756746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌mMay be use aggr(max()) like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Max(if(Date1&amp;gt; Date2, Date1,Date2)), Date1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the fieldnames with your your original names. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 03:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118950#M756746</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-12T03:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Max with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118951#M756747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.&amp;nbsp; I changed the field names to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;[GPatent Expiry Date]&lt;SPAN style="color: #000000;"&gt;&amp;gt; &lt;/SPAN&gt;ExclusivityDate&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;[GPatent Expiry Date]&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;ExclusivityDate&lt;SPAN style="color: #000000;"&gt;)), &lt;/SPAN&gt;[GPatent Expiry Date]&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;and I get the following results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;IMG alt="GenericDrugEntryDateTable5.JPG" class="jive-image image-1" height="287" src="https://community.qlik.com/legacyfs/online/213337_GenericDrugEntryDateTable5.JPG" style="height: 287px; width: 797.9372197309417px;" width="798" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;For the product circled in red ACALABRUTINIB, it has more than 1 Generic Drug Product Entry Dates, however, this should be a single date which is the maximum of the Patent Expiry Date and Should be 01/07/2036 since the Maximum Exclusivity date is less than the Maximum Patent Expiry Date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Chris&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 03:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118951#M756747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T03:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Max with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118952#M756748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your reply.&amp;nbsp; However i do not understand your question in the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 03:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118952#M756748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T03:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using Max with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118953#M756749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;The correct Expression is as follows, Date1 at the end of the expression should be Date2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;[GPatent Expiry Date]&lt;SPAN style="color: #000000;"&gt;&amp;gt; &lt;/SPAN&gt;ExclusivityDate&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;[GPatent Expiry Date]&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;ExclusivityDate&lt;SPAN style="color: #000000;"&gt;)), &lt;/SPAN&gt;ExclusivityDate&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Chris&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 03:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Max-with-Dates/m-p/118953#M756749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T03:59:01Z</dc:date>
    </item>
  </channel>
</rss>

