<?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 how to get max date between 2 dates variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1767631#M718973</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;i have a measure a bar chart in which i measure number of equipment per category and user and last occurrence of model&lt;/P&gt;&lt;P&gt;bar chart worked and the measure&amp;nbsp; very well , here's the measure&lt;/P&gt;&lt;P&gt;measure = Sum(Aggr(If([Date] = Max(TOTAL &amp;lt;[Category], User&amp;gt; Date), Count(Model)), [Date], Category, User))&lt;/P&gt;&lt;P&gt;Now my [Date ] vary depending on the selected period&amp;nbsp; , it should be [Date]=&amp;lt; vdatefinformat and&lt;/P&gt;&lt;P&gt;[Date] &amp;gt;=vdatedebformat&lt;/P&gt;&lt;P&gt;how can i merge this condition into my measure , so that i get the right result&lt;/P&gt;&lt;P&gt;Please can anyone help me ?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 13:00:23 GMT</pubDate>
    <dc:creator>Shinigaloo</dc:creator>
    <dc:date>2020-12-10T13:00:23Z</dc:date>
    <item>
      <title>how to get max date between 2 dates variables</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1767631#M718973</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;i have a measure a bar chart in which i measure number of equipment per category and user and last occurrence of model&lt;/P&gt;&lt;P&gt;bar chart worked and the measure&amp;nbsp; very well , here's the measure&lt;/P&gt;&lt;P&gt;measure = Sum(Aggr(If([Date] = Max(TOTAL &amp;lt;[Category], User&amp;gt; Date), Count(Model)), [Date], Category, User))&lt;/P&gt;&lt;P&gt;Now my [Date ] vary depending on the selected period&amp;nbsp; , it should be [Date]=&amp;lt; vdatefinformat and&lt;/P&gt;&lt;P&gt;[Date] &amp;gt;=vdatedebformat&lt;/P&gt;&lt;P&gt;how can i merge this condition into my measure , so that i get the right result&lt;/P&gt;&lt;P&gt;Please can anyone help me ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 13:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1767631#M718973</guid>
      <dc:creator>Shinigaloo</dc:creator>
      <dc:date>2020-12-10T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to get max date between 2 dates variables</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1767686#M718974</link>
      <description>&lt;P&gt;assuming the dates are in the correct format just add to your set analysis:&lt;BR /&gt;&lt;BR /&gt;Date={"&amp;gt;=$(&lt;SPAN&gt;vdatedebformat&lt;/SPAN&gt;)&amp;lt;=$(&lt;SPAN&gt;vdatefinformat&amp;nbsp;&lt;/SPAN&gt;)"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would say in all your calculations :&lt;BR /&gt;&lt;SPAN&gt;Sum(Date={"&amp;gt;=$(vdatedebformat)&amp;lt;=$(vdatefinformat&amp;nbsp;)"}Aggr(If([Date] = Max(TOTAL &amp;lt;[Category], User&amp;gt; Date={"&amp;gt;=$(vdatedebformat)&amp;lt;=$(vdatefinformat&amp;nbsp;)"}Date), Count(&amp;nbsp;Date={"&amp;gt;=$(vdatedebformat)&amp;lt;=$(vdatefinformat&amp;nbsp;)"} Model)), [Date], Category, User))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;obviously you need to test each of the aggregation.&lt;/P&gt;&lt;P&gt;see attached Set Analysis reference i found here but cant find teh actual thread anymore&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 16:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1767686#M718974</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-10T16:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to get max date between 2 dates variables</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1768217#M718975</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Supposing you&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;have&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;a table as below screenshot shown, and you need to&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;find&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;array formulas can help you to find&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;max&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;or min value&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;between&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;two&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;dates&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;in Excel. Finding&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;max&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;value&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;between date&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;2016/7/1 and 2016/12/1:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;2&lt;/EM&gt;&lt;SPAN&gt;. Enter the below&amp;nbsp; and B5:B17 is the value&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;range&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;contains the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;max&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;and min&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;values&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;you will find.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 09:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1768217#M718975</guid>
      <dc:creator>Stewarttt</dc:creator>
      <dc:date>2020-12-14T09:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to get max date between 2 dates variables</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1768320#M718976</link>
      <description>&lt;P&gt;Thanks you edwin , it' worked&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 15:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1768320#M718976</guid>
      <dc:creator>Shinigaloo</dc:creator>
      <dc:date>2020-12-14T15:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to get max date between 2 dates variables</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1913474#M1218276</link>
      <description>&lt;P&gt;&lt;SPAN class="comment-copy"&gt;Instead of giving a date such as '1/1/1973' we can give blank string '' which should get cast to the earliest date as per date type used.. e.g. CAST('' as date) &lt;A href="https://mypascoconnect.life/" target="_self"&gt;Mypascoconnect&lt;/A&gt; retruns "1900-01-01", CAST('' as datetime) returns "1900-01-01 00:00:00.000" and CAST('' as datetime2) returns "1900-01-01 00:00:00.0000000". This works on SQL Server 2019.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 12:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-max-date-between-2-dates-variables/m-p/1913474#M1218276</guid>
      <dc:creator>richardchin</dc:creator>
      <dc:date>2022-04-02T12:20:29Z</dc:date>
    </item>
  </channel>
</rss>

