<?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: Select Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468418#M174944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="27773" class="jive-image-thumbnail jive-image" onclick="" alt="TableBoxPresentationProperties.png" src="https://community.qlik.com/legacyfs/online/27773_TableBoxPresentationProperties.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2012 16:46:40 GMT</pubDate>
    <dc:creator>RickWild64</dc:creator>
    <dc:date>2012-12-27T16:46:40Z</dc:date>
    <item>
      <title>Select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468414#M174940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this first table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;ID, Name, Currency, ValidFrom, ValidTill&lt;/P&gt;&lt;P&gt;001, Juan, USD, 25/06/2001, 31/12/2009&lt;/P&gt;&lt;P&gt;001, Juan COR, 01/01/2010, 27/12/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the other table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;ID_Sales, Sales, ID_Customer, Date&lt;/P&gt;&lt;P&gt;1524 , 500 , 001 , 30/07/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know the currency of sale 1524. I supose that is USD, by date, but QlikView shows both until I select a date range.&lt;/P&gt;&lt;P&gt;Can not be displayed directly without selecting a date range?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 15:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468414#M174940</guid>
      <dc:creator>farolito20</dc:creator>
      <dc:date>2012-12-27T15:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468415#M174941</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;It's not clear how your tables are associated. You suppose the currency of the sale is USD because of the date, but QlikView doesn't know that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that currency is an attribute of the customer and not of the sale. Assuming the tables are associated by ID_Customer, if you select sale 1524, that only selects customer 001, for which you have multiple rows, sp you see both currencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be usual in a Sales Order Processing system to have a default currency as an attribute of the cusstomer, and an actual currency as an attribute of the sale. If your system really does not have a Sale_Currency column, you need either to create one in the script, or associate sale with customer using a compound key that includes the date part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either way, in QlikView terms you want to use Intervalmatch. (just working out the exact syntax - I'll post it in a minute)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 15:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468415#M174941</guid>
      <dc:creator>RickWild64</dc:creator>
      <dc:date>2012-12-27T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468416#M174942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, here's the quick way of doing it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;LOAD ID as ID_Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currency, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidFrom, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidTill&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\_QlikViewApplications\IntervalMatch\customer.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', no quotes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD ID_Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\_QlikViewApplications\IntervalMatch\sales.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', no quotes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Sales)&lt;/P&gt;&lt;P&gt;Link:&lt;/P&gt;&lt;P&gt;IntervalMatch(Date, ID_Customer)&lt;/P&gt;&lt;P&gt;load ValidFrom, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidTill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_Customer&lt;/P&gt;&lt;P&gt;resident Customer&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is based on copy and pasting your data samples into text files. Replace the From clauses with your own data sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are left with a synthetic key on ID_Customer + ValidFrom + ValidTill. You can avoid the synthetic key if you change the code a little:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&amp;amp;'|'&amp;amp;ValidFrom&amp;amp;'|'&amp;amp;ValidTill as CustomerEffDateKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as ID_Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currency, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidFrom, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidTill&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\_QlikViewApplications\IntervalMatch\customer.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', no quotes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD ID_Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\_QlikViewApplications\IntervalMatch\sales.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', no quotes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Sales)&lt;/P&gt;&lt;P&gt;IntervalMatch(Date, ID_Customer)&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidFrom, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidTill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_Customer&lt;/P&gt;&lt;P&gt;resident Customer&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Sales)&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_Customer&amp;amp;'|'&amp;amp;ValidFrom&amp;amp;'|'&amp;amp;ValidTill as CustomerEffDateKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date &lt;/P&gt;&lt;P&gt;resident Sales&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop field&amp;nbsp; ID_Customer, ValidFrom, ValidTill from Sales;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 15:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468416#M174942</guid>
      <dc:creator>RickWild64</dc:creator>
      <dc:date>2012-12-27T15:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468417#M174943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="304" id="QlikOCX" width="680"&gt; &lt;/OBJECT&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="304" id="QlikOCX" width="743"&gt; &lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="304" id="QlikOCX" width="680"&gt; &lt;PARAM name="DocName" value="C:\Users\malvarez\Downloads\QlikConnect_Slowly_Changing_Dimension (1)\QlikConnect\Slowly_Changing_Dimension\Customers_SlowlyChangingDimensions_Marina.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\TB02" /&gt;&lt;IMG __jive_id="27769" class="jive-image-thumbnail jive-image" onclick="" alt="image.jpg" src="https://community.qlik.com/legacyfs/online/27769_image.jpg" width="450" /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;How show just sales, in the left table of sales?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 16:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468417#M174943</guid>
      <dc:creator>farolito20</dc:creator>
      <dc:date>2012-12-27T16:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468418#M174944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="27773" class="jive-image-thumbnail jive-image" onclick="" alt="TableBoxPresentationProperties.png" src="https://community.qlik.com/legacyfs/online/27773_TableBoxPresentationProperties.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 16:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468418#M174944</guid>
      <dc:creator>RickWild64</dc:creator>
      <dc:date>2012-12-27T16:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468419#M174945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 16:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Query/m-p/468419#M174945</guid>
      <dc:creator>farolito20</dc:creator>
      <dc:date>2012-12-27T16:56:35Z</dc:date>
    </item>
  </channel>
</rss>

