<?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 How to match positive and negative values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308886#M114045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I have misunderstood your requirements, but I still think my solution should fit your needs (i.e. what you described in your second last post), being selection sensitive. If not, could you update your sample data (e.g. with an additional field) to match better your real situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to filter out transaction ID or customers instead of tha values, I would suggest that you check for balanced accounts, i.e. maybe check for customers where the sum of transactions is still negative, or something like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2012 10:34:55 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-01-30T10:34:55Z</dc:date>
    <item>
      <title>How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308879#M114038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of positive and negative values like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-1000&lt;/P&gt;&lt;P&gt;-900&lt;/P&gt;&lt;P&gt;-800&lt;/P&gt;&lt;P&gt;-700&lt;/P&gt;&lt;P&gt;-600&lt;/P&gt;&lt;P&gt;-500&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;300&lt;/P&gt;&lt;P&gt;400&lt;/P&gt;&lt;P&gt;500&lt;/P&gt;&lt;P&gt;600&lt;/P&gt;&lt;P&gt;800&lt;/P&gt;&lt;P&gt;1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create something able to eventually match the values with same amount (and different sign: -1000,1000) showing the negative ones that doesn't have a positive match....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 14:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308879#M114038</guid>
      <dc:creator />
      <dc:date>2012-01-26T14:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308880#M114039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Francesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bit of a work a round but assuming you have no more than one instance of a positive value and one of a negative value then in the load script place a fabs() function around the field to make all the values positive, then in the application create a list box to containing the field and select 'Show Frequency' under the General Properties tab; all those with a frequency of '1' mustn't have a matching number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple identical positive / negative values it's a little trickier, the oad script may look something like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load Value&lt;/P&gt;&lt;P&gt;From Values.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Negative_Values:&lt;/P&gt;&lt;P&gt;Load Value as Negative_Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fabs(Value) as Value&lt;/P&gt;&lt;P&gt;Resident Data Where Value &amp;lt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Positive_Values:&lt;/P&gt;&lt;P&gt;Load Value as Positive_Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;Resident Data Where Value&amp;gt;=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should then have 2 tables joined on 'Value'. In the app display the fields 'Positive_Values' and 'Negative_Values' in Listboxes, select all values within the 'Negative_Values' Listbox then right-click on the 'Positive_Values' Listbox and 'Select Excluded' - these will be the positive values from your data without a matching negative value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that cracks it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;P&gt;New Qlikview Design Blog: &lt;A href="http://QVDesign.wordpress.com"&gt;http://QVDesign.wordpress.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 15:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308880#M114039</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2012-01-26T15:39:54Z</dc:date>
    </item>
    <item>
      <title>How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308881#M114040</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;You can use this too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Separate negative values, and use the function Sign and EXISTS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_A:&lt;/P&gt;&lt;P&gt;LOAD F1 AS Value INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_Negative_Value:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value AS ValueNegative,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(SIGN(Value) = -1, Value * (-1), Value) AS UnSignValue&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;RESIDENT Table_A&lt;/P&gt;&lt;P&gt;WHERE Sign(Value) = -1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;RESIDENT Table_Negative_Value&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS(Value, UnSignValue);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Table_Negative_Value;&lt;/P&gt;&lt;P&gt;drop table Table_A;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 15:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308881#M114040</guid>
      <dc:creator />
      <dc:date>2012-01-26T15:42:00Z</dc:date>
    </item>
    <item>
      <title>How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308882#M114041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create an additional ABS field with absolute number:&lt;/P&gt;&lt;P&gt;VALUES:&lt;/P&gt;&lt;P&gt;LOAD *, fabs(Values) as ABS INLINE [&lt;/P&gt;&lt;P&gt;Values&lt;/P&gt;&lt;P&gt;-1000&lt;/P&gt;&lt;P&gt;-900&lt;/P&gt;&lt;P&gt;-800&lt;/P&gt;&lt;P&gt;-700&lt;/P&gt;&lt;P&gt;-600&lt;/P&gt;&lt;P&gt;-500&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;300&lt;/P&gt;&lt;P&gt;400&lt;/P&gt;&lt;P&gt;500&lt;/P&gt;&lt;P&gt;600&lt;/P&gt;&lt;P&gt;800&lt;/P&gt;&lt;P&gt;1000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a listbox with a field expression:&lt;/P&gt;&lt;P&gt;=aggr(if(Values&amp;lt;0 and count(distinct Values) =1,Values),ABS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To list the negative Values without matching positive counterpart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 15:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308882#M114041</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-26T15:49:04Z</dc:date>
    </item>
    <item>
      <title>How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308883#M114042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Thanks for the suggestions, it is better to go deeper on the problem description...&lt;/P&gt;&lt;P&gt;I have this list of positive and negative values coming from a major list of transactions where the positive values are revenues and the negative ones are returned goods or credit notes...there are thousands of values coming from filtering a major table data. What I'm looking for is to create a check to match each single negative with it's related positive transaction in order to identify the suspicious negative values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot load singularly those values because they are changing depending on previous filtering (i.e. reseller) and it is possible to have same values for different transactions.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this coul help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 08:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308883#M114042</guid>
      <dc:creator />
      <dc:date>2012-01-30T08:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308884#M114043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Check the attached file&lt;/P&gt;&lt;P&gt;When Count(Fabs(Values))&amp;gt;1 then you have a matching value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 08:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308884#M114043</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2012-01-30T08:36:08Z</dc:date>
    </item>
    <item>
      <title>How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308885#M114044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, unfortunately I cannot open other's documents...could you describe it?&lt;/P&gt;&lt;P&gt;Sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 08:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308885#M114044</guid>
      <dc:creator />
      <dc:date>2012-01-30T08:54:39Z</dc:date>
    </item>
    <item>
      <title>How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308886#M114045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I have misunderstood your requirements, but I still think my solution should fit your needs (i.e. what you described in your second last post), being selection sensitive. If not, could you update your sample data (e.g. with an additional field) to match better your real situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to filter out transaction ID or customers instead of tha values, I would suggest that you check for balanced accounts, i.e. maybe check for customers where the sum of transactions is still negative, or something like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308886#M114045</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-30T10:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308887#M114046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TEMP1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -900&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -800&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -700&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 800&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Positive:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD&lt;/P&gt;&lt;P&gt;Test AS Positive&lt;/P&gt;&lt;P&gt;RESIDENT TEMP1&lt;/P&gt;&lt;P&gt;WHERE Test &amp;gt; 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Negative:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD&lt;/P&gt;&lt;P&gt;FABS(Test) AS Negative&lt;/P&gt;&lt;P&gt;RESIDENT TEMP1&lt;/P&gt;&lt;P&gt;WHERE Test &amp;lt; 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TEMP1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoMatch_Positive:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Positive AS Number&lt;/P&gt;&lt;P&gt;RESIDENT Positive&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS(Negative, Positive)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoMatch_Negative:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD&lt;/P&gt;&lt;P&gt;Negative AS Number&lt;/P&gt;&lt;P&gt;RESIDENT Negative&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS(Positive, Negative)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES Negative, Positive;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;NoMatch:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;RESIDENT NoMatch_Negative&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (NoMatch)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;RESIDENT NoMatch_Positive&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES NoMatch_Negative, NoMatch_Positive;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is for both (positive and negative).&lt;/P&gt;&lt;P&gt;If you want only the negatives, you can skip the last part and only match one table with the other.&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;Reyman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308887#M114046</guid>
      <dc:creator />
      <dc:date>2012-01-30T11:06:38Z</dc:date>
    </item>
    <item>
      <title>How to match positive and negative values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308888#M114047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;If your negative numbers are returns or credit notes then it must be associated with positive numbers on some key like invoice number and date .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;A,B,C,Key,&lt;/P&gt;&lt;P&gt;Amount as Revenue&lt;/P&gt;&lt;P&gt;From ABC.qvd Where Amount&amp;gt;=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Amount as Return&lt;/P&gt;&lt;P&gt;From ABC.qvd Where Amount&amp;lt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Revenue=Fabs(Return),'OK','Problem') as Flag&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-match-positive-and-negative-values/m-p/308888#M114047</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-30T11:21:51Z</dc:date>
    </item>
  </channel>
</rss>

