<?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: matching currency exchange rate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715399#M672376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dathu,&lt;/P&gt;&lt;P&gt;this is a good solution if there is only one exchange entry per month. Unfortunately I have overseen that there are somtimes more than one. So I have to tie to the last date before the fact date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 15:35:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-20T15:35:09Z</dc:date>
    <item>
      <title>matching currency exchange rate</title>
      <link>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715397#M672374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data table with a date and I have a currency exchange table with exchange rates for one date per month. I want to match the data table with the exchange rate of the respective month.&lt;/P&gt;&lt;P&gt;I try to use IntervalMatch but I have no range only the beginning of the range. So I used to have something which maches with the nearest date before or same time as the date from my data table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or I havt to add end values to my currency exchange table but I dont know how to do the by code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has someone any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hyharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715397#M672374</guid>
      <dc:creator />
      <dc:date>2014-08-20T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: matching currency exchange rate</title>
      <link>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715398#M672375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Holly, As i understand correctly, you have one transnational table having Date. Other hand, you have exchange rate table having only one row per each month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply Join on the these tables&amp;nbsp; using &lt;STRONG&gt;MonthStart&lt;/STRONG&gt; function on both fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transactions:&lt;/P&gt;&lt;P&gt;LOAD *, MonthStart(Date) AS ER_KEY&lt;/P&gt;&lt;P&gt;From Transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exchange_Rate:&lt;/P&gt;&lt;P&gt;Load Exchnage_Rate , MonthStart(Date) AS ER_KEY &lt;/P&gt;&lt;P&gt;From ExchangeRate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So All the transactions under one month correctly tied to Exchange_Rate table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715398#M672375</guid>
      <dc:creator />
      <dc:date>2014-08-20T14:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: matching currency exchange rate</title>
      <link>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715399#M672376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dathu,&lt;/P&gt;&lt;P&gt;this is a good solution if there is only one exchange entry per month. Unfortunately I have overseen that there are somtimes more than one. So I have to tie to the last date before the fact date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 15:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715399#M672376</guid>
      <dc:creator />
      <dc:date>2014-08-20T15:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: matching currency exchange rate</title>
      <link>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715400#M672377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please Share the some sample data so I will give some script solution for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 16:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715400#M672377</guid>
      <dc:creator />
      <dc:date>2014-08-20T16:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: matching currency exchange rate</title>
      <link>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715401#M672378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can use Peek to create from and to dates in your exchange table, which will enable you to use intervalmatch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExchFromTo:&lt;BR /&gt;LOAD&lt;BR /&gt; *,&lt;BR /&gt; RowNo() AS Row,&lt;BR /&gt; If(RowNo() = 1, Null(),&lt;BR /&gt;&amp;nbsp; If(peek('Date', -1, 'ExchFromTo') &amp;gt;= Date, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; peek('Date', -1, 'ExchFromTo'), Date )) AS FromDate&lt;BR /&gt;RESIDENT ExchangeRates&lt;BR /&gt;ORDER BY Currency, Date;&lt;/P&gt;&lt;P&gt;DROP Table ExchangeRates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 17:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715401#M672378</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-08-20T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: matching currency exchange rate</title>
      <link>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715402#M672379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;It's a one-liner with Qlikview Components &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcomponents.org"&gt;http://qlikviewcomponents.org&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL Qvc.ExpandInterval ('RateTable', 'RateDate')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 17:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715402#M672379</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-08-20T17:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: matching currency exchange rate</title>
      <link>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715403#M672380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hyharp&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14085770147745374" jivemacro_uid="_14085770147745374"&gt;
&lt;P&gt;tabExchangeRates:&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;date start, exchange rate&lt;/P&gt;
&lt;P&gt;01/01/2014, 1.513&lt;/P&gt;
&lt;P&gt;02/01/2014, 1.456&lt;/P&gt;
&lt;P&gt;03/01/2014, 1.417&lt;/P&gt;
&lt;P&gt;03/15/2014, 1.348&lt;/P&gt;
&lt;P&gt;04/01/2014, 1.389&lt;/P&gt;
&lt;P&gt;04/10/2014, 1.391&lt;/P&gt;
&lt;P&gt;04/20/2014, 1.498&lt;/P&gt;
&lt;P&gt;05/01/2014, 1.568&lt;/P&gt;
&lt;P&gt;06/01/2014, 1.591&lt;/P&gt;
&lt;P&gt;06/25/2014, 1.643&lt;/P&gt;
&lt;P&gt;07/01/2014, 1.719&lt;/P&gt;
&lt;P&gt;08/01/2014, 1.737&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabData:&lt;/P&gt;
&lt;P&gt;LOAD Date(Date#('01/01/2014','MM/DD/YYYY')+IterNo()-1) as date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money(Ceil(Rand()*1000)) as amount&lt;/P&gt;
&lt;P&gt;AutoGenerate 1&lt;/P&gt;
&lt;P&gt;While Date#('01/01/2014','MM/DD/YYYY')+IterNo()-1 &amp;lt;= Today();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabExchangeRates)&lt;/P&gt;
&lt;P&gt;LOAD *, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumberHash128([date start], [date end]) as %PeriodID;&lt;/P&gt;
&lt;P&gt;LOAD [date start], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alt(Date(Peek([date start])-1), Date(Today())) as [date end]&lt;/P&gt;
&lt;P&gt;Resident tabExchangeRates&lt;/P&gt;
&lt;P&gt;Order By [date start] desc;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabData)&lt;/P&gt;
&lt;P&gt;IntervalMatch (date)&lt;/P&gt;
&lt;P&gt;LOAD [date start], [date end]&lt;/P&gt;
&lt;P&gt;Resident tabExchangeRates;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabData)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [date start],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [date end],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AutoNumberHash128([date start], [date end]) as %PeriodID&lt;/P&gt;
&lt;P&gt;Resident tabData;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Fields [date start], [date end] From tabData;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_130134_Pic3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/64884_QlikCommunity_Thread_130134_Pic3.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_130134_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/64885_QlikCommunity_Thread_130134_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_130134_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/64886_QlikCommunity_Thread_130134_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 23:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/matching-currency-exchange-rate/m-p/715403#M672380</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-20T23:24:25Z</dc:date>
    </item>
  </channel>
</rss>

