<?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 Syntax for 2 Inner Joins on 2 Group bys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-for-2-Inner-Joins-on-2-Group-bys/m-p/1056236#M940053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SourceHi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the same source table to find the maximum for 2 different groups and pull the distinct ID's for them&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;So the max ID of the order number and the Max Cust ID of the customer number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then I will have 1 table of both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where am I going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Cust-ID,&lt;/P&gt;&lt;P&gt;order_number,&lt;/P&gt;&lt;P&gt;cust_number&lt;/P&gt;&lt;P&gt;FROM $(File)&lt;/P&gt;&lt;P&gt;inner join (Source1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[ID],&lt;/P&gt;&lt;P&gt;MAX(order_number) as [ODnum]&lt;/P&gt;&lt;P&gt;resident (Source1)&lt;/P&gt;&lt;P&gt;group by&lt;/P&gt;&lt;P&gt;[ID];&lt;/P&gt;&lt;P&gt;inner join (Source1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[cust-ID],&lt;/P&gt;&lt;P&gt;MAX(cust_number) as [Cust_num]&lt;/P&gt;&lt;P&gt;resident (Source1)&lt;/P&gt;&lt;P&gt;group by&lt;/P&gt;&lt;P&gt;[cust-ID];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2016 14:55:35 GMT</pubDate>
    <dc:creator>tinkerz1</dc:creator>
    <dc:date>2016-01-22T14:55:35Z</dc:date>
    <item>
      <title>Syntax for 2 Inner Joins on 2 Group bys</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-2-Inner-Joins-on-2-Group-bys/m-p/1056236#M940053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SourceHi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the same source table to find the maximum for 2 different groups and pull the distinct ID's for them&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;So the max ID of the order number and the Max Cust ID of the customer number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then I will have 1 table of both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where am I going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Cust-ID,&lt;/P&gt;&lt;P&gt;order_number,&lt;/P&gt;&lt;P&gt;cust_number&lt;/P&gt;&lt;P&gt;FROM $(File)&lt;/P&gt;&lt;P&gt;inner join (Source1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[ID],&lt;/P&gt;&lt;P&gt;MAX(order_number) as [ODnum]&lt;/P&gt;&lt;P&gt;resident (Source1)&lt;/P&gt;&lt;P&gt;group by&lt;/P&gt;&lt;P&gt;[ID];&lt;/P&gt;&lt;P&gt;inner join (Source1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[cust-ID],&lt;/P&gt;&lt;P&gt;MAX(cust_number) as [Cust_num]&lt;/P&gt;&lt;P&gt;resident (Source1)&lt;/P&gt;&lt;P&gt;group by&lt;/P&gt;&lt;P&gt;[cust-ID];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 14:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-2-Inner-Joins-on-2-Group-bys/m-p/1056236#M940053</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2016-01-22T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for 2 Inner Joins on 2 Group bys</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-2-Inner-Joins-on-2-Group-bys/m-p/1056237#M940054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Left Join instead of Inner Join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 15:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-2-Inner-Joins-on-2-Group-bys/m-p/1056237#M940054</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-01-22T15:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for 2 Inner Joins on 2 Group bys</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-2-Inner-Joins-on-2-Group-bys/m-p/1056238#M940055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was just a typo in my join field that threw the exception&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 15:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-2-Inner-Joins-on-2-Group-bys/m-p/1056238#M940055</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2016-01-22T15:45:56Z</dc:date>
    </item>
  </channel>
</rss>

