<?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: RangeMin() and RangeMax() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063691#M355793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use these functions in chart expressions or script. While writing chart expressions or script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not just have a look at the HELP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 12:59:22 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-03T12:59:22Z</dc:date>
    <item>
      <title>RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063690#M355792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When and where to use RangeMin() and RangeMax() function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 11:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063690#M355792</guid>
      <dc:creator />
      <dc:date>2016-05-03T11:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063691#M355793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use these functions in chart expressions or script. While writing chart expressions or script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not just have a look at the HELP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 12:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063691#M355793</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-03T12:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063692#M355794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is usefull when you want to keep the max of two different fields:&lt;/P&gt;&lt;P&gt;Date(RangeMax([Original Due Date], [Negotiated Due Date]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you want to set a min or max value to an expression (in example for dynamic axis range):&lt;/P&gt;&lt;P&gt;RangeMin(Sum(Profit), -1) // The axis will start at -1 even if all profits are positive, if there are a more negative number, it will take the lower.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 13:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063692#M355794</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-05-03T13:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063693#M355795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wherever you would specify all values as a comma-separated list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for the fun of it, let's introduce a visual analogy: &lt;SPAN style="text-decoration: underline;"&gt;vertical&lt;/SPAN&gt; and &lt;SPAN style="text-decoration: underline;"&gt;horizontal&lt;/SPAN&gt; value specifications.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A single field name will give you access to 1 or more values in a vertical list (e.g. a listbox). &lt;BR /&gt;&lt;EM&gt;Vertical -&amp;gt; Max(Fieldname). &lt;/EM&gt;Max() will travel the vertical list of values and decide on which is the largest.&lt;/LI&gt;&lt;LI&gt;A number of values or containers separated by comma's also specify multiple discrete values but in a horizontal list. &lt;BR /&gt;&lt;EM&gt;Horizontal -&amp;gt; RangeMax(parm1, parm2, ...). &lt;/EM&gt;RangeMax() will hop from one parameter to the next in the horizontal list, and pick the one value that is the largest.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that you can also use fieldnames in a RangeMax() parameter list, but they will only produce sensible results if they refer to a single value at a time. Like in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(RangeMax(Total1, Total2, Total2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Total1, Total2 and Total3 are all from a single row or from a single set of connected rows in different tables. Otherwise every Total value will return NULL because RangeMax expects a single value for every parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Edit] Sorry, (Range)Max picks the largest values, not the smallest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 13:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063693#M355795</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-05-03T13:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063694#M355796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for prompt response. &lt;/P&gt;&lt;P&gt;Actually, I have come across below script and couldn't able to understand the functionality of RangeMin() and RangeMax()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempSubIntervals:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; StartDate as [ES Start Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; EndDate as [ES END Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; IntervalId&lt;/P&gt;&lt;P&gt;Resident RoomDetail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubIntervals:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;*, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SubFromDate &amp;amp;'|'&amp;amp; SubToDate as SubIntervalID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IntervalId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(RangeMax([ES Start Date])) as SubFromDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(RangeMin([ES END Date])) as SubToDate&lt;/P&gt;&lt;P&gt;Resident TempSubIntervals;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 14:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063694#M355796</guid>
      <dc:creator />
      <dc:date>2016-05-03T14:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063695#M355797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using RangeMin() / RangeMax() with a single argument, there is no real benefit from using these functions at all (&lt;/P&gt;&lt;P&gt;since the HELP says for RangeMax():&lt;/P&gt;&lt;P&gt;"Returns the highest numeric values found within a range of 1 to N arguments. If no numeric value is found, NULL is returned.")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, if there is only one numeric value in the range, it will return just this value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 14:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063695#M355797</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-03T14:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063696#M355798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in that particular case, I don't understand either, I think that's similar to:&lt;/P&gt;&lt;P&gt;SubIntervals:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="font-size: 10pt;"&gt;*, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;SubFromDate &amp;amp;'|'&amp;amp; SubToDate as SubIntervalID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IntervalId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date([ES Start Date]) as SubFromDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date([ES END Date]) as SubToDate&lt;/P&gt;&lt;P&gt;Resident TempSubIntervals;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe is trying:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="font-size: 10pt;"&gt;*, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;SubFromDate &amp;amp;'|'&amp;amp; SubToDate as SubIntervalID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IntervalId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(Max([ES Start Date])) as SubFromDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(Min([ES END Date])) as SubToDate&lt;/P&gt;&lt;P&gt;Resident TempSubIntervals&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group by IntervalId&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 14:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063696#M355798</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-05-03T14:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063697#M355799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor368"&gt;&lt;/A&gt;&lt;A name="Ch_rangemin"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;rangemin(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;expr1 [ , expr2, ... exprN ]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the lowest numeric value found within a range 1 to N arguments. If no numeric value is found, NULL is returned. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;rangemin (1,2,4)&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;rangemin (1,'xyz')&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;rangemin (null( ), 'abc')&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;rangemin (above(sum(x),-1,3))&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns the lowest of the three results of the &lt;SPAN class="Bold"&gt;sum(x)&lt;/SPAN&gt; function evaluated on the row below the current row, the current row and the row above the current row. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor369"&gt;&lt;/A&gt;&lt;A name="Ch_rangemax"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;rangemax(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;expr1 [ , expr2, ... exprN ]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the highest numeric values found within a range of 1 to N arguments. If no numeric value is found, NULL is returned. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;rangemax (1,2,4)&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns 4&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;rangemax (1,'xyz')&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;rangemax (null( ), 'abc')&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;rangemax (above(sum(x),-1,3))&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns the highest of the three results of the sum(x) function evaluated on the row below the current row, the current row and the row above the current row. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 15:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063697#M355799</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-05-03T15:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: RangeMin() and RangeMax()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063698#M355800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So to summarize the previous, the use of RangeXXX() functions in this particular case will translate all non-numeric values to NULL and will leave the numeric values alone.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Ruben clearly shows in hist first example that there are shorter ways to do the same, so the original may not be a code sample worth spending your time on...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 15:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeMin-and-RangeMax/m-p/1063698#M355800</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-05-03T15:16:41Z</dc:date>
    </item>
  </channel>
</rss>

