<?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: Function To Compare Values of two ID's from two different Datasets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Function-To-Compare-Values-of-two-ID-s-from-two-different/m-p/474517#M554023</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;Try using Mapping Load like this&lt;/P&gt;&lt;P&gt;SalesEmployeeMap:&lt;BR /&gt;MAPPING LOAD&amp;nbsp; &lt;BR /&gt;SalesEmployeeID,&lt;BR /&gt;SalesEmployeeID AS Status&lt;BR /&gt;INLINE [&lt;BR /&gt;SalesEmployeeID&lt;BR /&gt;1002&lt;BR /&gt;1003&lt;BR /&gt;1004&lt;BR /&gt;1005&lt;BR /&gt;1006];&lt;/P&gt;&lt;P&gt;SalesEmployee:&lt;BR /&gt;LOAD&amp;nbsp; &lt;BR /&gt;SalesEmployeeID&lt;BR /&gt;INLINE [&lt;BR /&gt;SalesEmployeeID&lt;BR /&gt;1002&lt;BR /&gt;1003&lt;BR /&gt;1004&lt;BR /&gt;1005&lt;BR /&gt;1006];&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;MarketingEmployee:&lt;BR /&gt;LOAD &lt;BR /&gt;MarketingEmployeeID,&lt;BR /&gt;ApplyMap('SalesEmployeeMap', MarketingEmployeeID, 'N/A') AS IsExists&lt;BR /&gt;INLINE [&lt;BR /&gt;MarketingEmployeeID&lt;BR /&gt;1004&lt;BR /&gt;1005&lt;BR /&gt;1006&lt;BR /&gt;1007&lt;BR /&gt;1008&lt;BR /&gt;1010];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use IsExists as a List box which contains all the intersecting Ids..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 01:55:44 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-09-25T01:55:44Z</dc:date>
    <item>
      <title>Function To Compare Values of two ID's from two different Datasets</title>
      <link>https://community.qlik.com/t5/QlikView/Function-To-Compare-Values-of-two-ID-s-from-two-different/m-p/474515#M554021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a situation where I need to get the Intersection of values from two datasets where no fields is common, however the some of the Values in ID's are common for the two datasets. Is there any specific function or method that any one can think of to get the Intersecting values to list out in a straight Table. I tried using Match, but not sure if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesEmployeeID&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1003&lt;/P&gt;&lt;P&gt;1004&lt;/P&gt;&lt;P&gt;1005&lt;/P&gt;&lt;P&gt;1006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MarketingEmployeeID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1004&lt;/P&gt;&lt;P&gt;1005&lt;/P&gt;&lt;P&gt;1006&lt;/P&gt;&lt;P&gt;1007&lt;/P&gt;&lt;P&gt;1008&lt;/P&gt;&lt;P&gt;1010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: I cannot Join the Tables at the Script level, as I will be getting ambiguous results due to the Loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 21:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-To-Compare-Values-of-two-ID-s-from-two-different/m-p/474515#M554021</guid>
      <dc:creator />
      <dc:date>2013-09-24T21:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function To Compare Values of two ID's from two different Datasets</title>
      <link>https://community.qlik.com/t5/QlikView/Function-To-Compare-Values-of-two-ID-s-from-two-different/m-p/474516#M554022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about creating an extra field in the Marketing and Sales tables that would indicate whether the employee is also in the other table. Then, you can filter out the employees as you wish using the IsAlsoInSales or IsAlsoInMarketing field. Here would be an example script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesEmployees:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;SalesEmployeeID&lt;/P&gt;&lt;P&gt;1002&lt;/P&gt;&lt;P&gt;1003&lt;/P&gt;&lt;P&gt;1004&lt;/P&gt;&lt;P&gt;1005&lt;/P&gt;&lt;P&gt;1006];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MarketingEmployees:&lt;/P&gt;&lt;P&gt;LOAD *, If(Exists(SalesEmployeeID, MarketingEmployeeID), 1, 0) as IsAlsoInSales;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;MarketingEmployeeID&lt;/P&gt;&lt;P&gt;1004&lt;/P&gt;&lt;P&gt;1005&lt;/P&gt;&lt;P&gt;1006&lt;/P&gt;&lt;P&gt;1007&lt;/P&gt;&lt;P&gt;1008&lt;/P&gt;&lt;P&gt;1010];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(SalesEmployees)&lt;/P&gt;&lt;P&gt;LOAD SalesEmployeeID, If(Exists(MarketingEmployeeID, SalesEmployeeID), 1, 0) as IsAlsoInMarketing&lt;/P&gt;&lt;P&gt;Resident SalesEmployees;&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;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 22:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-To-Compare-Values-of-two-ID-s-from-two-different/m-p/474516#M554022</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2013-09-24T22:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function To Compare Values of two ID's from two different Datasets</title>
      <link>https://community.qlik.com/t5/QlikView/Function-To-Compare-Values-of-two-ID-s-from-two-different/m-p/474517#M554023</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;Try using Mapping Load like this&lt;/P&gt;&lt;P&gt;SalesEmployeeMap:&lt;BR /&gt;MAPPING LOAD&amp;nbsp; &lt;BR /&gt;SalesEmployeeID,&lt;BR /&gt;SalesEmployeeID AS Status&lt;BR /&gt;INLINE [&lt;BR /&gt;SalesEmployeeID&lt;BR /&gt;1002&lt;BR /&gt;1003&lt;BR /&gt;1004&lt;BR /&gt;1005&lt;BR /&gt;1006];&lt;/P&gt;&lt;P&gt;SalesEmployee:&lt;BR /&gt;LOAD&amp;nbsp; &lt;BR /&gt;SalesEmployeeID&lt;BR /&gt;INLINE [&lt;BR /&gt;SalesEmployeeID&lt;BR /&gt;1002&lt;BR /&gt;1003&lt;BR /&gt;1004&lt;BR /&gt;1005&lt;BR /&gt;1006];&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;MarketingEmployee:&lt;BR /&gt;LOAD &lt;BR /&gt;MarketingEmployeeID,&lt;BR /&gt;ApplyMap('SalesEmployeeMap', MarketingEmployeeID, 'N/A') AS IsExists&lt;BR /&gt;INLINE [&lt;BR /&gt;MarketingEmployeeID&lt;BR /&gt;1004&lt;BR /&gt;1005&lt;BR /&gt;1006&lt;BR /&gt;1007&lt;BR /&gt;1008&lt;BR /&gt;1010];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use IsExists as a List box which contains all the intersecting Ids..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 01:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-To-Compare-Values-of-two-ID-s-from-two-different/m-p/474517#M554023</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-09-25T01:55:44Z</dc:date>
    </item>
  </channel>
</rss>

