<?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 exclude values where the % difference is zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272377#M500046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel, actually I need to screen the % result rather than the field A &amp;amp; B values. For example in the result set below I'd only want to see the middle row;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp; B&amp;nbsp; % diff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;55 55 0%&lt;/P&gt;&lt;P&gt;56 55 2%&lt;/P&gt;&lt;P&gt;45 45 0%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm diplaying the results in a simple table. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 11:09:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-08T11:09:51Z</dc:date>
    <item>
      <title>How to exclude values where the % difference is zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272374#M500043</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'm a newbie so please bear with me ( I have searched to see if I could find an asnwer to this from the existing discussions ). I have a table where I calcaulate the % differences between two fields using a simple expression. What I'd like to do though is use either an expression, or setting in the table box that means ONLY those rows where the % difference between Field A and Field B is &amp;gt; 0%. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's for a reconciliation of 500,000 records where I only want to see those that don't match! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 10:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272374#M500043</guid>
      <dc:creator />
      <dc:date>2011-06-08T10:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude values where the % difference is zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272375#M500044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tim and welcome to QlikView and the Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several ways to do that, and I'm assuming you are doing the calculation in a chart. If that's the case, then try with the following expression and adapt it to your own fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt; FieldA = {'&amp;gt;0'}, FieldB = {'&amp;gt;0'} &amp;gt;} Amount)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will return the aggregation of Amount per value in the dimension where FieldA and FieldB are greater than zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 11:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272375#M500044</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-08T11:04:39Z</dc:date>
    </item>
    <item>
      <title>How to exclude values where the % difference is zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272376#M500045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel, actually I need to screen the % result rather than the field A &amp;amp; B values. For example in the result set below I'd only want to see the middle row;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp; B&amp;nbsp; % diff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;55 55 0%&lt;/P&gt;&lt;P&gt;56 55 2%&lt;/P&gt;&lt;P&gt;45 45 0%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm diplaying the results in a simple table. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 11:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272376#M500045</guid>
      <dc:creator />
      <dc:date>2011-06-08T11:08:57Z</dc:date>
    </item>
    <item>
      <title>How to exclude values where the % difference is zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272377#M500046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel, actually I need to screen the % result rather than the field A &amp;amp; B values. For example in the result set below I'd only want to see the middle row;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp; B&amp;nbsp; % diff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;55 55 0%&lt;/P&gt;&lt;P&gt;56 55 2%&lt;/P&gt;&lt;P&gt;45 45 0%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm diplaying the results in a simple table. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 11:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272377#M500046</guid>
      <dc:creator />
      <dc:date>2011-06-08T11:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude values where the % difference is zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272378#M500047</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;Assuming the following data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, FieldA, FieldB&lt;/P&gt;&lt;P&gt;A, 1000, 1200&lt;/P&gt;&lt;P&gt;B, 200, 190&lt;/P&gt;&lt;P&gt;C, 1000, 1000&lt;/P&gt;&lt;P&gt;D, 400, 230&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a new chart, straight table, use ID, FieldA and FieldB as dimensions and the following as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt; ID = {"=(FieldA - FieldB) &amp;gt; 0"} &amp;gt;} FieldA / FieldB)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return only two values (B and D).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not replicating the logic of your data, of course, but you can see how it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 12:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272378#M500047</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-08T12:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude values where the % difference is zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272379#M500048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha, I see, like the logic, exclude rows where the Field values 1 &amp;amp; 2 are equal in the first part of hte expression then only generate the % result for those where there's a difference. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 12:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-values-where-the-difference-is-zero/m-p/272379#M500048</guid>
      <dc:creator />
      <dc:date>2011-06-08T12:53:13Z</dc:date>
    </item>
  </channel>
</rss>

