<?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 Compare two columns from different tables in a condition in Qlik View in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-columns-from-different-tables-in-a-condition-in-Qlik/m-p/1112309#M367724</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;I need to get current day's data where Table1.Column1_value &amp;gt; Table2.Column_2_Value.&lt;/P&gt;&lt;P&gt;Table2.Column_2_Value is a threshold value corresponding to column1 in Table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with set analysis &lt;/P&gt;&lt;P&gt;Below mentioned set analysis gives the data for Today's date&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DATE= {"$(=Date(today(),'YYYY-MM-DD'))"}&amp;gt;}Sales) &lt;/P&gt;&lt;P&gt;But I can't add a field to field comparison inside&amp;nbsp; the above mentioned set analysis&lt;/P&gt;&lt;P&gt;I need a formula that gives the same data as the following query&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Select Sum(Sales) from Table1 join Table 2 on (...)&lt;/P&gt;&lt;P&gt;Where Date=Today() and Table1.Column1_value&amp;gt; Table2.Column_2_Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 07:47:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-02T07:47:58Z</dc:date>
    <item>
      <title>Compare two columns from different tables in a condition in Qlik View</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-columns-from-different-tables-in-a-condition-in-Qlik/m-p/1112309#M367724</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;I need to get current day's data where Table1.Column1_value &amp;gt; Table2.Column_2_Value.&lt;/P&gt;&lt;P&gt;Table2.Column_2_Value is a threshold value corresponding to column1 in Table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with set analysis &lt;/P&gt;&lt;P&gt;Below mentioned set analysis gives the data for Today's date&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DATE= {"$(=Date(today(),'YYYY-MM-DD'))"}&amp;gt;}Sales) &lt;/P&gt;&lt;P&gt;But I can't add a field to field comparison inside&amp;nbsp; the above mentioned set analysis&lt;/P&gt;&lt;P&gt;I need a formula that gives the same data as the following query&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Select Sum(Sales) from Table1 join Table 2 on (...)&lt;/P&gt;&lt;P&gt;Where Date=Today() and Table1.Column1_value&amp;gt; Table2.Column_2_Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-columns-from-different-tables-in-a-condition-in-Qlik/m-p/1112309#M367724</guid>
      <dc:creator />
      <dc:date>2016-06-02T07:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two columns from different tables in a condition in Qlik View</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-columns-from-different-tables-in-a-condition-in-Qlik/m-p/1112310#M367725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you need this in a chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this might not perform very well on large data sets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( If(Date = Today() and Table1.Column1_value &amp;gt; Table2.Column_2_Value, Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are only able to replace this with a set expression if you find a key that returns for each combination of your tableX columnY values a unique answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 09:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-columns-from-different-tables-in-a-condition-in-Qlik/m-p/1112310#M367725</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-02T09:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two columns from different tables in a condition in Qlik View</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-columns-from-different-tables-in-a-condition-in-Qlik/m-p/1112311#M367726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl. Great help&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-columns-from-different-tables-in-a-condition-in-Qlik/m-p/1112311#M367726</guid>
      <dc:creator />
      <dc:date>2016-06-02T12:11:48Z</dc:date>
    </item>
  </channel>
</rss>

