<?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: Selecting one field from two tables separately in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868355#M303707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know exactly what you have done, but this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;dates:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201420&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201421&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201422&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201423&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201424&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201425&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;realdates:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load *, Year(realdate) as Year, Week(realdate) as Week;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MakeWeekDate(mid(date, 1, 4), mid(date, 5), 1) as realdate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;resident dates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Drop table dates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Rename Field realdate to date;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 09:12:40 GMT</pubDate>
    <dc:creator>Ralf-Narfeldt</dc:creator>
    <dc:date>2015-05-28T09:12:40Z</dc:date>
    <item>
      <title>Selecting one field from two tables separately</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868352#M303704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I've got table with date formatted like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/87797_date2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;It's YYYYWW (year - week)&lt;/P&gt;&lt;P&gt;And i did these two tables using mid(date, 1, 4) and mid(date, 5)&lt;/P&gt;&lt;P&gt;I also tried doing date: =Year(MakeWeekDate(mid(date, 1, 4), mid(date, 5), 1)), but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87775_date1.PNG" /&gt;&lt;/P&gt;&lt;P&gt;And when i select week, I can't select year at the same time.&lt;/P&gt;&lt;P&gt;When week is selected and i select year, week de-selects and only year is selected.&lt;/P&gt;&lt;P&gt;Have you got any idea how to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 08:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868352#M303704</guid>
      <dc:creator />
      <dc:date>2015-05-28T08:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one field from two tables separately</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868353#M303705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post your data model (from table viewer), it might seems that there is a wrong link between the datas.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 08:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868353#M303705</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2015-05-28T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one field from two tables separately</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868354#M303706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By two tables, I assume you mean you made the two list boxes using the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use an expression in a list box, and you make selections, you are actually making a selection on the underlying field(s). Both these list boxes use the same underlying field, so your selection in the other box conflicts with the first selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would be better off creating Year and Week fields in your load script and using these two fields, rather than the expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 09:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868354#M303706</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-05-28T09:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting one field from two tables separately</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868355#M303707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know exactly what you have done, but this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;dates:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201420&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201421&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201422&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201423&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201424&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201425&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;realdates:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load *, Year(realdate) as Year, Week(realdate) as Week;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MakeWeekDate(mid(date, 1, 4), mid(date, 5), 1) as realdate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;resident dates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Drop table dates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Rename Field realdate to date;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 09:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-one-field-from-two-tables-separately/m-p/868355#M303707</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-05-28T09:12:40Z</dc:date>
    </item>
  </channel>
</rss>

