<?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 Variable as field name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-as-field-name/m-p/647443#M237115</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 steps to calculate the total value depending on a currency selection button:&lt;/P&gt;&lt;P&gt;1) A button to select&amp;nbsp; between Local Currency/ Euro. The selection is kept in a variable vCurrency (Values can be LC or EUR)&lt;/P&gt;&lt;P&gt;2) A variable: vCurrencyField to select either the field of LC [Amount LC] or the field with EUR calculations [Amount EUR]. The formula I am using is: =if((vCurrency)='EUR','[Amount EUR]','[Amount LC]')&lt;/P&gt;&lt;P&gt;3) I want to use vCurrencyField in another variable vAmount : sum({&amp;lt;Year={$(vCurrent_Year)},Type={$(vType)}&amp;gt;}$(vCurrencyField))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this does not work. Am I missing any $ or = signs? or what could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;AD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 15:21:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-16T15:21:53Z</dc:date>
    <item>
      <title>Variable as field name</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-field-name/m-p/647443#M237115</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 steps to calculate the total value depending on a currency selection button:&lt;/P&gt;&lt;P&gt;1) A button to select&amp;nbsp; between Local Currency/ Euro. The selection is kept in a variable vCurrency (Values can be LC or EUR)&lt;/P&gt;&lt;P&gt;2) A variable: vCurrencyField to select either the field of LC [Amount LC] or the field with EUR calculations [Amount EUR]. The formula I am using is: =if((vCurrency)='EUR','[Amount EUR]','[Amount LC]')&lt;/P&gt;&lt;P&gt;3) I want to use vCurrencyField in another variable vAmount : sum({&amp;lt;Year={$(vCurrent_Year)},Type={$(vType)}&amp;gt;}$(vCurrencyField))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this does not work. Am I missing any $ or = signs? or what could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;AD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-field-name/m-p/647443#M237115</guid>
      <dc:creator />
      <dc:date>2014-10-16T15:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as field name</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-field-name/m-p/647444#M237116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2) Field names don't include the square brackets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 19:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-field-name/m-p/647444#M237116</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-10-16T19:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as field name</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-field-name/m-p/647445#M237117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;i think #2 is wrong too... lose the single quotes&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;"&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;"&gt;=if((vCurrency)='EUR',[Amount EUR],[Amount LC])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;OR #2 is right and you can lose the $() on the vCurrencyField in #3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;sum({&amp;lt;Year={$(vCurrent_Year)},Type={$(vType)}&amp;gt;}&amp;nbsp; vCurrencyField )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 19:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-field-name/m-p/647445#M237117</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-16T19:45:46Z</dc:date>
    </item>
  </channel>
</rss>

