<?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 Question about variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-about-variables/m-p/404150#M1156195</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 created several variables for different exchange rates, for example $(vCurrencyEUR), $(vCurrencyUSD). &lt;/P&gt;&lt;P&gt;In my expression I would like to choose which variable it should divide with depending on which Currency it has on the transaction row &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Currency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;USD&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;GBP&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I look at Company A and have an expression like SUM(Amount) I want to divide this with $(vCurrencyEUR) to get the amount in GBP. It it possible to change the variable name in the expression? Something equal to: SUM(Amount) / '$(vCurrency' &amp;amp; [Currency Code] &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just FYI: I cannot do this in the script since the user want to be able to see all the values to the latest rate, the budget rate or the different periods rates. I.E. I have to divide the value with different rates depending on which choices the user makes in the application. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 11:48:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-05T11:48:58Z</dc:date>
    <item>
      <title>Question about variables</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-variables/m-p/404150#M1156195</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 created several variables for different exchange rates, for example $(vCurrencyEUR), $(vCurrencyUSD). &lt;/P&gt;&lt;P&gt;In my expression I would like to choose which variable it should divide with depending on which Currency it has on the transaction row &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Currency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;USD&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;GBP&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I look at Company A and have an expression like SUM(Amount) I want to divide this with $(vCurrencyEUR) to get the amount in GBP. It it possible to change the variable name in the expression? Something equal to: SUM(Amount) / '$(vCurrency' &amp;amp; [Currency Code] &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just FYI: I cannot do this in the script since the user want to be able to see all the values to the latest rate, the budget rate or the different periods rates. I.E. I have to divide the value with different rates depending on which choices the user makes in the application. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 11:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-variables/m-p/404150#M1156195</guid>
      <dc:creator />
      <dc:date>2013-02-05T11:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question about variables</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-variables/m-p/404151#M1156196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know You said You can't do it in script, but could You do something else with script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example load extra table (small one, with two fields)?&amp;nbsp; or it has to be done on presentation layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 11:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-variables/m-p/404151#M1156196</guid>
      <dc:creator />
      <dc:date>2013-02-08T11:21:20Z</dc:date>
    </item>
  </channel>
</rss>

