<?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 Join a table for each GROUP BY in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548770#M483340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code for displaying stock results which displays the result of the latest stock mutation of that month. This looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13732704018707506" jivemacro_uid="_13732704018707506"&gt;&lt;P&gt;[MonthlyStockTEMP]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TempMonth]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [KeyPart],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue([PartStockEnd], -[Date])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Voorraad]&lt;/P&gt;&lt;P&gt;Resident [FinalStock]&lt;/P&gt;&lt;P&gt;Group By [TempMonth], [KeyPart];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; [MonthlyStockFinal]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [KeyPart],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Voorraad]&lt;/P&gt;&lt;P&gt;Resident [MonthlyStockTEMP];&lt;/P&gt;&lt;P&gt;DROP TABLE [MonthlyStockTEMP];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in the following table:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="179" style="width: 266px; height: 116px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="text-align: left;" width="74"&gt;&lt;STRONG&gt;KeyPart&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; text-align: left;" width="62"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; text-align: left;" width="57"&gt;&lt;STRONG&gt;Voorraad&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause some of the months are empty, I want to add them manually. I have the following table with months. (first days, just like in the stock table)&lt;/P&gt;&lt;P&gt;[AllMonths]:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="197" style="width: 119px; height: 198px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" width="148"&gt;01-01-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-02-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-03-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-04-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-05-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-06-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-07-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-08-2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I want to merge those 2 tables so the keyparts with no value in that specific month at least have an empty month.&lt;/P&gt;&lt;P&gt;How can i do this for each keypart? So it will look like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="269" style="width: 267px; height: 173px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="text-align: left;" width="74"&gt;&lt;STRONG&gt;KeyPart&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: left;" width="63"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: left;" width="57"&gt;&lt;STRONG&gt;Voorraad&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl69" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 07:58:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-08T07:58:28Z</dc:date>
    <item>
      <title>Join a table for each GROUP BY</title>
      <link>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548770#M483340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code for displaying stock results which displays the result of the latest stock mutation of that month. This looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13732704018707506" jivemacro_uid="_13732704018707506"&gt;&lt;P&gt;[MonthlyStockTEMP]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TempMonth]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [KeyPart],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue([PartStockEnd], -[Date])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Voorraad]&lt;/P&gt;&lt;P&gt;Resident [FinalStock]&lt;/P&gt;&lt;P&gt;Group By [TempMonth], [KeyPart];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; [MonthlyStockFinal]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [KeyPart],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Voorraad]&lt;/P&gt;&lt;P&gt;Resident [MonthlyStockTEMP];&lt;/P&gt;&lt;P&gt;DROP TABLE [MonthlyStockTEMP];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in the following table:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="179" style="width: 266px; height: 116px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="text-align: left;" width="74"&gt;&lt;STRONG&gt;KeyPart&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; text-align: left;" width="62"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; text-align: left;" width="57"&gt;&lt;STRONG&gt;Voorraad&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause some of the months are empty, I want to add them manually. I have the following table with months. (first days, just like in the stock table)&lt;/P&gt;&lt;P&gt;[AllMonths]:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="197" style="width: 119px; height: 198px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" width="148"&gt;01-01-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-02-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-03-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-04-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-05-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-06-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-07-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17"&gt;01-08-2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I want to merge those 2 tables so the keyparts with no value in that specific month at least have an empty month.&lt;/P&gt;&lt;P&gt;How can i do this for each keypart? So it will look like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="269" style="width: 267px; height: 173px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="text-align: left;" width="74"&gt;&lt;STRONG&gt;KeyPart&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: left;" width="63"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: left;" width="57"&gt;&lt;STRONG&gt;Voorraad&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl69" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 07:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548770#M483340</guid>
      <dc:creator />
      <dc:date>2013-07-08T07:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Join a table for each GROUP BY</title>
      <link>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548771#M483341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After creating MonthlyStockFinal do a right join with the AllMonths table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[MonthlyStockFinal]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOCONCATENATE LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [KeyPart],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Month],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Voorraad]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident [MonthlyStockTEMP];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE [MonthlyStockTEMP];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;right join(MonthlyStockFinal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * from AllMonths; //or maybe: resident AllMonths&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548771#M483341</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-08T08:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Join a table for each GROUP BY</title>
      <link>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548772#M483342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TEMP:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Keypart&lt;/P&gt;&lt;P&gt;RESIDENT &lt;CODE class="jive-code jive-sql"&gt;MonthlyStockFinal&lt;/CODE&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (TEMP)&lt;/P&gt;&lt;P&gt;LOAD Month&lt;/P&gt;&lt;P&gt;RESIDENT &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;AllMonths&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (&lt;CODE class="jive-code jive-sql"&gt;MonthlyStockFinal&lt;/CODE&gt;)&lt;/P&gt;&lt;P&gt;LOAD KeyPart, Month&lt;/P&gt;&lt;P&gt;RESIDENT TEMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TEMP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548772#M483342</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2013-07-08T08:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Join a table for each GROUP BY</title>
      <link>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548773#M483343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked for me, thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-a-table-for-each-GROUP-BY/m-p/548773#M483343</guid>
      <dc:creator />
      <dc:date>2013-07-08T08:20:42Z</dc:date>
    </item>
  </channel>
</rss>

