<?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: Compare data of different tables using text object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570205#M679422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per your question what result you are looking for this tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2014 19:35:43 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-04-28T19:35:43Z</dc:date>
    <item>
      <title>Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570204#M679421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;I need to find out the matching distinct values in col1 of table 1 and table2. I need the result in a text object.Also, if possible I do not wish to create any additional tables in the data model. Can anyone help?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;TABLE1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; COL1, COL2&lt;BR /&gt; A,2&lt;BR /&gt; B,4&lt;BR /&gt; C,5&lt;BR /&gt; D,2&lt;BR /&gt; H,3&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; TABLE2:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; COL1,COL4&lt;BR /&gt; A,4&lt;BR /&gt; B,4&lt;BR /&gt; A,23&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570204#M679421</guid>
      <dc:creator />
      <dc:date>2014-04-28T19:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570205#M679422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per your question what result you are looking for this tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570205#M679422</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-28T19:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570206#M679423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat({&amp;lt;COL2 = {"*"},COL4={"*"} &amp;gt;}DISTINCT COL1,', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570206#M679423</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-28T19:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570207#M679424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you load this two tables then there is common field name &lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;COL1&lt;/SPAN&gt; and then there is association between two tables and you get a primary key field then how you identify the key values is from which table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570207#M679424</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-28T19:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570208#M679425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anticipated result = 2 since values 'A' and 'B' are common in both tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570208#M679425</guid>
      <dc:creator />
      <dc:date>2014-04-28T19:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570209#M679426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I getting the output as 'A,B'. Can I get its count which is '2' instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570209#M679426</guid>
      <dc:creator />
      <dc:date>2014-04-28T19:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570210#M679427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=concat(aggr(if(count(COL2)+count(COL4)&amp;gt;1,COL1),COL1),', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570210#M679427</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-28T19:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570211#M679428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.Can I get a count of this result??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570211#M679428</guid>
      <dc:creator />
      <dc:date>2014-04-28T19:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570212#M679429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Index(concat({&amp;lt;COL2 = {"*"},COL4={"*"} &amp;gt;}DISTINCT COL1,', '),',')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570212#M679429</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-28T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570213#M679430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;simple change concat into count in swuehl expression, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;COL2={'*'},COL4={'*'}&amp;gt;}distinct COL1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570213#M679430</guid>
      <dc:creator />
      <dc:date>2014-04-28T19:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570214#M679431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=len(concat(aggr(if(count(COL2)+count(COL4)&amp;gt;1,1),COL1)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 20:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570214#M679431</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-28T20:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570215#M679432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=Index(concat({&amp;lt;COL2 = {"*"},COL4={"*"} &amp;gt;}DISTINCT COL1,', '),',')&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Sorry, this is not a correct answer, since it returns 2 just because the separator ',' is positioned after the single character 'A'. As soon as one uses longer field values or more than 2 common key values, the answer is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=count({&amp;lt;COL2={'*'},COL4={'*'}&amp;gt;}distinct COL1)&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;&lt;BR /&gt;&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;instead.&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;&lt;BR /&gt;&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;Compare the results with a test data model like:&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;COL1, COL2&lt;/P&gt;&lt;P&gt;A,2&lt;/P&gt;&lt;P&gt;B,4&lt;/P&gt;&lt;P&gt;C,5&lt;/P&gt;&lt;P&gt;D,2&lt;/P&gt;&lt;P&gt;H,3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;COL1,COL4&lt;/P&gt;&lt;P&gt;A,4&lt;/P&gt;&lt;P&gt;B,4&lt;/P&gt;&lt;P&gt;A,23&lt;/P&gt;&lt;P&gt;C,7&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 20:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570215#M679432</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-28T20:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570216#M679433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve is Right...&lt;/P&gt;&lt;P&gt;My Answer is wrong !&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT({&amp;lt;COL2 = {'*'},COL4 = {'*'}&amp;gt;}DISTINCT COL1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570216#M679433</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-28T21:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570217#M679434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like mine answer at &lt;SPAN class="j-post-author"&gt;3:57 PM &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570217#M679434</guid>
      <dc:creator />
      <dc:date>2014-04-28T21:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data of different tables using text object</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570218#M679435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or this ?&lt;/P&gt;&lt;P&gt;Still your's and Steve's answer is best...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SUBSTRINGCOUNT(CONCAT({&amp;lt;COL2 = {'*'},COL4 = {'*'}&amp;gt;}DISTINCT COL1,','),',')+1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-of-different-tables-using-text-object/m-p/570218#M679435</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-28T21:14:46Z</dc:date>
    </item>
  </channel>
</rss>

