<?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: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494737#M481175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also, how would I add restrictions to the expression? (e.g. only sum if CustomerType={'Nice','Justin Bieber Fan'} ) ? &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, 22 Oct 2013 08:33:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-22T08:33:07Z</dc:date>
    <item>
      <title>How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494730#M481168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a model where the same information about the population in the model comes from two fields from different sources (tables). To make it easier, let's say I have a list of SKUs for clothing articles, and each can be a S, M, L in size, and that I get the sizes from manufacturing data and from accounting data.&lt;/P&gt;&lt;P&gt;To validate my data, I want to create a table where only the records where the size values don't match.&lt;/P&gt;&lt;P&gt;So, I thought I'd try to include in the expression something like:&lt;/P&gt;&lt;P&gt;[Size from manufacturing]-=[Size from accounting]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that didn't do the trick......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Oct 2013 09:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494730#M481168</guid>
      <dc:creator />
      <dc:date>2013-10-20T09:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494731#M481169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be simply like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Size from manufacturing] &amp;lt;&amp;gt; [Size from accounting], AmountField))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, // using set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Size from manufacturing]={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Size from manufacturing]&lt;/SPAN&gt;&amp;lt;&amp;gt;[Size from accounting]"}&lt;/SPAN&gt;&amp;gt;} AmountField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Oct 2013 15:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494731#M481169</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-20T15:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494732#M481170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An option is to create a flag for this in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Oct 2013 17:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494732#M481170</guid>
      <dc:creator>srchilukoori</dc:creator>
      <dc:date>2013-10-20T17:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494733#M481171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please 'read' the second option ?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 07:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494733#M481171</guid>
      <dc:creator />
      <dc:date>2013-10-22T07:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494734#M481172</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;do you want do this in script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do it like:&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;F1 AS [Size from manufacturing],&lt;/P&gt;&lt;P&gt;F2 AS [Size from accounting]&lt;/P&gt;&lt;P&gt;RESIDENT INPUT WHERE (F1&amp;lt;&amp;gt;F2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- PS -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494734#M481172</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-10-22T08:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494735#M481173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; i think it's better not to do it in the script in my case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494735#M481173</guid>
      <dc:creator />
      <dc:date>2013-10-22T08:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494736#M481174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seocnd option uses set analysis. The SET part "&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Size from manufacturing]={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Size from manufacturing]&lt;/SPAN&gt;&amp;lt;&amp;gt;[Size from accounting]"}&amp;gt; is being used like flagging in the script. That is, if the condition (A&amp;lt;&amp;gt;B) satisfies there would be a 'True'(-1) flag for that row, and then those flaggged rows wold be taken into consideration of calculation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;More like the first one, only difference is that, the second one is expected to be a bit faster.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494736#M481174</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-22T08:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494737#M481175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also, how would I add restrictions to the expression? (e.g. only sum if CustomerType={'Nice','Justin Bieber Fan'} ) ? &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, 22 Oct 2013 08:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494737#M481175</guid>
      <dc:creator />
      <dc:date>2013-10-22T08:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494738#M481176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Size from manufacturing]={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Size from manufacturing]&lt;/SPAN&gt;&amp;lt;&amp;gt;[Size from accounting]"}, CustomerType={'Nice','Justin Bieber Fan'}&lt;/SPAN&gt;&amp;gt;} AmountField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494738#M481176</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-22T08:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494739#M481177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;something like this ins traight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(match(F1,F2),null(),F1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Does the set expression work? In my case it didn't work...??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494739#M481177</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-10-22T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494740#M481178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pardon me for asking naaive questions, but the part I don't get is the &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Size from manufacturing]=...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I mean if the condition gives (-1), what does it mean to limit the set to X=(-1) ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494740#M481178</guid>
      <dc:creator />
      <dc:date>2013-10-22T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494741#M481179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact it's a very genuine question that might come up in minds of many of us while we see such SET expression. One thing we have to understand that it''s not like searching '-1' value in that field. It's like 'Advanced Search'; like you can do in a list box search. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=sum(Sales)&amp;gt;sum(Budget)&lt;/P&gt;
&lt;P&gt;if e.g. invoked from a list box containing the field Salesman, the search would return all salesmen&lt;/P&gt;
&lt;P&gt;with an associated sales value larger than their associated Budget.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hope this clarifies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494741#M481179</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-22T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a condition to an expression to only include rows where the values of 2 similar fields don't match?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494742#M481180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huh. Very interesting. Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 09:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-add-a-condition-to-an-expression-to-only-include-rows/m-p/494742#M481180</guid>
      <dc:creator />
      <dc:date>2013-10-22T09:01:33Z</dc:date>
    </item>
  </channel>
</rss>

