<?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 Comparing Two Values to get the difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209979#M64762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to compare two values in an expression and get the difference but I don't want a negative number. Is there anyway to formulate this WITHOUT an If statement&amp;gt;???&lt;/P&gt;&lt;P&gt;Example: I'm comparing The Book quantitiy of several items and the counted quantity. I want a new field that is the difference between the two and is always a positive number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2011 21:31:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-11T21:31:53Z</dc:date>
    <item>
      <title>Comparing Two Values to get the difference</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209979#M64762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to compare two values in an expression and get the difference but I don't want a negative number. Is there anyway to formulate this WITHOUT an If statement&amp;gt;???&lt;/P&gt;&lt;P&gt;Example: I'm comparing The Book quantitiy of several items and the counted quantity. I want a new field that is the difference between the two and is always a positive number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 21:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209979#M64762</guid>
      <dc:creator />
      <dc:date>2011-04-11T21:31:53Z</dc:date>
    </item>
    <item>
      <title>Comparing Two Values to get the difference</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209980#M64763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give it a try with (A&amp;gt;B)*(A-B)&lt;BR /&gt;should end with 0 for negative differences.&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 21:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209980#M64763</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-04-11T21:34:37Z</dc:date>
    </item>
    <item>
      <title>Comparing Two Values to get the difference</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209981#M64764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I apologize for not being clear in my original post. I am looking for the variation between the two numbers, I do not want any values to be changed to zeros.&lt;/P&gt;&lt;P&gt;For example if the book quantity is 20 and the counted quantity is 30 I want it to produce the number 10&lt;/P&gt;&lt;P&gt;and if the book quantity is 20 and the counted quantity is 10 I want it to produce the number 10 also.&lt;/P&gt;&lt;P&gt;I was wondering if this is possible without an If statement? Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 21:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209981#M64764</guid>
      <dc:creator />
      <dc:date>2011-04-11T21:44:33Z</dc:date>
    </item>
    <item>
      <title>Comparing Two Values to get the difference</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209982#M64765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the function fabs( ) to get the absolute value, always positive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 22:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Two-Values-to-get-the-difference/m-p/209982#M64765</guid>
      <dc:creator />
      <dc:date>2011-04-11T22:41:59Z</dc:date>
    </item>
  </channel>
</rss>

