<?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: Re: Common Parts (records) among different databases, but from a same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623059#M229306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({&amp;lt;ID=p({&amp;lt;Flag={'A'}&amp;gt;}ID)*p({&amp;lt;Flag={'B'}&amp;gt;}ID)*p({&amp;lt;Flag={'A'}&amp;gt;}ID)&amp;gt;}Amt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This set sums Amt for those IDs where Flag=A and Flag=B and Flag=C. '*' is used in set as INTERSECTION , i.e -'and' . In other words, IDs would be taken into consideration that are there in all (A,B,C) types of flags.&lt;/P&gt;&lt;P&gt;In the sample data:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Load * Inline [&lt;/P&gt;
&lt;P&gt;ID, Amt, Flag&lt;/P&gt;
&lt;P&gt;1, 100, A&lt;/P&gt;
&lt;P&gt;2, 200, A&lt;/P&gt;
&lt;P&gt;3, 300, A&lt;/P&gt;
&lt;P&gt;2, 400, B&lt;/P&gt;
&lt;P&gt;1, 500, C&lt;/P&gt;
&lt;P&gt;2, 600, C]&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The only ID that is there in all flag types is &lt;STRONG&gt;2. &lt;/STRONG&gt;Now the expression sums the Amt for ID -2, and they are:&lt;/P&gt;&lt;P&gt;2, 200, A&lt;/P&gt;&lt;P&gt;2, 400, B&lt;/P&gt;&lt;P&gt;2, 600, C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence the sum =1200.&lt;/P&gt;&lt;P&gt;This is how you get your 'Common Parts (records)'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 10:50:02 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-03-26T10:50:02Z</dc:date>
    <item>
      <title>Common Parts (records) among different databases, but from a same table</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623054#M229301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 14 databases, let say A,B,C....N. I have a table called PartTable which is there in all the databases (same table structure) but with different data. It has a field called Part_No.&lt;/P&gt;&lt;P&gt;I have stored this table into a QVD into 14 different folders i.e. A,B,C,....N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in QV,&lt;STRONG&gt; I want to show the common parts from Part_No from all 14 databases (folders).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also, I need to comapre the Part Nos for 'A' with rest of the Databases i.e from B to N.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do a scripting for this? Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 06:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623054#M229301</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2014-03-26T06:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Common Parts (records) among different databases, but from a same table</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623055#M229302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While loading all these tables use a &lt;STRONG&gt;flag&lt;/STRONG&gt;&amp;nbsp; before the get concatenated like:&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'A' as Flag&lt;/P&gt;&lt;P&gt;From A.qvd (qvd);&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'B' as Flag&lt;/P&gt;&lt;P&gt;From B.qvd (qvd);&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now all data in a single table, you can do the analysis at the front end using set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 07:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623055#M229302</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-26T07:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Common Parts (records) among different databases, but from a same table</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623056#M229303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have loaded the data as suggested. Also, Flag is now available in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please show me some examples, how to use the Flag in Set Analysis to do the comparison?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623056#M229303</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2014-03-26T09:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Common Parts (records) among different databases, but from a same table</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623057#M229304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA. Hope that helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623057#M229304</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-26T09:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Common Parts (records) among different databases, but from a same table</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623058#M229305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you once again Tresesco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still I am not sure what the expression is doing. Basic Set Analysis I know, but I am not much into the p() and e() of Set Analysis.&lt;/P&gt;&lt;P&gt;Could you please clarify, what information we are getting from the expression results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623058#M229305</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2014-03-26T10:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Common Parts (records) among different databases, but from a same table</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623059#M229306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({&amp;lt;ID=p({&amp;lt;Flag={'A'}&amp;gt;}ID)*p({&amp;lt;Flag={'B'}&amp;gt;}ID)*p({&amp;lt;Flag={'A'}&amp;gt;}ID)&amp;gt;}Amt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This set sums Amt for those IDs where Flag=A and Flag=B and Flag=C. '*' is used in set as INTERSECTION , i.e -'and' . In other words, IDs would be taken into consideration that are there in all (A,B,C) types of flags.&lt;/P&gt;&lt;P&gt;In the sample data:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Load * Inline [&lt;/P&gt;
&lt;P&gt;ID, Amt, Flag&lt;/P&gt;
&lt;P&gt;1, 100, A&lt;/P&gt;
&lt;P&gt;2, 200, A&lt;/P&gt;
&lt;P&gt;3, 300, A&lt;/P&gt;
&lt;P&gt;2, 400, B&lt;/P&gt;
&lt;P&gt;1, 500, C&lt;/P&gt;
&lt;P&gt;2, 600, C]&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The only ID that is there in all flag types is &lt;STRONG&gt;2. &lt;/STRONG&gt;Now the expression sums the Amt for ID -2, and they are:&lt;/P&gt;&lt;P&gt;2, 200, A&lt;/P&gt;&lt;P&gt;2, 400, B&lt;/P&gt;&lt;P&gt;2, 600, C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence the sum =1200.&lt;/P&gt;&lt;P&gt;This is how you get your 'Common Parts (records)'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623059#M229306</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-26T10:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Common Parts (records) among different databases, but from a same table</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623060#M229307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great help Tresesco. Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am more clear into this now.&lt;/P&gt;&lt;P&gt;Cheers and have a good day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Parts-records-among-different-databases-but-from-a-same/m-p/623060#M229307</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2014-03-26T10:57:40Z</dc:date>
    </item>
  </channel>
</rss>

