<?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 Condition using MAX() in IF... else in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298164#M110604</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&gt;where do you want to use this expression (in what kind of object, as calculated dimension or expression, if as expression, what are your dimensions)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I think the set expression should look like&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;marks= {"$(=max(marks))"}&amp;gt;} Rollnumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2011 18:56:12 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-28T18:56:12Z</dc:date>
    <item>
      <title>Condition using MAX() in IF... else</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298163#M110603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I surprised to find out that Max() cant be used in conditional statement of IF. I was trying to use ::&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(max(marks)=marks, Rollnumber)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;type of statement. but its showing "error in expression".&lt;/P&gt;&lt;P&gt;Even set analysis isnt helping to get solution :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum({$&amp;lt;marks={$(max(marks))}&amp;gt;} Rollnumber)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;Is it something wrong with my approach or QV doesnt allow function in Conditions??&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 18:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298163#M110603</guid>
      <dc:creator />
      <dc:date>2011-09-28T18:23:01Z</dc:date>
    </item>
    <item>
      <title>Condition using MAX() in IF... else</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298164#M110604</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&gt;where do you want to use this expression (in what kind of object, as calculated dimension or expression, if as expression, what are your dimensions)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I think the set expression should look like&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;marks= {"$(=max(marks))"}&amp;gt;} Rollnumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 18:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298164#M110604</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-28T18:56:12Z</dc:date>
    </item>
    <item>
      <title>Condition using MAX() in IF... else</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298165#M110605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Was trying to use it as an expression...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 16:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298165#M110605</guid>
      <dc:creator />
      <dc:date>2011-09-30T16:09:39Z</dc:date>
    </item>
    <item>
      <title>Condition using MAX() in IF... else</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298166#M110606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not much of information, is it? If you tell us a little more, the probability that someone around could help you will increase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use a similar expression like the first in your original post, I don't get an "error in expression". marks and Rollnumber are field names and correctly spelled? You don't use the above expression as part / within another expression, like within an aggregation function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 17:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/298166#M110606</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-30T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Condition using MAX() in IF... else</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/1626526#M446147</link>
      <description>&lt;P&gt;I tried to use:&lt;/P&gt;&lt;P&gt;[Prazo]:&lt;BR /&gt;LOAD id_campo,&lt;BR /&gt;IF(condition, MAX(campo1), MAX(campo2)) as campo3&lt;BR /&gt;RESIDENT tab1&lt;BR /&gt;GROUP BY id_campo;&lt;/P&gt;&lt;P&gt;and it didn't work. What's wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 20:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-using-MAX-in-IF-else/m-p/1626526#M446147</guid>
      <dc:creator>RodolfoNeumann</dc:creator>
      <dc:date>2019-09-20T20:56:30Z</dc:date>
    </item>
  </channel>
</rss>

