<?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: Use a variable from an input box in a calculation to set another variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-a-variable-from-an-input-box-in-a-calculation-to-set-another/m-p/980233#M649732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what I was doing wrong...&lt;/P&gt;&lt;P&gt;I was defining the variable as = $(vCommAmt)*$(vCommPct) instead of =vCommAmt*vCommPct.&lt;/P&gt;&lt;P&gt;It's working now, thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2015 13:46:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-18T13:46:13Z</dc:date>
    <item>
      <title>Use a variable from an input box in a calculation to set another variable</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-from-an-input-box-in-a-calculation-to-set-another/m-p/980231#M649730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a situation where I need users to enter two values in an input box and then I need those numbers to be multiplied and stored in another variable to be used in a chart. I have tried both document triggers, actions in a text box, and assigning the expression to the variable with no luck. See below for details.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99355_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;The user chooses the two values above (vCommAmt (15) and vCommPct (40)) from the drop down lists in input boxes.&lt;/P&gt;&lt;P&gt;The last part (=$600) is a text box with an expression of = $(vCommAmt)*$(vCommPct).&lt;/P&gt;&lt;P&gt;What I'd rather do is set a variable called vVarComm = $(vCommAmt)*$(vCommPct) and then use that variable in a chart. I have tried setting the variable in the script and setting document triggers 'On Input' and 'On Change' for the above variables but I either get nothing or an error.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 13:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-from-an-input-box-in-a-calculation-to-set-another/m-p/980231#M649730</guid>
      <dc:creator />
      <dc:date>2015-09-18T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable from an input box in a calculation to set another variable</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-from-an-input-box-in-a-calculation-to-set-another/m-p/980232#M649731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply define a new variable with an expression as contents like this, don't forget the =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="vCalc.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99356_vCalc.png" style="height: 473px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="vCalc2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/99357_vCalc2.png" style="height: 184px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also example attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 13:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-from-an-input-box-in-a-calculation-to-set-another/m-p/980232#M649731</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-09-18T13:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable from an input box in a calculation to set another variable</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-from-an-input-box-in-a-calculation-to-set-another/m-p/980233#M649732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what I was doing wrong...&lt;/P&gt;&lt;P&gt;I was defining the variable as = $(vCommAmt)*$(vCommPct) instead of =vCommAmt*vCommPct.&lt;/P&gt;&lt;P&gt;It's working now, thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 13:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-from-an-input-box-in-a-calculation-to-set-another/m-p/980233#M649732</guid>
      <dc:creator />
      <dc:date>2015-09-18T13:46:13Z</dc:date>
    </item>
  </channel>
</rss>

