<?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 Problems joining two exactly same tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-joining-two-exactly-same-tables/m-p/723416#M259578</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;In continuation with my previous discussion, I have opened this so that you peeps get points for helping me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where I am : &lt;A href="https://community.qlik.com/message/582829"&gt;Re: Join not giving the desired results&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/MartynLloyd"&gt;MartynLloyd&lt;/A&gt;&lt;/STRONG&gt; last comment in the above post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's what I am trying to achieve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 6 input fields, once the user's entered the desired values they submit the data to an excel file. Now because qlikview is wiping out the data entered by the user after reload (only if there are new fields or rows being added to the data model).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to provide the user with the same values that they had entered, I am trying to the load the latest values from the latest excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this I need to join new excel data table with the existing main table with inputfields.&lt;/P&gt;&lt;P&gt;I have four columns that act as keys and 6 inputfields columns.&lt;/P&gt;&lt;P&gt;So the main table is 'Items' table m:m relation between items and customers for all &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;weeks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heres how the table and data structure look like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Items:&amp;nbsp; // loaded the first time&lt;/P&gt;&lt;P&gt;Month, &lt;/P&gt;&lt;P&gt;ItemNumber,&lt;/P&gt;&lt;P&gt;Customer Number,&lt;/P&gt;&lt;P&gt;Week&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield1&amp;nbsp; &lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield2&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield3&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield4&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield5&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same data for items:&lt;/P&gt;&lt;P&gt;Aug - 2014,&lt;/P&gt;&lt;P&gt;123,&lt;/P&gt;&lt;P&gt;C15,&lt;/P&gt;&lt;P&gt;Week 33 - Aug,&lt;/P&gt;&lt;P&gt;0.00,&amp;nbsp; // set to 0.00 for the first time&lt;/P&gt;&lt;P&gt;0.00,&lt;/P&gt;&lt;P&gt;0.00,&lt;/P&gt;&lt;P&gt;0.00,&lt;/P&gt;&lt;P&gt;0.00,&lt;/P&gt;&lt;P&gt;0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// excel data&lt;/P&gt;&lt;P&gt;ExcelData:&amp;nbsp; // this is the data that has values entered by the user&lt;/P&gt;&lt;P&gt;Month, &lt;/P&gt;&lt;P&gt;ItemNumber,&lt;/P&gt;&lt;P&gt;Customer Number,&lt;/P&gt;&lt;P&gt;Week&lt;/P&gt;&lt;P&gt;Column1&amp;nbsp; as Inputfield1&amp;nbsp; &lt;/P&gt;&lt;P&gt;Column2 as Inputfield2&lt;/P&gt;&lt;P&gt;Column3 as Inputfield3&lt;/P&gt;&lt;P&gt;Column4 as Inputfield4&lt;/P&gt;&lt;P&gt;Column5 as Inputfield5&lt;/P&gt;&lt;P&gt;Column6 as Inputfield6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same data for items:&lt;/P&gt;&lt;P&gt;Aug - 2014,&lt;/P&gt;&lt;P&gt;123,&lt;/P&gt;&lt;P&gt;C15,&lt;/P&gt;&lt;P&gt;Week 33 - Aug,&lt;/P&gt;&lt;P&gt;150,&lt;/P&gt;&lt;P&gt;15,&lt;/P&gt;&lt;P&gt;3.00,&lt;/P&gt;&lt;P&gt;5.50,&lt;/P&gt;&lt;P&gt;1.10,&lt;/P&gt;&lt;P&gt;1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want excel data to be in the items table for the corresponding/ matching columns and rest/unmatched be as it is with inputfields as 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 10:18:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-06T10:18:53Z</dc:date>
    <item>
      <title>Problems joining two exactly same tables</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-joining-two-exactly-same-tables/m-p/723416#M259578</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;In continuation with my previous discussion, I have opened this so that you peeps get points for helping me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where I am : &lt;A href="https://community.qlik.com/message/582829"&gt;Re: Join not giving the desired results&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/MartynLloyd"&gt;MartynLloyd&lt;/A&gt;&lt;/STRONG&gt; last comment in the above post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's what I am trying to achieve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 6 input fields, once the user's entered the desired values they submit the data to an excel file. Now because qlikview is wiping out the data entered by the user after reload (only if there are new fields or rows being added to the data model).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to provide the user with the same values that they had entered, I am trying to the load the latest values from the latest excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this I need to join new excel data table with the existing main table with inputfields.&lt;/P&gt;&lt;P&gt;I have four columns that act as keys and 6 inputfields columns.&lt;/P&gt;&lt;P&gt;So the main table is 'Items' table m:m relation between items and customers for all &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;weeks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heres how the table and data structure look like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Items:&amp;nbsp; // loaded the first time&lt;/P&gt;&lt;P&gt;Month, &lt;/P&gt;&lt;P&gt;ItemNumber,&lt;/P&gt;&lt;P&gt;Customer Number,&lt;/P&gt;&lt;P&gt;Week&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield1&amp;nbsp; &lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield2&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield3&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield4&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield5&lt;/P&gt;&lt;P&gt;num('0','#,##0.00') as Inputfield6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same data for items:&lt;/P&gt;&lt;P&gt;Aug - 2014,&lt;/P&gt;&lt;P&gt;123,&lt;/P&gt;&lt;P&gt;C15,&lt;/P&gt;&lt;P&gt;Week 33 - Aug,&lt;/P&gt;&lt;P&gt;0.00,&amp;nbsp; // set to 0.00 for the first time&lt;/P&gt;&lt;P&gt;0.00,&lt;/P&gt;&lt;P&gt;0.00,&lt;/P&gt;&lt;P&gt;0.00,&lt;/P&gt;&lt;P&gt;0.00,&lt;/P&gt;&lt;P&gt;0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// excel data&lt;/P&gt;&lt;P&gt;ExcelData:&amp;nbsp; // this is the data that has values entered by the user&lt;/P&gt;&lt;P&gt;Month, &lt;/P&gt;&lt;P&gt;ItemNumber,&lt;/P&gt;&lt;P&gt;Customer Number,&lt;/P&gt;&lt;P&gt;Week&lt;/P&gt;&lt;P&gt;Column1&amp;nbsp; as Inputfield1&amp;nbsp; &lt;/P&gt;&lt;P&gt;Column2 as Inputfield2&lt;/P&gt;&lt;P&gt;Column3 as Inputfield3&lt;/P&gt;&lt;P&gt;Column4 as Inputfield4&lt;/P&gt;&lt;P&gt;Column5 as Inputfield5&lt;/P&gt;&lt;P&gt;Column6 as Inputfield6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same data for items:&lt;/P&gt;&lt;P&gt;Aug - 2014,&lt;/P&gt;&lt;P&gt;123,&lt;/P&gt;&lt;P&gt;C15,&lt;/P&gt;&lt;P&gt;Week 33 - Aug,&lt;/P&gt;&lt;P&gt;150,&lt;/P&gt;&lt;P&gt;15,&lt;/P&gt;&lt;P&gt;3.00,&lt;/P&gt;&lt;P&gt;5.50,&lt;/P&gt;&lt;P&gt;1.10,&lt;/P&gt;&lt;P&gt;1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want excel data to be in the items table for the corresponding/ matching columns and rest/unmatched be as it is with inputfields as 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 10:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-joining-two-exactly-same-tables/m-p/723416#M259578</guid>
      <dc:creator />
      <dc:date>2014-08-06T10:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problems joining two exactly same tables</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-joining-two-exactly-same-tables/m-p/723417#M259579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My idea:&lt;/P&gt;&lt;P&gt;ExcelData will be your final table, no join or concatenate needed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Items:&amp;nbsp; // loaded the first time&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Month &amp;amp; ItemNumber &amp;amp; Customer Number &amp;amp; Week as Key1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Month, &lt;/P&gt;&lt;P&gt;ItemNumber,&lt;/P&gt;&lt;P&gt;Customer Number,&lt;/P&gt;&lt;P&gt;Week&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;// excel data&lt;/P&gt;&lt;P&gt;ExcelData:&amp;nbsp; // this is the data that has values entered by the user&lt;/P&gt;&lt;P&gt;Month, &lt;/P&gt;&lt;P&gt;ItemNumber,&lt;/P&gt;&lt;P&gt;Customer Number,&lt;/P&gt;&lt;P&gt;Week&lt;/P&gt;&lt;P&gt;Column1&amp;nbsp; as Inputfield1&amp;nbsp; &lt;/P&gt;&lt;P&gt;Column2 as Inputfield2&lt;/P&gt;&lt;P&gt;Column3 as Inputfield3&lt;/P&gt;&lt;P&gt;Column4 as Inputfield4&lt;/P&gt;&lt;P&gt;Column5 as Inputfield5&lt;/P&gt;&lt;P&gt;Column6 as Inputfield6&lt;/P&gt;&lt;P&gt;from Excel&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Exists(Key1, Month &amp;amp; ItemNumber &amp;amp; Customer Number &amp;amp; Week)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 10:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-joining-two-exactly-same-tables/m-p/723417#M259579</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-08-06T10:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems joining two exactly same tables</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-joining-two-exactly-same-tables/m-p/723418#M259580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much dude.. you are awesome.. your solution worked. But also there was a big time data type mismatch issue, thats why it could not match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 11:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-joining-two-exactly-same-tables/m-p/723418#M259580</guid>
      <dc:creator />
      <dc:date>2014-08-06T11:27:19Z</dc:date>
    </item>
  </channel>
</rss>

