<?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: Load field value from a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315606#M116445</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;You need to keep tha variable in single quotes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;'&lt;/STRONG&gt;$(SelectionAlias)&lt;STRONG&gt;'&lt;/STRONG&gt; as Selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, Field_A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached sample may help you to resolve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2011 08:40:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-01T08:40:02Z</dc:date>
    <item>
      <title>Load field value from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315605#M116444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to get a field value from a variable, but haven't figured out the syntax. The goal is to have the same value for each row, but that value should come from a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building the table called Selections step-by-step and in this step I want all the values of Field_A from MyTable to be linked to value 'Advanced'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;Concatenate(Selections)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;'Advanced' as Selection&lt;/P&gt;&lt;P&gt;, Field_A&lt;/P&gt;&lt;P&gt;RESIDENT MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't:&lt;/P&gt;&lt;P&gt;SET SelectionAlias = 'Advanced';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Selections)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(SelectionAlias) as Selection&lt;/P&gt;&lt;P&gt;, Field_A&lt;/P&gt;&lt;P&gt;RESIDENT MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a lot of things how to make the loading script to understand that it is not a field called Advanced I want to look for but instead the value 'Advanced' I want to have on every row. Hopefully it is just a simple question of correct syntax but I'm running out ideas what to try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to look for similar questions but all I was able to find was how to get field values to a variable, but here I'm doing the opposite.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 07:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315605#M116444</guid>
      <dc:creator />
      <dc:date>2011-09-01T07:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load field value from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315606#M116445</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;You need to keep tha variable in single quotes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;'&lt;/STRONG&gt;$(SelectionAlias)&lt;STRONG&gt;'&lt;/STRONG&gt; as Selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, Field_A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached sample may help you to resolve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 08:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315606#M116445</guid>
      <dc:creator />
      <dc:date>2011-09-01T08:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load field value from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315607#M116446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much! I was thinking about trying that but then I just assumed that the field name would become to be $(SelectionAlias) instead of the Advanced. Should've tried that anyway and not trust my instinct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 08:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315607#M116446</guid>
      <dc:creator />
      <dc:date>2011-09-01T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load field value from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315608#M116447</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;HaHaaa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad it helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 08:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-field-value-from-a-variable/m-p/315608#M116447</guid>
      <dc:creator />
      <dc:date>2011-09-01T08:52:10Z</dc:date>
    </item>
  </channel>
</rss>

