<?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 Can I make a variable the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-make-a-variable-the-expression/m-p/369756#M573652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if it would be possible to make a variable an expression i.e. write the expression in the variable field and have the variable as the definition for the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make buttons that change the variable which shows up in the line graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2012 15:06:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-26T15:06:06Z</dc:date>
    <item>
      <title>Can I make a variable the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-make-a-variable-the-expression/m-p/369756#M573652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if it would be possible to make a variable an expression i.e. write the expression in the variable field and have the variable as the definition for the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make buttons that change the variable which shows up in the line graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 15:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-make-a-variable-the-expression/m-p/369756#M573652</guid>
      <dc:creator />
      <dc:date>2012-07-26T15:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a variable the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-make-a-variable-the-expression/m-p/369757#M573653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i did it once defining the variable from Variable Overview (setting menu) .&lt;/P&gt;&lt;P&gt;I added a new variable vYearSelected and defined as =If(GetPossibleCount([Year])=1,[Year],max([Year])).&lt;/P&gt;&lt;P&gt;Everytime i change the Year selection, the variable change value automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that you can do that also in script using the SET command &lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;SET vYearSelected ='=If(GetPossibleCount([Year])=1,[Year],max([Year]))';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i never tested it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alessio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 15:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-make-a-variable-the-expression/m-p/369757#M573653</guid>
      <dc:creator />
      <dc:date>2012-07-26T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a variable the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-make-a-variable-the-expression/m-p/369758#M573654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course you can do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vSum = 'Sum(Sales)'; (in script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or define them in the variablelist in settings only the text:&lt;/P&gt;&lt;P&gt;Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vSum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings from Munich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 15:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-make-a-variable-the-expression/m-p/369758#M573654</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2012-07-26T15:18:35Z</dc:date>
    </item>
  </channel>
</rss>

