<?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. :Re: max + above functions return Null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219791#M712679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to compute a new column in your data script using the 'previous' function, for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;LOAD id, counter&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;counter-if(isnull(previous(counter)),0,previous(counter)) as gap&lt;/P&gt;&lt;P&gt;resident test;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can have the max(gap) in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2011 13:01:45 GMT</pubDate>
    <dc:creator>vincent_ardiet</dc:creator>
    <dc:date>2011-04-18T13:01:45Z</dc:date>
    <item>
      <title>max + above functions return Null</title>
      <link>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219787#M712675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If I do&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;max(MyField - above(MyField))[/code ]I get "-" because above() return "-" for the first row. My question is to kow how to avoid this ?&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Jérémy&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 10:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219787#M712675</guid>
      <dc:creator />
      <dc:date>2011-04-18T10:20:54Z</dc:date>
    </item>
    <item>
      <title>Re. :max + above functions return Null</title>
      <link>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219788#M712676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;What do you want to do exactly ?&lt;/P&gt;&lt;P&gt;If you want to compare the max value of a field wihtin a dimension and the previous one (that means the max value of a field with the previous dimension value), the syntax is :&lt;/P&gt;&lt;P&gt;=max(myField)-above(max(myField))&lt;/P&gt;&lt;P&gt;And if you want to avoid the NULL value, you can use a test like :&lt;/P&gt;&lt;P&gt;=max(myField)-if(isnull(above(max(myField))),0,above(max(myField)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 10:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219788#M712676</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-18T10:32:59Z</dc:date>
    </item>
    <item>
      <title>Re. :max + above functions return Null</title>
      <link>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219789#M712677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent,&lt;/P&gt;&lt;P&gt;MyFiled is a field with counter values. What I want to do is to find the maximum consumption between 2 counter values.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;MyField&lt;/P&gt;&lt;P&gt;0&lt;BR /&gt;10&lt;BR /&gt;12&lt;BR /&gt;16&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;I want fo find the value 10 because 10 - 0 returns the max&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 10:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219789#M712677</guid>
      <dc:creator />
      <dc:date>2011-04-18T10:49:22Z</dc:date>
    </item>
    <item>
      <title>max + above functions return Null</title>
      <link>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219790#M712678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could make another column which has the difference between those numbers and take the max of that column &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyField Diff&lt;/P&gt;&lt;P&gt;0 0&lt;BR /&gt;10 10&lt;BR /&gt;12 2&lt;BR /&gt;16 4&lt;/P&gt;&lt;P&gt;Max(diff) = 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 12:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219790#M712678</guid>
      <dc:creator />
      <dc:date>2011-04-18T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: max + above functions return Null</title>
      <link>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219791#M712679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to compute a new column in your data script using the 'previous' function, for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;LOAD id, counter&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;counter-if(isnull(previous(counter)),0,previous(counter)) as gap&lt;/P&gt;&lt;P&gt;resident test;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can have the max(gap) in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 13:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-above-functions-return-Null/m-p/219791#M712679</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-18T13:01:45Z</dc:date>
    </item>
  </channel>
</rss>

