<?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: Item with &amp;quot;variable&amp;quot; name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63468#M511163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some sample data and your expected output here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 14:40:54 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2018-04-05T14:40:54Z</dc:date>
    <item>
      <title>Item with "variable" name</title>
      <link>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63465#M511160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i wanna take in my text box a field of my table with name according with the selected year. I try to explain, i have these 3 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD1_2017&lt;/P&gt;&lt;P&gt;FIELD1_2018&lt;/P&gt;&lt;P&gt;FIELD1_2019&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select my year filed (for example 2018), i want in&amp;nbsp; my text box i see : Sum(FIELD1_2019)&lt;/P&gt;&lt;P&gt;i know i can do that with some IF statement, but is possible in qlikview call a field &lt;SPAN lang="en"&gt;composing it runtime with &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;name=FIELD1_ + selected year&amp;nbsp;&amp;nbsp; ?&amp;nbsp; like Sum(FIELD1_[SELECTED_YEAR])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63465#M511160</guid>
      <dc:creator>danosoft</dc:creator>
      <dc:date>2018-04-05T13:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Item with "variable" name</title>
      <link>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63466#M511161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Daniele,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can accomplish this with a variable easily:&lt;/P&gt;&lt;P&gt;vField==FIELD1_'&amp;amp;GetFieldSelections(Year)&lt;/P&gt;&lt;P&gt;sum($(vField)) inside the chart/text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63466#M511161</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2018-04-05T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Item with "variable" name</title>
      <link>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63467#M511162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks, but it show me 0, if i show only the variable it show me correctly the name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63467#M511162</guid>
      <dc:creator>danosoft</dc:creator>
      <dc:date>2018-04-05T14:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Item with "variable" name</title>
      <link>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63468#M511163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some sample data and your expected output here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63468#M511163</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-04-05T14:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Item with "variable" name</title>
      <link>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63469#M511164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general the logic suggested from Eliran will work and probably there is just an issue with syntax. Personally I would probably use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum($(='FIELD1_' &amp;amp; max(Year)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get also a working expression if more as one year is selected respectively possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside this it might be much easier if you transformed your crosstable into a "normal" table-structure per &lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63469#M511164</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-04-05T14:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Item with "variable" name</title>
      <link>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63470#M511165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this is better becouse i can use it not only in variable, i didn't want create a lot of variable, in this way i can use it directly in my text script.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Item-with-quot-variable-quot-name/m-p/63470#M511165</guid>
      <dc:creator>danosoft</dc:creator>
      <dc:date>2018-04-05T14:48:47Z</dc:date>
    </item>
  </channel>
</rss>

