<?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: Using a variable to hold part of a variable name to use in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427936#M159501</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variableName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its value &lt;STRONG&gt;='Buildings'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then in expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sum($(polsection) Incurred)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 17:54:52 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-12-11T17:54:52Z</dc:date>
    <item>
      <title>Using a variable to hold part of a variable name to use in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427934#M159499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of numeric columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buildings Incurred&lt;/P&gt;&lt;P&gt;Contents Incurred&lt;/P&gt;&lt;P&gt;Other Incurred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable called polsection and it contains the first part of the variable name, e.g. "Buildings", "Contents", "Other"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a table expression that joins this variable to a string to create the full variable name and sums the value of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(=$(polsection)&amp;amp;' Incurred')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum([$(polsection)&amp;amp;' Incurred'])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and every other combination of symbols I can think of. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this even possible? If so how do I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 17:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427934#M159499</guid>
      <dc:creator />
      <dc:date>2012-12-11T17:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable to hold part of a variable name to use in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427935#M159500</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;Yes, that should work, and you are very close:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13552474892453015" jivemacro_uid="_13552474892453015"&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum([$(polsection) Incurred])&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 17:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427935#M159500</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-12-11T17:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable to hold part of a variable name to use in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427936#M159501</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variableName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its value &lt;STRONG&gt;='Buildings'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then in expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sum($(polsection) Incurred)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 17:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427936#M159501</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-11T17:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable to hold part of a variable name to use in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427937#M159502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mayil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other issue is that I want the variable value (='Buildings', ='Contents', etc...) to be selectable in a list box. So I'm trying to use a trigger on list box selection to put the value into a variable, but I don't know how to put ='Buildings' into the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 14:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427937#M159502</guid>
      <dc:creator />
      <dc:date>2012-12-12T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable to hold part of a variable name to use in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427938#M159503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the function&amp;nbsp; Getfieldselection &lt;/P&gt;&lt;P&gt;For example variablename&amp;nbsp; =GetFieldSelection (ListBoxName,',')&amp;nbsp;&amp;nbsp; in the Variable Overview..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 18:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-hold-part-of-a-variable-name-to-use-in-an/m-p/427938#M159503</guid>
      <dc:creator />
      <dc:date>2012-12-12T18:51:52Z</dc:date>
    </item>
  </channel>
</rss>

