<?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: Intersection of two datasets in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402578#M612356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read here this might help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2017 23:55:12 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-09-12T23:55:12Z</dc:date>
    <item>
      <title>Intersection of two datasets in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402577#M612355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Key account managers who visit their clients (accounts) during a period of time);&lt;/LI&gt;&lt;LI&gt;The Key account managers can visit their accounts according to their panels as well as accounts that don't belong to their panels;&lt;/LI&gt;&lt;LI&gt;An Account panel table that contains each account that belongs to each Key account manager (Island Table).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CHALLENGE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I need to calculate a panel coverage that shows the ratio between the accounts that a manager visited (only accounts that belong to its panel) and the manager's panel (Island table).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXAMPLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VISIT TABLE: The manager ID 10 has visited the four accounts listed below.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="148" style="border: 1px solid rgb(0, 0, 0); width: 179px; height: 150px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Manager ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Account ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1005&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACCOUNT PANEL TABLE (Island Table): The manager ID 10 has 4 accounts in his panel according to the table below:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="148" style="border: 1px solid #000000; width: 179px; height: 150px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Manager ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Account ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2002&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FORMULA RULE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Looking at both VISIT and ACCOUNT tables, it's possible to see that the manager 10 visited only two accounts that belong to his panel (1001 and 1002). However, he has four accounts in his panel. Having said that, the formula should be:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Panel Coverage = 2/4 = 50%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means that, even though the manager 10 visited four accounts, only two accounts belong to his panel, so he is covering only 50% of his panel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question is:&lt;/STRONG&gt; Is that possible to do an intersection in set analysis to get this panel? In this ratio, I want that the numerator consider only the accounts that belong to the manager's panel (in this case 2) divided by the number of accounts that the manager has in his personal panel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rubens Rodrigues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402577#M612355</guid>
      <dc:creator>rrodriguesrr82</dc:creator>
      <dc:date>2017-09-12T23:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of two datasets in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402578#M612356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read here this might help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402578#M612356</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-09-12T23:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of two datasets in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402579#M612357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Visit:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ManagerID, AccountID&lt;/P&gt;&lt;P&gt;10, 1001&lt;/P&gt;&lt;P&gt;10, 1002&lt;/P&gt;&lt;P&gt;10, 1003&lt;/P&gt;&lt;P&gt;10, 1005&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Panel:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ManagerID, PanelAccountID&lt;/P&gt;&lt;P&gt;10, 1001&lt;/P&gt;&lt;P&gt;10, 1002&lt;/P&gt;&lt;P&gt;10, 2001&lt;/P&gt;&lt;P&gt;10, 2002&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Straight table add&lt;/P&gt;&lt;P&gt;Dim: ManagerID&lt;/P&gt;&lt;P&gt;Expr: = Count({&amp;lt; AccountID = P(AccountID)&amp;gt; * &amp;lt;AccountID = P(PanelAccountID)&amp;gt; } AccountID)/Count(TOTAL AccountID)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176301_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the Number Settings in Number tab of Chart Properties. Or use Num() function for formatting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 00:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402579#M612357</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-09-13T00:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of two datasets in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402580#M612358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-of-two-datasets-in-Set-Analysis/m-p/1402580#M612358</guid>
      <dc:creator>rrodriguesrr82</dc:creator>
      <dc:date>2017-10-26T20:45:33Z</dc:date>
    </item>
  </channel>
</rss>

