<?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: Exchange rate problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269094#M709547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use previous() in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not use above() in the table, because when you select one day, a monday, it is not working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2011 10:38:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-24T10:38:09Z</dc:date>
    <item>
      <title>Exchange rate problem</title>
      <link>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269091#M709544</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;I have problem with exchange rate. I have two tables A (order_number, order_date, currency) and B (date, currency, exchange_rate). I created key (date&amp;amp;currency) and it's working perfectly, but..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On each Monday I don't have exchange rate value, becaus it's announced on Tuesday. In this case I sholud use exchange rate from last day when it was announced (in this case from Friday). How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this value when I create a straight table and I'm converting currency:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Currency&amp;lt;&amp;gt;'PLN',[Ordered quantity]*[Purchase price]*[Exchange rate];[Ordered quantity]*[Purchase price])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 07:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269091#M709544</guid>
      <dc:creator />
      <dc:date>2011-10-24T07:17:28Z</dc:date>
    </item>
    <item>
      <title>Exchange rate problem</title>
      <link>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269092#M709545</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 can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (isnull(exchangerate) and day=monday,above(exchangerate,3),exchangerate) as exchangerate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;succes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 07:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269092#M709545</guid>
      <dc:creator />
      <dc:date>2011-10-24T07:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange rate problem</title>
      <link>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269093#M709546</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;function above() is not working in script, but I can use it in straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one more problem. I noted that if in tabel with EX_RATE exchange rate don't exist then I can't use it as key.&lt;/P&gt;&lt;P&gt;Please, look to example below. In straight table 'ORDER VALUE' I would like to have position for date 20111017 and currency EUR,&lt;/P&gt;&lt;P&gt;which consist in column exchange rate value from day before (in this case from 20111014).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 10:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269093#M709546</guid>
      <dc:creator />
      <dc:date>2011-10-24T10:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange rate problem</title>
      <link>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269094#M709547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use previous() in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not use above() in the table, because when you select one day, a monday, it is not working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 10:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exchange-rate-problem/m-p/269094#M709547</guid>
      <dc:creator />
      <dc:date>2011-10-24T10:38:09Z</dc:date>
    </item>
  </channel>
</rss>

