<?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: Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression/m-p/579228#M1104910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with alt(), like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Alt(yourExpression_once, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The &lt;SPAN class="Bold"&gt;alt&lt;/SPAN&gt; function returns the first of the parameters that has a valid number representation. If no such match is found, the last parameter will be returned. Any number of parameters can be used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, use you can use variable instead of direct expression. Using variable twice would not recalculate unlike you are afraid of performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2014 07:19:22 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-03-31T07:19:22Z</dc:date>
    <item>
      <title>Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/579225#M1104907</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 got this expression:&lt;/P&gt;&lt;P&gt;If(isnull((SUM({$&amp;lt; Year = {$(=(max(Year)))} &amp;gt;} RevenueAmount))/(SUM({$&amp;lt; Year = {$(=(max(Year)-1))} &amp;gt;} RevenueAmount))-1), 0, (SUM({$&amp;lt; Year = {$(=(max(Year)))} &amp;gt;} RevenueAmount))/(SUM({$&amp;lt; Year = {$(=(max(Year)-1))} &amp;gt;} RevenueAmount))-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However now I got my formula twice. Because the first part says if it's null you have to value it with 0. Then if it's not null it has to calculate the formula again.&amp;nbsp; This will probably effect my system capacity so I thinking is there an other way to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/579225#M1104907</guid>
      <dc:creator />
      <dc:date>2014-03-31T07:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/579226#M1104908</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;Use Alt():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Alt(((SUM({$&amp;lt; Year = {$(=(max(Year)))} &amp;gt;} RevenueAmount)) / (SUM({$&amp;lt; Year = {$(=(max(Year)-1))} &amp;gt;} RevenueAmount))) - 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alt() will return the first parameter (your expression) if it is not null*, otherwise returns the second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*actually if it is not numeric, but a null is non-numeric so it works in this case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/579226#M1104908</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-31T07:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/579227#M1104909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way you can use variables for this like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Isnull($(YourExpression),0 ,$(YourExpression))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/579227#M1104909</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-31T07:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/579228#M1104910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with alt(), like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Alt(yourExpression_once, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The &lt;SPAN class="Bold"&gt;alt&lt;/SPAN&gt; function returns the first of the parameters that has a valid number representation. If no such match is found, the last parameter will be returned. Any number of parameters can be used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, use you can use variable instead of direct expression. Using variable twice would not recalculate unlike you are afraid of performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/579228#M1104910</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-31T07:19:22Z</dc:date>
    </item>
  </channel>
</rss>

