<?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 Calculation with IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818625#M1019193</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;there is a duplicate "or: on Yuriy syntax, did you removed it &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(above(sum(Result)) - sum(MoneyCount) &amp;gt; 500 and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(above(sum(Result))&amp;gt;1000 or sum(MoneyCount)&amp;gt;0),rgb(255,0,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 14:20:32 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-03-31T14:20:32Z</dc:date>
    <item>
      <title>Expression Calculation with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818622#M1019190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone.&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with a statement, if anybody can help it would be much appreciated.&lt;BR /&gt;The situation is as followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have several columns as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/82333_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column 4 has the following condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(above(sum(Result)) - sum(MoneyCount) &amp;gt; 500 and&lt;/P&gt;&lt;P&gt;above(sum(Result))&amp;gt;1000,rgb(255,0,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point of this is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1, When MachineSaldo (Result) is above 1000 an action has to be&amp;nbsp; taken in the form of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MoneyCount&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;2, if the result after the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MoneyCount &lt;/SPAN&gt;is above 500 show as red because that is our limit, it cannot exceed 500.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Now the above condition does exactly that, as seen in row 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;however we now want an extra condition, namely: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;3, IF there has been a &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MoneyCount&lt;/SPAN&gt;(even if MachineSaldo is below 1000) and the result still exceeds 500 it has to be red as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So in the above example row 3 (27-3-2015) the Result after &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MoneyCount &lt;/SPAN&gt;column has to become red as in row 2. but row 1 can stay as it is right now because no &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MoneyCount &lt;/SPAN&gt;action has been taken.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I thought it was as easy as putting &amp;gt;0 after &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MoneyCount &lt;/SPAN&gt;in the condition, but that does not seem to work.&lt;BR /&gt; &lt;/SPAN&gt;&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;Mike Cleven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 10:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818622#M1019190</guid>
      <dc:creator />
      <dc:date>2015-03-30T10:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Calculation with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818623#M1019191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(above(sum(Result)) - sum(MoneyCount) &amp;gt; 500 and&lt;/P&gt;&lt;P&gt;(above(sum(Result))&amp;gt;1000&amp;nbsp; or sum(MoneyCount)&amp;gt;0),rgb(255,0,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(deleted duplicated or)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818623#M1019191</guid>
      <dc:creator>yura_ratu</dc:creator>
      <dc:date>2015-03-31T13:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Calculation with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818624#M1019192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that does not work.&lt;BR /&gt;After I try this the cells wich fall in range suddenly have no values in them and appear empty. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818624#M1019192</guid>
      <dc:creator />
      <dc:date>2015-03-31T13:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Calculation with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818625#M1019193</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;there is a duplicate "or: on Yuriy syntax, did you removed it &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(above(sum(Result)) - sum(MoneyCount) &amp;gt; 500 and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(above(sum(Result))&amp;gt;1000 or sum(MoneyCount)&amp;gt;0),rgb(255,0,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 14:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818625#M1019193</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-03-31T14:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Calculation with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818626#M1019194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay now i feel stupid haha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys! it works perfect now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 14:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Calculation-with-IF-statement/m-p/818626#M1019194</guid>
      <dc:creator />
      <dc:date>2015-03-31T14:31:40Z</dc:date>
    </item>
  </channel>
</rss>

