<?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 Using Min and Max functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241378#M91803</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;I have 3 diferrent expressions given below. I have a requirement where in one of fields in the table should show the Minimum of the values derived from below expressions if the user clicks "Min" in the list box.&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} PAmount ))&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} AAmount ))&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} BAmount ))&lt;/P&gt;&lt;P&gt;Similarly if the user clicks "Max" in the list box, the max value among the above expressions should be picked up.&lt;/P&gt;&lt;P&gt;Can anybody help me in putting the expression for Min and Max values.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Aug 2010 08:33:21 GMT</pubDate>
    <dc:creator>raghavsurya</dc:creator>
    <dc:date>2010-08-04T08:33:21Z</dc:date>
    <item>
      <title>Using Min and Max functions</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241378#M91803</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;I have 3 diferrent expressions given below. I have a requirement where in one of fields in the table should show the Minimum of the values derived from below expressions if the user clicks "Min" in the list box.&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} PAmount ))&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} AAmount ))&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} BAmount ))&lt;/P&gt;&lt;P&gt;Similarly if the user clicks "Max" in the list box, the max value among the above expressions should be picked up.&lt;/P&gt;&lt;P&gt;Can anybody help me in putting the expression for Min and Max values.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 08:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241378#M91803</guid>
      <dc:creator>raghavsurya</dc:creator>
      <dc:date>2010-08-04T08:33:21Z</dc:date>
    </item>
    <item>
      <title>Using Min and Max functions</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241379#M91804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghav,&lt;/P&gt;&lt;P&gt;Create an inline table with values 'Min' and 'Max'.&lt;/P&gt;&lt;P&gt;Assign the value of this field to a variable and use it in the set analysis.&lt;/P&gt;&lt;P&gt;Whenever the user selects the 'Min' or 'Max' it will be assigned to the variable and it will be in turn used by the set analysis&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;variable definition:&lt;/P&gt;&lt;P&gt;sortval=GetFieldSelections(sort)&amp;amp;'(Year)'&lt;/P&gt;&lt;P&gt;expression definition:&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=$(sortval))}&amp;gt;} PAmount ))&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=$(sortval))}&amp;gt;} AAmount ))&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=$(sortval))}&amp;gt;} BAmount ))&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Haneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 09:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241379#M91804</guid>
      <dc:creator />
      <dc:date>2010-08-04T09:01:51Z</dc:date>
    </item>
    <item>
      <title>Using Min and Max functions</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241380#M91805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haneesh,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I will try to elaborate my question. I have a list box with the following values&lt;/P&gt;&lt;P&gt;Min , Max and Avg&lt;/P&gt;&lt;P&gt;For Share valuation I need to pick Min or Max or Avg values coming out of below mentioned expressions.&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} PAmount )))) assume the outcome of this expression is $2000&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} BAmount )))) assume the outcome of this expression is $3000&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} AAmount )))) assume the outcome of this expression is $4000&lt;/P&gt;&lt;P&gt;now if I click Min $ 2000 should be picked up for share valuation, similarly if Max is clicked $4000 should be picked up.&lt;/P&gt;&lt;P&gt;Can you please help me how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 09:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241380#M91805</guid>
      <dc:creator>raghavsurya</dc:creator>
      <dc:date>2010-08-04T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Using Min and Max functions</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241381#M91806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(MyField='Min',rangemin(sum(...PAmount),sum(...BAmount),sum(...AAmount))&lt;BR /&gt;if(MyField='Max',rangemax(...)&lt;BR /&gt; ,rangeavg(...)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 01:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241381#M91806</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-05T01:19:27Z</dc:date>
    </item>
    <item>
      <title>Using Min and Max functions</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241382#M91807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John.... It works. Perhaps I used "NumMin", NumMax and Num Avg functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 07:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Min-and-Max-functions/m-p/241382#M91807</guid>
      <dc:creator>raghavsurya</dc:creator>
      <dc:date>2010-08-05T07:31:05Z</dc:date>
    </item>
  </channel>
</rss>

