<?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: group by with Resident table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929192#M321348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because auto concatenate, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;temp_TABLE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;user_id,&lt;/P&gt;&lt;P&gt;sales_amount,&lt;/P&gt;&lt;P&gt;order_id&lt;/P&gt;&lt;P&gt;Resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (temp_TABLE)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; user_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Department&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp; table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 16:23:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-03T16:23:36Z</dc:date>
    <item>
      <title>group by with Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929188#M321344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;I want to create a new field based on two tables.&lt;/P&gt;&lt;P&gt;during script load,&amp;nbsp; first table created (temp_TABLE) but when second table starts (new_table) the script fails&lt;/P&gt;&lt;P&gt;also tried it with Concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_TABLE:&lt;BR /&gt;LOAD&lt;BR /&gt;user_id,&lt;BR /&gt;sales_amount,&lt;BR /&gt;order_id&lt;/P&gt;&lt;P&gt;Resident table1;&lt;/P&gt;&lt;P&gt;Left Join (temp_TABLE)&lt;BR /&gt;LOAD&lt;BR /&gt;Distinct&lt;BR /&gt;user_id,&lt;BR /&gt;Department&lt;BR /&gt;Resident&lt;BR /&gt;table2;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;new_table:&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;Department,&lt;BR /&gt;Sum(sales_amount)/Count(order_id) as avg_order&lt;BR /&gt;Resident temp_TABLE&lt;BR /&gt;Group By Department;&lt;/P&gt;&lt;P&gt;DROP Table temp_TABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 15:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929188#M321344</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-11-03T15:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: group by with Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929189#M321345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the error message? Could you post the document log?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 15:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929189#M321345</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-03T15:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: group by with Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929190#M321346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What error are you receiving?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Absent that detail, try the final load with the ratio broken into separate sum &amp;amp; count columns. If your join is failing for some reason, you might be seeing a divide-by-zero error because of your Group By clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, watch out for the use of "distinct" with join statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.naturalsynergies.com/q-tip-1-beware-of-distinct/" title="http://www.naturalsynergies.com/q-tip-1-beware-of-distinct/"&gt;QlikView Blog Q-Tip #1 - Beware of DISTINCT! | Natural Synergies&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 15:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929190#M321346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-03T15:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: group by with Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929191#M321347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be try to use NOCONCATENATE before newtable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;Newtable:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 15:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929191#M321347</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-11-03T15:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: group by with Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929192#M321348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because auto concatenate, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;temp_TABLE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;user_id,&lt;/P&gt;&lt;P&gt;sales_amount,&lt;/P&gt;&lt;P&gt;order_id&lt;/P&gt;&lt;P&gt;Resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (temp_TABLE)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; user_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Department&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp; table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 16:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929192#M321348</guid>
      <dc:creator />
      <dc:date>2015-11-03T16:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: group by with Resident table</title>
      <link>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929193#M321349</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 have no temp_TABLE created. You need NoConcatenate before temp_TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 16:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/group-by-with-Resident-table/m-p/929193#M321349</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-11-03T16:27:56Z</dc:date>
    </item>
  </channel>
</rss>

