<?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 Using variable from input box in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400170#M798774</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 an input box where I pick values from a list for variable vMargin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want to use this variable in a simple expression in a chart, I'm getting a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i just use the expression =$(vMargin), I get the value of variable as picked in the input box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I add another element to the margin, even a constant e.g. 100/$(vMargin), I'm getting a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mazacini</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Using variable from input box in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400170#M798774</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 an input box where I pick values from a list for variable vMargin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want to use this variable in a simple expression in a chart, I'm getting a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i just use the expression =$(vMargin), I get the value of variable as picked in the input box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I add another element to the margin, even a constant e.g. 100/$(vMargin), I'm getting a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400170#M798774</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable from input box in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400171#M798775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try adding sum or aggr such as sum(100/$(vMargin)) or aggr(100/$(vMargin), Dim)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 21:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400171#M798775</guid>
      <dc:creator>justinvchiang</dc:creator>
      <dc:date>2017-12-13T21:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable from input box in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400172#M798776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Justin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual expression I have uses a Set Analysis expression as the numerator, and then the variable as the denominator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Sum({&amp;lt;Dim={'ValueA'}&amp;gt;}/(1-$(vMargin))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 22:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400172#M798776</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2017-12-13T22:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable from input box in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400173#M798777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get this to work using sample data if this is what you were going for:&lt;/P&gt;&lt;P&gt; s&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;um&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'ValueA'}&amp;gt;} &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;fact&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;/(1-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMargin)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 22:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400173#M798777</guid>
      <dc:creator>justinvchiang</dc:creator>
      <dc:date>2017-12-13T22:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable from input box in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400174#M798778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Justin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works fine for me now.&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;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 22:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400174#M798778</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2017-12-13T22:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable from input box in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400175#M798779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great!&amp;nbsp; Glad it worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 22:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-from-input-box-in-expression/m-p/1400175#M798779</guid>
      <dc:creator>justinvchiang</dc:creator>
      <dc:date>2017-12-13T22:57:22Z</dc:date>
    </item>
  </channel>
</rss>

