<?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: Issue with MinMax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372882#M830202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alison,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is because the MM-YYYY is being interpreted as text instead of number in Qlikview. So when you apply the Max and Min function it does not return any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;MinMax:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Min(makedate(right([MM-YYYY],4),left(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[MM-YYYY]&lt;/SPAN&gt;,2))) AS MinDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(makedate(right([MM-YYYY],4),left(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[MM-YYYY]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,2)))&lt;/SPAN&gt; AS MaxDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident [(Sheet1...)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 15:16:21 GMT</pubDate>
    <dc:creator>CarlosAMonroy</dc:creator>
    <dc:date>2017-06-28T15:16:21Z</dc:date>
    <item>
      <title>Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372877#M830197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the earliest and the latest date using the max and min function.&lt;/P&gt;&lt;P&gt;So the script I'm writing looks like this:&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMax:&lt;/P&gt;&lt;P&gt;LOAD &lt;BR /&gt;Min([MM-YYYY]) AS MinDate,&lt;BR /&gt;Max([MM-YYYY]) AS MaxDate&lt;BR /&gt;Resident [(Sheet1...)]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I load it and go to the UI the fields are available but they do not generate any values.&lt;/P&gt;&lt;P&gt;Please can you help me with this? Let me know if you need for info in order to help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Alison &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/Issue-with-MinMax/m-p/1372877#M830197</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372878#M830198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;May be try this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;MinMax:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Min(Date#([MM-YYYY]),'MM-YYYY') AS MinDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date#([MM-YYYY]),'MM-YYYY') &lt;/SPAN&gt; AS MaxDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident [(Sheet1...)];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372878#M830198</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-06-28T14:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372879#M830199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it doesn't change anything,&lt;/P&gt;&lt;P&gt;When I drag the field into the canvas there are still no values attached to MinDate or MaxDate. Presumably, there should be one field value for both. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372879#M830199</guid>
      <dc:creator />
      <dc:date>2017-06-28T15:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372880#M830200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sorry small mistake with the parantheses&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;try it now&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;MinMax:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; AS MinDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Max(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Date#([MM-YYYY],'MM-YYYY')) &lt;/SPAN&gt;AS MaxDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident [(Sheet1...)];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372880#M830200</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-06-28T15:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372881#M830201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No sorry, that doesn't work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372881#M830201</guid>
      <dc:creator />
      <dc:date>2017-06-28T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372882#M830202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alison,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is because the MM-YYYY is being interpreted as text instead of number in Qlikview. So when you apply the Max and Min function it does not return any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;MinMax:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Min(makedate(right([MM-YYYY],4),left(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[MM-YYYY]&lt;/SPAN&gt;,2))) AS MinDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(makedate(right([MM-YYYY],4),left(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[MM-YYYY]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,2)))&lt;/SPAN&gt; AS MaxDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident [(Sheet1...)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372882#M830202</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2017-06-28T15:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372883#M830203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works! Thanks so much! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372883#M830203</guid>
      <dc:creator />
      <dc:date>2017-06-28T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372884#M830204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible for you to explain to me how that works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372884#M830204</guid>
      <dc:creator />
      <dc:date>2017-06-28T15:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372885#M830205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, as the MM-YYYY field is coming as text, I want QV to get those values as numbers in order to be able to calculate and know the min and max values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Makedate() function returns a date calculated from the year &lt;SPAN class="Italic"&gt;YYYY&lt;/SPAN&gt;, the month &lt;SPAN class="Italic"&gt;MM&lt;/SPAN&gt; and the day &lt;SPAN class="Italic"&gt;DD&lt;/SPAN&gt;. If there is no Month given, 1(January) is assumed, same for the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you already have MM and YYYY so I'm using right() and left() functions to trim the field and take only the values I need to pass as parameters. Makedate(YYYY,MM,DD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense? Hope I could express myself correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372885#M830205</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2017-06-28T15:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372886#M830206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes sense thank you. But please can you tell me, what are the numbers. For example the '4'&amp;nbsp; sound here 'Min(makedate(right([MM-YYYY],4),'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372886#M830206</guid>
      <dc:creator />
      <dc:date>2017-06-28T15:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372887#M830207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌left and rigth functions take the number of characters you input in the parameters. &lt;/P&gt;&lt;P&gt;So, in order to take just the year from MM-YYYY field. I use rigth as the star point and then use the number 4 to take just 4 characters. and then do the same for the month, but now I want to start from the left side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372887#M830207</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2017-06-28T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372888#M830208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thanks a lot! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372888#M830208</guid>
      <dc:creator />
      <dc:date>2017-06-28T15:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with MinMax</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372889#M830209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use caution when using the Min and Max functions, s&lt;SPAN style="font-size: 13.3333px;"&gt;ure it works well with a small table, but a &lt;/SPAN&gt; on a very large table it can take quite a long time.&amp;nbsp; I know it's taught in class but it's not necessarily the best method of taking care of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;rwunderlich&lt;/A&gt;‌ post &lt;A href="https://qlikviewcookbook.com/2015/05/better-calendar-scripts/" style="font-size: 13.3333px;" title="https://qlikviewcookbook.com/2015/05/better-calendar-scripts/"&gt;https://qlikviewcookbook.com/2015/05/better-calendar-scripts/&lt;/A&gt;‌ you'll see he talks about this in quite a bit of detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="265855.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168465_265855.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 16:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-MinMax/m-p/1372889#M830209</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-06-28T16:20:08Z</dc:date>
    </item>
  </channel>
</rss>

