<?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 Exchange rates with dynamic transaction date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exchange-rates-with-dynamic-transaction-date/m-p/940469#M954456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have record entries with amounts based on various currencies.&lt;/P&gt;&lt;P&gt;Then I also have a foreign exchange table, with many exchange rated for each currency for different dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart which takes a variable date as input and I would like to also dynamically derive the exchange rate for that currency on that day.&amp;nbsp; Linking the table on currency_id is not very effective because the dimension brings up unwanted chart lines.&lt;/P&gt;&lt;P&gt;I also tried to link the two tabels with currency but by creating a sub link association.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This too is not very effective since it joins millions of records with millions of exchange rates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;ENTRIES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CURRENCY_ID,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CURR,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENTRY_ID,&lt;/P&gt;&lt;P&gt;AMOUNT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FX_RATES:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CURR,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;BASE_CURR,&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;RATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDate1 = &amp;lt;some date&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rate chart column is defines as:&lt;/P&gt;&lt;P&gt;max(if(DATE = '$(vDate1)', RATE, null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there perhaps a more effective way in which one can link the two tables ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2015 11:52:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-19T11:52:51Z</dc:date>
    <item>
      <title>Exchange rates with dynamic transaction date</title>
      <link>https://community.qlik.com/t5/QlikView/Exchange-rates-with-dynamic-transaction-date/m-p/940469#M954456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have record entries with amounts based on various currencies.&lt;/P&gt;&lt;P&gt;Then I also have a foreign exchange table, with many exchange rated for each currency for different dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart which takes a variable date as input and I would like to also dynamically derive the exchange rate for that currency on that day.&amp;nbsp; Linking the table on currency_id is not very effective because the dimension brings up unwanted chart lines.&lt;/P&gt;&lt;P&gt;I also tried to link the two tabels with currency but by creating a sub link association.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This too is not very effective since it joins millions of records with millions of exchange rates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;ENTRIES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CURRENCY_ID,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CURR,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENTRY_ID,&lt;/P&gt;&lt;P&gt;AMOUNT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FX_RATES:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CURR,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;BASE_CURR,&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;RATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDate1 = &amp;lt;some date&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rate chart column is defines as:&lt;/P&gt;&lt;P&gt;max(if(DATE = '$(vDate1)', RATE, null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there perhaps a more effective way in which one can link the two tables ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 11:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exchange-rates-with-dynamic-transaction-date/m-p/940469#M954456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T11:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange rates with dynamic transaction date</title>
      <link>https://community.qlik.com/t5/QlikView/Exchange-rates-with-dynamic-transaction-date/m-p/940470#M954457</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 will need to make some link between date currency id.&lt;/P&gt;&lt;P&gt;If enteries had a date it could be a concatanated key.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CURR&amp;amp;Date on both tables?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 12:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exchange-rates-with-dynamic-transaction-date/m-p/940470#M954457</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-19T12:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange rates with dynamic transaction date</title>
      <link>https://community.qlik.com/t5/QlikView/Exchange-rates-with-dynamic-transaction-date/m-p/940471#M954458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the problem, the date is dynamic from a variable.&amp;nbsp; &lt;/P&gt;&lt;P&gt;When the user enters the date the chart calculates all the relevant entries for the aggregation.&lt;/P&gt;&lt;P&gt;I also can not link to a date since the chart works on multiple dates, i.e. maturity dates in the future, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I manager to only load the FX rates for currencies which exists in the entries table, however my second dimension is still showing many record entries which aggregates to 0 but is still showing in the pivot chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 12:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exchange-rates-with-dynamic-transaction-date/m-p/940471#M954458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T12:50:21Z</dc:date>
    </item>
  </channel>
</rss>

