<?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: Avg(ExRATE) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avg-ExRATE/m-p/505149#M188848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - but i have an exchange rate table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial objective was to take the average exchange rate of the period selected. Which i have done, and the results are 100%.. however that was a single currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that there are multiple currencies, i need to group the transactions by currency, and also the exchange rate table (by currency).. then ADD them each separately...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the sample files attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 11:01:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-21T11:01:08Z</dc:date>
    <item>
      <title>Avg(ExRATE)</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-ExRATE/m-p/505147#M188846</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 the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(curr='zar',amt)) / avg(if(curr='zar',exRate))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;sum(if(curr='EUR',amt)) / avg(if(curr='EUR',exRate))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the result I want using the above, however it is not practical, as I have to add to the code whenever a new company (with a new currency) is added to the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a sample attached...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a mil!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-ExRATE/m-p/505147#M188846</guid>
      <dc:creator />
      <dc:date>2013-08-20T09:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Avg(ExRATE)</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-ExRATE/m-p/505148#M188847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should probably create an exchange rate table like explained in this blog post:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/25/creating-intervals-from-change-dates" style="font-style: inherit; font-family: inherit; color: #3d3d3d; text-decoration: underline;"&gt;Creating a Date Interval from a Single Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And then use intervalmatch to match the dates with the correct interval for the rates. See this document for more information: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4310"&gt;http://community.qlik.com/docs/DOC-4310&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;A _jive_internal="true" href="https://community.qlik.com/thread/89399"&gt;this discussion&lt;/A&gt; for a similar problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 18:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-ExRATE/m-p/505148#M188847</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-20T18:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Avg(ExRATE)</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-ExRATE/m-p/505149#M188848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - but i have an exchange rate table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial objective was to take the average exchange rate of the period selected. Which i have done, and the results are 100%.. however that was a single currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that there are multiple currencies, i need to group the transactions by currency, and also the exchange rate table (by currency).. then ADD them each separately...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the sample files attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 11:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-ExRATE/m-p/505149#M188848</guid>
      <dc:creator />
      <dc:date>2013-08-21T11:01:08Z</dc:date>
    </item>
  </channel>
</rss>

