<?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: Dynamic fieldname in expression for currency conversion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320436#M409314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rates vary by invoice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Apr 2017 10:48:22 GMT</pubDate>
    <dc:creator>nleitgeb</dc:creator>
    <dc:date>2017-04-26T10:48:22Z</dc:date>
    <item>
      <title>Dynamic fieldname in expression for currency conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320434#M409312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hi everybody,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;for a dynamic currency conversion in QlikView I like to use dynamic fieldnames in an expression.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Unfortunately without success and I need some help please! &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Here is an example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161273_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The bold part is the dynamic expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I`ve tried to generate this part without success. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/161274_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;What`s wrong? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;There are about 15 currencies and 8 KPI`s, thus I don`t want to create these conversions in script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Thanks in advance! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Nicole&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 08:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320434#M409312</guid>
      <dc:creator>nleitgeb</dc:creator>
      <dc:date>2017-04-26T08:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldname in expression for currency conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320435#M409313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the rates constant for the data or do they vary by invoice?&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, 26 Apr 2017 10:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320435#M409313</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-04-26T10:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldname in expression for currency conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320436#M409314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rates vary by invoice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 10:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320436#M409314</guid>
      <dc:creator>nleitgeb</dc:creator>
      <dc:date>2017-04-26T10:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldname in expression for currency conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320437#M409315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case I think you'll have to do it like this and list all currencies and rate fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Gross Sales] /&lt;/P&gt;&lt;P&gt;pick(Match([Currency Invoice], 'GBP', 'USD'), ExRateGBP, ExRateUSD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 11:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320437#M409315</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-04-26T11:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldname in expression for currency conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320438#M409316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It`s working! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Thank you very much, Rob!!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161310_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 11:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320438#M409316</guid>
      <dc:creator>nleitgeb</dc:creator>
      <dc:date>2017-04-26T11:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldname in expression for currency conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320439#M409317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear. For performance you may want to do the pick in the script and establish a new field:&lt;/P&gt;&lt;P&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;pick(Match([Currency Invoice], 'GBP', 'USD'), ExRateGBP, ExRateUSD) as Rate&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;&lt;BR /&gt;&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;and then your chart expression is simplified to:&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;&lt;BR /&gt;&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;[Gross Sales] / Rate&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 11:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320439#M409317</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-04-26T11:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldname in expression for currency conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320440#M409318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; It´s working as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 13:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fieldname-in-expression-for-currency-conversion/m-p/1320440#M409318</guid>
      <dc:creator>nleitgeb</dc:creator>
      <dc:date>2017-04-26T13:09:36Z</dc:date>
    </item>
  </channel>
</rss>

