<?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 evaluation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-evaluation/m-p/1136228#M635105</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;I have a variable (called YTDToggle) which contains either a 1 or a 0 and is used to toggle/keep track of something in the front end.&amp;nbsp; In the load script it gets assigned a default value of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create another variable using the SET statement which looks something similar to this:&lt;/P&gt;&lt;P&gt;SET myVar = 'pick($(YTDToggle),'something','something else');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of what syntax I choose the result end up like this:&lt;/P&gt;&lt;P&gt;myVar = 'pick(1,'something','something else');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I prevent the $(YTDToggle) evaluting to it's result, in this case 1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Oli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 14:31:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-24T14:31:33Z</dc:date>
    <item>
      <title>SET evaluation</title>
      <link>https://community.qlik.com/t5/QlikView/SET-evaluation/m-p/1136228#M635105</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;I have a variable (called YTDToggle) which contains either a 1 or a 0 and is used to toggle/keep track of something in the front end.&amp;nbsp; In the load script it gets assigned a default value of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create another variable using the SET statement which looks something similar to this:&lt;/P&gt;&lt;P&gt;SET myVar = 'pick($(YTDToggle),'something','something else');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of what syntax I choose the result end up like this:&lt;/P&gt;&lt;P&gt;myVar = 'pick(1,'something','something else');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I prevent the $(YTDToggle) evaluting to it's result, in this case 1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Oli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 14:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-evaluation/m-p/1136228#M635105</guid>
      <dc:creator />
      <dc:date>2016-05-24T14:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: SET evaluation</title>
      <link>https://community.qlik.com/t5/QlikView/SET-evaluation/m-p/1136229#M635106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let myVar = 'pick($' &amp;amp; '(YTDToggle),''something'',''something else'')';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Note the &lt;EM&gt;two single quotes&lt;/EM&gt; for esacping the single quotes around your literal strings.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 14:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-evaluation/m-p/1136229#M635106</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T14:48:29Z</dc:date>
    </item>
  </channel>
</rss>

