<?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: Filling the missing dates for exchange rates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756672#M1025546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post your script for the currency-datas here.&lt;/P&gt;&lt;P&gt;I believe the datas are missing date-values.&lt;/P&gt;&lt;P&gt;What join did you used? you need an outer join to create all datas who are not in your database (e.g. jan 5th may was a weekend)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 13:46:18 GMT</pubDate>
    <dc:creator>martinpohl</dc:creator>
    <dc:date>2015-03-06T13:46:18Z</dc:date>
    <item>
      <title>Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756666#M1025535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;i am new to qlikview&lt;/P&gt;&lt;P&gt;Looking for a script...&lt;/P&gt;&lt;P&gt;i am trying to fill the missing dates, and while it filling the dates it will take the proper exchange rate by the currency&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80124_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;thanks a head&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 12:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756666#M1025535</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-03-06T12:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756667#M1025536</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;please see this thread &lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 12:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756667#M1025536</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2015-03-06T12:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756668#M1025538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;but how do i split between currencies ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756668#M1025538</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-03-06T13:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756669#M1025540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Page 7 of Henric's documents give you solution.(from Andre's link).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise post sample of your data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756669#M1025540</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-03-06T13:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756670#M1025542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so order the datas by date and currency&lt;/P&gt;&lt;P&gt;load....&lt;/P&gt;&lt;P&gt;from ....&lt;/P&gt;&lt;P&gt;order by date, currency;&lt;/P&gt;&lt;P&gt;and check in the script if the currency is changing&lt;/P&gt;&lt;P&gt;If( IsNull( Rate ), &lt;/P&gt;&lt;P&gt;if(peek(currency)=currency,&lt;/P&gt;&lt;P&gt;Peek( Rate ), Rate ),Rate) as Rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;by the way: you can't load datas from a qvd by using order by.&lt;/P&gt;&lt;P&gt;Then you have to laod the datas from qvd and reload them by resident.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756670#M1025542</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2015-03-06T13:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756671#M1025544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Untitled.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80135_Untitled.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;still having holes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756671#M1025544</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-03-06T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756672#M1025546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post your script for the currency-datas here.&lt;/P&gt;&lt;P&gt;I believe the datas are missing date-values.&lt;/P&gt;&lt;P&gt;What join did you used? you need an outer join to create all datas who are not in your database (e.g. jan 5th may was a weekend)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756672#M1025546</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2015-03-06T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756673#M1025547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i know it was a weekend, i need all dates&lt;/P&gt;&lt;P&gt;thanks a head&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;/P&gt;&lt;P&gt;Load Min(Date) as MinDate, Max(Date) as MaxDate resident TempTable_Rates;&lt;/P&gt;&lt;P&gt;Let vMinDate = Peek('MinDate',-1,'MinMaxDate') - 1;&lt;/P&gt;&lt;P&gt;Let vMaxDate = Peek('MaxDate',-1,'MinMaxDate') ;&lt;/P&gt;&lt;P&gt;Drop Table MinMaxDate;&lt;/P&gt;&lt;P&gt;outer Join (TempTable_Rates)&lt;/P&gt;&lt;P&gt;Load Date(recno()+$(vMinDate)) as Date Autogenerate vMaxDate - vMinDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rates:&lt;/P&gt;&lt;P&gt;NoConcatenate Load Date,&lt;/P&gt;&lt;P&gt;If( IsNull( Rate ),if(peek(currency)=currency,Peek( Rate ), Rate ),Rate) as Rate,currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TempTable_Rates&lt;/P&gt;&lt;P&gt;Order By currency,Date desc ; &lt;/P&gt;&lt;P&gt;Drop Table TempTable_Rates;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756673#M1025547</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-03-06T13:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756674#M1025549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's right.&lt;/P&gt;&lt;P&gt;By joining the date the currency isn't filled , so you can't verify it by peek&lt;/P&gt;&lt;P&gt;add the currency with all dates like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;/P&gt;&lt;P&gt;Load Min(Date) as MinDate, Max(Date) as MaxDate resident TempTable_Rates;&lt;/P&gt;&lt;P&gt;Let vMinDate = Peek('MinDate',-1,'MinMaxDate') - 1;&lt;/P&gt;&lt;P&gt;Let vMaxDate = Peek('MaxDate',-1,'MinMaxDate') ;&lt;/P&gt;&lt;P&gt;Drop Table MinMaxDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_Currency:&lt;/P&gt;&lt;P&gt;Load Date(recno()+$(vMinDate)) as Date Autogenerate vMaxDate - vMinDate;&lt;/P&gt;&lt;P&gt;//here join all currency from your datas&lt;/P&gt;&lt;P&gt;left join load distinct currency resident datas;&lt;/P&gt;&lt;P&gt;//join all dates and all currencys to datas&lt;/P&gt;&lt;P&gt; outer Join (TempTable_Rates) load * resident Date_Currency;&lt;/P&gt;&lt;P&gt;//drop temporary table&lt;/P&gt;&lt;P&gt;drop table Date_Currency;&lt;/P&gt;&lt;P&gt;Rates:&lt;/P&gt;&lt;P&gt;NoConcatenate Load Date,&lt;/P&gt;&lt;P&gt;If( IsNull( Rate ),if(peek(currency)=currency,Peek( Rate ), Rate ),Rate) as Rate,currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TempTable_Rates&lt;/P&gt;&lt;P&gt;Order By currency,Date desc ; &lt;/P&gt;&lt;P&gt;Drop Table TempTable_Rates;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 14:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756674#M1025549</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2015-03-06T14:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates for exchange rates</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756675#M1025550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great&lt;/P&gt;&lt;P&gt;thanks a lot &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 14:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-the-missing-dates-for-exchange-rates/m-p/756675#M1025550</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-03-06T14:18:11Z</dc:date>
    </item>
  </channel>
</rss>

