<?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 Syntax to use variable to form field name in Sum formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-to-use-variable-to-form-field-name-in-Sum-formula/m-p/972948#M966629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikviewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a series of field names in my data load [May Revenue], [Jun Revenue], [Jul Revenue], etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is used in a simple Sum formula, example =Sum ([May Revenue]), but instead of hard coding the formula for each month, I want to allow the user to specify the month and the value is saved in a variable (vMonth).&amp;nbsp; This variable should be combined with the word "Revenue" to form one of the field names above and used in a Sum formula.&amp;nbsp; Ideally, it would be something like this =Sum(vMonth&amp;amp;"Revenue").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I be able to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2015 23:57:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-30T23:57:30Z</dc:date>
    <item>
      <title>Syntax to use variable to form field name in Sum formula</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-to-use-variable-to-form-field-name-in-Sum-formula/m-p/972948#M966629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikviewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a series of field names in my data load [May Revenue], [Jun Revenue], [Jul Revenue], etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is used in a simple Sum formula, example =Sum ([May Revenue]), but instead of hard coding the formula for each month, I want to allow the user to specify the month and the value is saved in a variable (vMonth).&amp;nbsp; This variable should be combined with the word "Revenue" to form one of the field names above and used in a Sum formula.&amp;nbsp; Ideally, it would be something like this =Sum(vMonth&amp;amp;"Revenue").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I be able to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 23:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-to-use-variable-to-form-field-name-in-Sum-formula/m-p/972948#M966629</guid>
      <dc:creator />
      <dc:date>2015-09-30T23:57:30Z</dc:date>
    </item>
  </channel>
</rss>

