<?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 Set a field as a variable?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-a-field-as-a-variable/m-p/331375#M1172058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my current model im trying to set a variable to read data from a column in an excel sheet. Im trying to set the field name as the variable so that if the data changes, it wont affect the variable being read by a where condition. It saves me having to hard code data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried "let vCost=COST(which is the field name) but it doesnt seem to work in practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any advice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2012 13:17:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-03T13:17:18Z</dc:date>
    <item>
      <title>Set a field as a variable??</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-field-as-a-variable/m-p/331375#M1172058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my current model im trying to set a variable to read data from a column in an excel sheet. Im trying to set the field name as the variable so that if the data changes, it wont affect the variable being read by a where condition. It saves me having to hard code data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried "let vCost=COST(which is the field name) but it doesnt seem to work in practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any advice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 13:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-field-as-a-variable/m-p/331375#M1172058</guid>
      <dc:creator />
      <dc:date>2012-07-03T13:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set a field as a variable??</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-field-as-a-variable/m-p/331376#M1172059</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vCost = Cost;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;Set&lt;/SPAN&gt; command assigns the variable the text to the right of the equal sign, whereas the &lt;SPAN class="Bold"&gt;Let&lt;/SPAN&gt; command evaluates the expression.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 13:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-field-as-a-variable/m-p/331376#M1172059</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-03T13:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set a field as a variable??</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-field-as-a-variable/m-p/331377#M1172060</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;The field "COST" contains a thousand rows of data. So I would like to create a variable to account for all the data. If that makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 14:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-field-as-a-variable/m-p/331377#M1172060</guid>
      <dc:creator />
      <dc:date>2012-07-03T14:01:47Z</dc:date>
    </item>
  </channel>
</rss>

