<?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: Error in Expression Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-Value/m-p/462487#M1165824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try rounding that substraction first:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=if(round([PQ First Purchase Discount]-(sum([Trans Amount])*-1),0.01)=0,'',[PQ First Purchase Discount]-(sum([Trans Amount])*-1))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 14:30:30 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2012-10-29T14:30:30Z</dc:date>
    <item>
      <title>Error in Expression Value</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-Value/m-p/462486#M1165823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my load script I have an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;if([Champion Challenge No] = 28 or [Champion Challenge No] = 31,round([Value of first purchase]/20,0.01),&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Champion Challenge No] = 29 or [Champion Challenge No] = 32,round([Value of first purchase]/10,0.01), 0)) as [PQ First Purchase Discount],&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that certain people qualify for a 10% or 5% discount on their first purchase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have a table where I want to check that the system is correctly posting the expected discount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1 is my EXPECTED Discount:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;=[PQ First Purchase Discount]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Expression 2 is the actual discount posted&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;=sum([Trans Amount])*-1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 3 I want to use to look for accounts where the correct discount did not post. So I want to subtract the two expressions from each other, and I am expecting zero values. If teh value is zero I want the field left blank, and otherwise I want to see the value. SO my expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=if([PQ First Purchase Discount]-(sum([Trans Amount])*-1)=0,'',[PQ First Purchase Discount]-(sum([Trans Amount])*-1))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for some reason, I sometimes do not get a zero value when I subtract the expression, even though the values are the same. See the image attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-Value/m-p/462486#M1165823</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-10-29T14:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression Value</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-Value/m-p/462487#M1165824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try rounding that substraction first:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=if(round([PQ First Purchase Discount]-(sum([Trans Amount])*-1),0.01)=0,'',[PQ First Purchase Discount]-(sum([Trans Amount])*-1))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-Value/m-p/462487#M1165824</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-29T14:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression Value</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-Value/m-p/462488#M1165825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still don't understand it... but it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-Value/m-p/462488#M1165825</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-10-29T14:32:57Z</dc:date>
    </item>
  </channel>
</rss>

