<?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: Toggle Select Condition Across Two Tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058335#M924385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing sample data, it is a bit difficult. However, I will give a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe create two other tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14598789673841430" jivemacro_uid="_14598789673841430" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;[Person Universe]:&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PersonCode,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table1' As Source&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Resident [Table 1];&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PersonCode,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table2' As Source&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Resident [Table 2];&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If(PersonCode = Previous(PersonCode) and Source &amp;lt;&amp;gt; Previous(Source), 'Exist in ' &amp;amp; Source &amp;amp; '|' &amp;amp; Previous(Source)) As Flag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PersonCode&lt;/P&gt;
&lt;P&gt;Resident [Person Universe]&lt;/P&gt;
&lt;P&gt;Order By PersonCode, Source;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table [Person Universe];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, Flag field can indicate those persons who are in both tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 17:59:36 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2016-04-05T17:59:36Z</dc:date>
    <item>
      <title>Toggle Select Condition Across Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058334#M924384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading two tables into my QlikView Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 is a table of Goods Received positions.&amp;nbsp; Each position has the identity code of the person who performed the goods receipt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 is a table of purchase order positions that auto-joins to the Goods received table on purchase order and position. &lt;/P&gt;&lt;P&gt;Again each position has the code of the person who raised the position as a purchase order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to limit the displayed data in a Chart/Straight Table to just the rows where Table1.PersonCode = Table2.PersonCode&lt;/P&gt;&lt;P&gt;by clicking a button or making a listbox selection but I can't see how to do it without joining the two tables into one and loading the joined table with an 'IF' condition on the load to build an indicator field for selection - which seems poor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058334#M924384</guid>
      <dc:creator>rebelfox</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Select Condition Across Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058335#M924385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing sample data, it is a bit difficult. However, I will give a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe create two other tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14598789673841430" jivemacro_uid="_14598789673841430" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;[Person Universe]:&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PersonCode,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table1' As Source&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Resident [Table 1];&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PersonCode,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table2' As Source&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Resident [Table 2];&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If(PersonCode = Previous(PersonCode) and Source &amp;lt;&amp;gt; Previous(Source), 'Exist in ' &amp;amp; Source &amp;amp; '|' &amp;amp; Previous(Source)) As Flag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PersonCode&lt;/P&gt;
&lt;P&gt;Resident [Person Universe]&lt;/P&gt;
&lt;P&gt;Order By PersonCode, Source;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table [Person Universe];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, Flag field can indicate those persons who are in both tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058335#M924385</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-04-05T17:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Select Condition Across Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058336#M924386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be some data sample would help us to solve your issue. please let us know if Sinan's solution solved your purpose. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058336#M924386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-05T18:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Select Condition Across Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058337#M924387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty much what I was trying to avoid but had to go with it as I can't figure an alternative way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 08:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-Select-Condition-Across-Two-Tables/m-p/1058337#M924387</guid>
      <dc:creator>rebelfox</dc:creator>
      <dc:date>2016-04-06T08:48:53Z</dc:date>
    </item>
  </channel>
</rss>

