<?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 MAX function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275258#M102770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Median I solve by this formula&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=if(DCU.Length=RangeMax(DCU.Length,DCU.Width,DCU.Height)and(DCU.Height=RangeMin(DCU.Length,DCU.Width,DCU.Height)),1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 13:44:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-20T13:44:09Z</dc:date>
    <item>
      <title>MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275249#M102761</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 have a small problem getting the max function right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will like to do this in a table in QV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (max (length, width, height) = length (then) 1 else (0) but I can not get it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I need to do the same with median and min.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody with a little help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bjarne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275249#M102761</guid>
      <dc:creator />
      <dc:date>2011-09-20T12:20:21Z</dc:date>
    </item>
    <item>
      <title>MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275250#M102762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; can you explain a little bit more on the data structre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275250#M102762</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-09-20T12:38:26Z</dc:date>
    </item>
    <item>
      <title>MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275251#M102763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max() only takes a single expression (plus a rank) so I'm guessing you are looking more for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Length=Max(Length),1,0)&lt;/P&gt;&lt;P&gt;IF(Width=Max(Width),1,0)&lt;/P&gt;&lt;P&gt;IF(Height=Max(Height),1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Length=Median(Length),1,0)&lt;/P&gt;&lt;P&gt;IF(Width=Median(Width),1,0)&lt;/P&gt;&lt;P&gt;IF(Height=Median(Height),1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Length=Min(Length),1,0)&lt;/P&gt;&lt;P&gt;IF(Width=Min(Width),1,0)&lt;/P&gt;&lt;P&gt;IF(Height=Min(Height),1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you were after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275251#M102763</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-20T12:42:14Z</dc:date>
    </item>
    <item>
      <title>MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275252#M102764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I'll try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an article 1234567 and the length of this collie is 40, the width is 30 and the height is 20. Then i'll check if the length is the highest value, if the width is the median and if the height is the smallest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In excel i could like this. Length is in cell A1, width is in cell B1 and height is in cell C1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(max(A1:C1)=A1;1;0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the same for median&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(median(A1:C1)=B1;1;0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for min&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(min(A1:C1)=C1;1;0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275252#M102764</guid>
      <dc:creator />
      <dc:date>2011-09-20T12:45:15Z</dc:date>
    </item>
    <item>
      <title>MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275253#M102765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hey Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No not like that. Can I mabe use Maxstring? I need to compare length, width and height to ensure that length has the higest value and that the height has the smallest value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275253#M102765</guid>
      <dc:creator />
      <dc:date>2011-09-20T13:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275254#M102766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RangeMax function will help you to do this.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Your expression should be some thing like below.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;IF(RangeMax(Length,Hieght,Width) = Length,1,0)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Check the attached application.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope this helps you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275254#M102766</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2011-09-20T13:07:39Z</dc:date>
    </item>
    <item>
      <title>MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275255#M102767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Look at RangeMax() then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275255#M102767</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-20T13:09:05Z</dc:date>
    </item>
    <item>
      <title>MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275256#M102768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Sridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot. But what can I do with Median then? Need to do the same, but no functionname called RangeMedian. Do you know the answer here also?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275256#M102768</guid>
      <dc:creator />
      <dc:date>2011-09-20T13:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275257#M102769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I have tweaked the table a bit to achieve your requirement. I have loaded the Length, height, Width as Measure in one column.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Now we can use Max and Median to solve you scenario.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I have a look at the attached application.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275257#M102769</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2011-09-20T13:32:51Z</dc:date>
    </item>
    <item>
      <title>MAX function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275258#M102770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Median I solve by this formula&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=if(DCU.Length=RangeMax(DCU.Length,DCU.Width,DCU.Height)and(DCU.Height=RangeMin(DCU.Length,DCU.Width,DCU.Height)),1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-function/m-p/275258#M102770</guid>
      <dc:creator />
      <dc:date>2011-09-20T13:44:09Z</dc:date>
    </item>
  </channel>
</rss>

