<?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: Join with multipe OR criterias in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878943#M660885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14285555990319732 jive_text_macro" jivemacro_uid="_14285555990319732"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load *,DepthSN As DepthSN_New Inline [&lt;/P&gt;
&lt;P&gt;Producer, DepthSN&lt;/P&gt;
&lt;P&gt;p1,aaa&lt;/P&gt;
&lt;P&gt;p2,bbb&lt;/P&gt;
&lt;P&gt;p3,ccc ];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Depth:&lt;/P&gt;
&lt;P&gt;Load *,Pick(IterNo(),Depth_lvl_1,Depth_lvl_2,Depth_lvl_3) As DepthSN_New While IterNo() &amp;lt;= 3;&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;/P&gt;
&lt;P&gt;Depth_lvl_1,Depth_lvl_2,Depth_lvl_3&lt;/P&gt;
&lt;P&gt;aaa,aaa1,aaa2&lt;/P&gt;
&lt;P&gt;bbb1,bbb,bbb2&lt;/P&gt;
&lt;P&gt;ccc1,ccc2,ccc ];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 05:09:28 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-04-09T05:09:28Z</dc:date>
    <item>
      <title>Join with multipe OR criterias</title>
      <link>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878942#M660884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following table structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Table &lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;Columns :&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Producer, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;DepthSN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px; text-decoration: underline;"&gt;Table &lt;STRONG&gt;Depth&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;Columns :&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Depth_lvl_1,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Depth_lvl_2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;Depth_lvl_3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;How should we join this tables, so that DepthSN will be related to all levels (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Depth_lvl_1 ...&lt;/SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;So if we select &lt;SPAN style="font-size: 13.3333330154419px;"&gt;DepthSN and it exits only in &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Depth_lvl_2 the whole row of table depth with the matched DepthSN will be presented.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;I think it should be something like join&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;DepthSN = &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Depth_lvl_1 OR&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Depth_lvl_2 OR &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Depth_lvl_3 ??? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;Please help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 15:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878942#M660884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T15:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Join with multipe OR criterias</title>
      <link>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878943#M660885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14285555990319732 jive_text_macro" jivemacro_uid="_14285555990319732"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load *,DepthSN As DepthSN_New Inline [&lt;/P&gt;
&lt;P&gt;Producer, DepthSN&lt;/P&gt;
&lt;P&gt;p1,aaa&lt;/P&gt;
&lt;P&gt;p2,bbb&lt;/P&gt;
&lt;P&gt;p3,ccc ];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Depth:&lt;/P&gt;
&lt;P&gt;Load *,Pick(IterNo(),Depth_lvl_1,Depth_lvl_2,Depth_lvl_3) As DepthSN_New While IterNo() &amp;lt;= 3;&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;/P&gt;
&lt;P&gt;Depth_lvl_1,Depth_lvl_2,Depth_lvl_3&lt;/P&gt;
&lt;P&gt;aaa,aaa1,aaa2&lt;/P&gt;
&lt;P&gt;bbb1,bbb,bbb2&lt;/P&gt;
&lt;P&gt;ccc1,ccc2,ccc ];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 05:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878943#M660885</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-09T05:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Join with multipe OR criterias</title>
      <link>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878944#M660886</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;You will need a generic link table, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Id,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Producer, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Quantity,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; DepthSN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Id, Producer, Quantity, DepthSN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1, AA, 22, L1A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 2, BB, 21, L1B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 2, CC, 23, L1C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 3, DD, 24, L2A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 4, BB, 20, L2B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;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amp;nbsp; Depth_lvl_3 As DepthSN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Depth;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Fields Depth_lvl_1,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Depth_lvl_2,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Depth_lvl_3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM Depth;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the LOADs for Data and Depth with your actual load statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 06:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878944#M660886</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-04-09T06:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Join with multipe OR criterias</title>
      <link>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878945#M660887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thank you Anbu and Jonathan!&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Both solutions worked.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Anbus solution creates a lot of additional data as the &lt;STRONG&gt;Data&lt;/STRONG&gt; table is &lt;STRONG&gt;multiplied&lt;/STRONG&gt; by the &lt;STRONG&gt;number of Depth level&lt;/STRONG&gt;s of the &lt;STRONG&gt;Depth&lt;/STRONG&gt; table.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I am not sure if this is also happening, when using Jonathans solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-with-multipe-OR-criterias/m-p/878945#M660887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-13T15:23:41Z</dc:date>
    </item>
  </channel>
</rss>

