<?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: Currency rates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064357#M355913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the QVD for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ExecutionReport and do the bwlow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currency:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Date,'DD/MM/YYYY') as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;currency ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...other required columns&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FROM &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ExecutionReport.qvd(qvd)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(&lt;SPAN style="font-size: 13.3333px;"&gt;Currency)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD date(floor([time]),&lt;SPAN style="font-size: 13.3333px;"&gt;'DD/MM/YYYY') as Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;currency ,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other required ccolumns&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM currency.qvd(qvd)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2016 10:05:58 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-04-07T10:05:58Z</dc:date>
    <item>
      <title>Currency rates</title>
      <link>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064351#M355907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table in my database that stores currency rates, called FXRates. And the executionreport stores execution per local currency.&lt;/P&gt;&lt;P&gt;What I want to do is convert to a certain currency. This is what the SQl looks like at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you perform this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select sum(trade_price * traded_amount * 0.000025 / case when e.currency = 'EUR' then 1.0 else f.rate_eur end) as Turnover, e.currency&lt;/P&gt;&lt;P&gt;from ExecutionReport e&lt;/P&gt;&lt;P&gt;left join FXRate f &lt;/P&gt;&lt;P&gt;on f.currency = e.currency &lt;/P&gt;&lt;P&gt;and f.date = cast(e.[time] as date)&lt;/P&gt;&lt;P&gt;Where client_id = 'blabla'&lt;/P&gt;&lt;P&gt;and exec_broker = 'blablabla'&lt;/P&gt;&lt;P&gt;and user_id = 'blablabla'&lt;/P&gt;&lt;P&gt;and sub_exec_broker is null&lt;/P&gt;&lt;P&gt;and [time] between '2016-03-02' and '2016-03-31'&lt;/P&gt;&lt;P&gt;and market_order_id is not null&lt;/P&gt;&lt;P&gt;and exec_type in ('Fill', 'Partial fill')&lt;/P&gt;&lt;P&gt;group by e.currency&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 10:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064351#M355907</guid>
      <dc:creator />
      <dc:date>2016-04-06T10:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Currency rates</title>
      <link>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064352#M355908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating the connection string from qlikview to connect to database using ODBC/OLEDB drivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run this query directly from qlikview and store it into the QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currency:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select sum(trade_price * traded_amount * 0.000025 / case when e.currency = 'EUR' then 1.0 else f.rate_eur end) as Turnover, e.currency&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from ExecutionReport e&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left join FXRate f&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;on f.currency = e.currency&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and f.date = cast(e.[time] as date)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where client_id = 'blabla'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and exec_broker = 'blablabla'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and user_id = 'blablabla'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and sub_exec_broker is null&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and [time] between '2016-03-02' and '2016-03-31'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and market_order_id is not null&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and exec_type in ('Fill', 'Partial fill')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;group by e.currency;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;STORE &lt;SPAN style="font-size: 13.3333px;"&gt;Currency into&amp;nbsp; Path\Currency.qvd(qvd);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Drop table &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Currency;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 11:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064352#M355908</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-06T11:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Currency rates</title>
      <link>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064353#M355909</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;This might help u!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 11:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064353#M355909</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-04-06T11:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Currency rates</title>
      <link>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064354#M355910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grouping and filtering in your SQL server is often the better option. To do this in QV, you will be transferring a (much?) larger data set over the network which may impact on performance. Just he SQL query in your load script with the SQL prefix. If you need to pass the [time] filter from QV, define it into a variable which you can add to the SQL script via a $ expansion. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 11:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064354#M355910</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-04-06T11:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Currency rates</title>
      <link>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064355#M355911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a QVD that loads current months rates from the FXRate table. Now How dI perform a join on the executionreport you see the join in my initial sql query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 11:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064355#M355911</guid>
      <dc:creator />
      <dc:date>2016-04-06T11:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Currency rates</title>
      <link>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064356#M355912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I perform this join in QV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from ExecutionReport e&lt;/P&gt;&lt;P&gt;left join FXRate f &lt;/P&gt;&lt;P&gt;on f.currency = e.currency &lt;/P&gt;&lt;P&gt;and f.date = cast(e.[time] as date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 11:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064356#M355912</guid>
      <dc:creator />
      <dc:date>2016-04-06T11:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Currency rates</title>
      <link>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064357#M355913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the QVD for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ExecutionReport and do the bwlow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currency:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Date,'DD/MM/YYYY') as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;currency ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...other required columns&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FROM &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ExecutionReport.qvd(qvd)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(&lt;SPAN style="font-size: 13.3333px;"&gt;Currency)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD date(floor([time]),&lt;SPAN style="font-size: 13.3333px;"&gt;'DD/MM/YYYY') as Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;currency ,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other required ccolumns&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM currency.qvd(qvd)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 10:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Currency-rates/m-p/1064357#M355913</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-07T10:05:58Z</dc:date>
    </item>
  </channel>
</rss>

