<?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: If Statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954948#M328255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Cassandra,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Could you split the statement and do a test whether the results are fine or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="color: #808080;"&gt;vForecastRound)=0&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;vActualRound)=0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;),0,1&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)=0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 8pt;"&gt;, -1, &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Also add expressions for the variables =$(vForecastRound), =$(vActualRound) and =$(vForecastVariance). So that you can see where you have the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit; line-height: 1.5em;"&gt;If both works correctly, then the below should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;=if&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;vForecastRound&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;)=0 &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;vActualRound&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;)=0),0,&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)=0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;, -1, &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Nov 2015 04:37:23 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2015-11-21T04:37:23Z</dc:date>
    <item>
      <title>If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954941#M328248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to write basically an elseif statement in an expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;), -1, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This doesn't:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vForecastRound&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vActualRound&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;), -1, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I think it's a syntax error. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Cassandra&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 18:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954941#M328248</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-11-20T18:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954942#M328249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any issue with the syntax. What is the error that you are seeing? May be its something to do with one of the variables you have in there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 18:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954942#M328249</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-20T18:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954943#M328250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="11-20-2015 12-00-15 PM.jpg" class="jive-image image-1" src="/legacyfs/online/106248_11-20-2015 12-00-15 PM.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;If Forecast and Actual are 0, Variance % should be 0%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Forecast is 0, Variance % should be -100%.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 19:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954943#M328250</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-11-20T19:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954944#M328251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you reference vForecastVariance, you use the $() to evaluate it. For the other two variables you do not use $(). Are they constants?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also not that 0 and null ar different. That ifNull(0) = false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 19:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954944#M328251</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-11-20T19:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954945#M328252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;if(sum(forecast)=0 and sum(actual)=0, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 0,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; sum(forecast) / sum(actual) -1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106264_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 19:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954945#M328252</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-20T19:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954946#M328253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I updated all variables to use $() but it did not change the end result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vForecastRound and vActualRound are 0, I want the expression to show 0 (which would show 0%).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 19:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954946#M328253</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-11-20T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954947#M328254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 2 if statements to merge:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vForecastRound)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vActualRound)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=0,-1, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=0, 0, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 20:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954947#M328254</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-11-20T20:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954948#M328255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Cassandra,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Could you split the statement and do a test whether the results are fine or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="color: #808080;"&gt;vForecastRound)=0&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;vActualRound)=0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;),0,1&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)=0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 8pt;"&gt;, -1, &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-style: inherit; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Also add expressions for the variables =$(vForecastRound), =$(vActualRound) and =$(vForecastVariance). So that you can see where you have the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit; line-height: 1.5em;"&gt;If both works correctly, then the below should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;=if&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;vForecastRound&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;)=0 &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;vActualRound&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;)=0),0,&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)=0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;, -1, &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-style: inherit; font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 04:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954948#M328255</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-11-21T04:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954949#M328256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="11-23-2015 12-49-42 PM.jpg" class="jive-image image-1" src="/legacyfs/online/106487_11-23-2015 12-49-42 PM.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;If Forecast is 0, Variance % should be -100%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of the first line, I would expect Variance to be -100%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="color: #808080;"&gt;vForecastRound)=0&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;vActualRound)=0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;),0,1&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;)&amp;nbsp; = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)=0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;, -1, &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vForecastVariance)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 8pt; font-style: inherit;"&gt;) = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 20:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954949#M328256</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-11-23T20:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954950#M328257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($(vForecastRound)=0 and ($(vActualRound))=0,0, if($(vForecastRound)=0, -1, $(vForecastVariance)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my test. keep loading and you can test different data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 02:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954950#M328257</guid>
      <dc:creator />
      <dc:date>2015-11-24T02:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954951#M328258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 14:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statements/m-p/954951#M328258</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-11-24T14:32:31Z</dc:date>
    </item>
  </channel>
</rss>

