<?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: how to simplify this if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294247#M833519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using in chart expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2017 09:40:50 GMT</pubDate>
    <dc:creator>gauthamchilled</dc:creator>
    <dc:date>2017-06-01T09:40:50Z</dc:date>
    <item>
      <title>how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294243#M833515</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 this condition, regardless of revenue if profit is positive number i have to show +ve margin otherwise negative number&lt;/P&gt;&lt;P&gt;how can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sum(profit) &amp;lt; 0 and sum(revenue) &amp;lt; 0, -(sum(profit)/sum(revenue)&lt;/P&gt;&lt;P&gt;if sum(profit) &amp;lt; 0 and sum(revenue) &amp;gt; 0, -(sum(profit)/sum(revenue)&lt;/P&gt;&lt;P&gt;if sum(profit)&amp;gt; 0 and sum(revenue) &amp;lt; 0, (sum(profit)/sum(revenue)&lt;/P&gt;&lt;P&gt;if sum(profit)&amp;gt; 0 and sum(revenue) &amp;gt; 0, (sum(profit)/sum(revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you simplify the above if statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gautham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294243#M833515</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294244#M833516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can create 3 variables:&lt;/P&gt;&lt;P&gt;1) vTotalProfit: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(profit)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) vTotalRevenue: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;3) vProfit/Revenue: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(sum(profit)/sum(revenue)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and re-write your expression like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if($(v&lt;SPAN style="font-size: 13.3333px;"&gt;TotalProfit&lt;/SPAN&gt;) &amp;lt; 0 and $(v&lt;SPAN style="font-size: 13.3333px;"&gt;TotalRevenue&lt;/SPAN&gt;)&amp;lt;0, -$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vProfit/Revenue&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TotalProfit&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt; &amp;lt; 0 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TotalRevenue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt; &amp;gt; 0, -&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vProfit/Revenue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TotalProfit&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;) &lt;/SPAN&gt;&amp;gt; 0 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TotalRevenue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt; &amp;lt; 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vProfit/Revenue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TotalProfit&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;) &lt;/SPAN&gt;&amp;gt; 0 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TotalRevenue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt; &amp;gt; 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vProfit/Revenue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294244#M833516</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2017-06-01T09:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294245#M833517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there a way to simplify this if statement??? with respect to performance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294245#M833517</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2017-06-01T09:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294246#M833518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your if statements nested or do you use them in separate charts&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294246#M833518</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2017-06-01T09:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294247#M833519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using in chart expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294247#M833519</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2017-06-01T09:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294248#M833520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but you are using it in different expressions or nested in the same expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294248#M833520</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2017-06-01T09:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294249#M833521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nested in same expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294249#M833521</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2017-06-01T09:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294250#M833522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;could be this ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(profit) &amp;lt; 0 and sum(revenue) &amp;lt;&amp;gt; 0, -(sum(profit)/sum(revenue))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(profit)&amp;gt; 0 and sum(revenue) &amp;lt;&amp;gt; 0, (sum(profit)/sum(revenue)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but if you want to improve your document performance you have to use variable or do the sum() during load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294250#M833522</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2017-06-01T09:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294251#M833523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think You don't need IF()&lt;/P&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;Margin --&amp;gt; Sum(profit)/Fabs(Sum(revenue))&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294251#M833523</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-01T09:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294252#M833524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Gautham!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is little bit shorter:&lt;/P&gt;&lt;P&gt;if((&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(profit)&lt;/SPAN&gt;+&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(revenue)&lt;/SPAN&gt;)&amp;lt;0 or (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(profit)&amp;lt;0 and sum(revenue)&amp;gt;0),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-(sum(profit)/sum(revenue))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(profit)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(revenue)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&amp;gt;0 or (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(profit)&amp;gt;0 and sum(revenue)&amp;lt;0&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(sum(profit)/sum(revenue)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294252#M833524</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-06-01T09:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to simplify this if statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294253#M833525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(RangeSum(profit, revenue) &amp;lt; 0, -RangeSum(profit,revenue), &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(sum(profit) &amp;lt; 0 and sum(revenue) &amp;gt; 0, -RangeSum(profit, revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(sum(profit)&amp;gt; 0 and sum(revenue) &amp;lt; 0, RangeSum(profit,revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if( RangeSum(profit, revenue) &amp;gt; 0, &lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RangeSum(profit,revenue)))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 10:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-simplify-this-if-statement/m-p/1294253#M833525</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-01T10:04:56Z</dc:date>
    </item>
  </channel>
</rss>

