<?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: Compare 2 Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347284#M492862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan thats great &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2012 07:10:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-12T07:10:39Z</dc:date>
    <item>
      <title>Compare 2 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347282#M492860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;i wonder if you can help me i have a straight table with two values i would like to add an expression on there that shows me the difference between the two values but im not sure how to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could someone please point me in the right direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 17:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347282#M492860</guid>
      <dc:creator />
      <dc:date>2012-06-11T17:42:28Z</dc:date>
    </item>
    <item>
      <title>Compare 2 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347283#M492861</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;If the two values are in columns 1 and 2 respectively, then you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Column(1) - Column(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that column 1 is the first expression, and Column() refers to the expression values. You can't get the dimensions in the same way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 18:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347283#M492861</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-06-11T18:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347284#M492862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan thats great &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 07:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347284#M492862</guid>
      <dc:creator />
      <dc:date>2012-06-12T07:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347285#M492863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;do you happen to know how i can exclude anything with a difference of 0? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 14:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347285#M492863</guid>
      <dc:creator />
      <dc:date>2012-06-12T14:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347286#M492864</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;Just make sure all your expressions return null or 0 if column(1) = column(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will need to use the actual expressions, rather than column().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1:&amp;nbsp; If(&amp;lt;expr1&amp;gt; = &amp;lt;expr2&amp;gt;, 0, &amp;lt;expr1&amp;gt;)&lt;/P&gt;&lt;P&gt;Expression 2:&amp;nbsp; If(&amp;lt;expr2&amp;gt; = &amp;lt;expr1&amp;gt;, 0, &amp;lt;expr2&amp;gt;)&lt;/P&gt;&lt;P&gt;Expression 3:&amp;nbsp; Column(1) - Column(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &amp;lt;expr1&amp;gt; and &amp;lt;expr2&amp;gt; are the current expressions in columns 1 &amp;amp; 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Values/m-p/347286#M492864</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-06-13T15:14:15Z</dc:date>
    </item>
  </channel>
</rss>

