<?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: Set input field with expression from chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036998#M637263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your formula is doing that. Look at P4 Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picking stock, since Sum(Stock) is lower when no selection is made&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121728_Capture.PNG" style="height: 283px; width: 620px;" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picking Quanitity, since Sum(Stock) is higher now based on Month 1 and 2 selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121729_Capture.PNG" style="height: 311px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't that what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 20:42:35 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-14T20:42:35Z</dc:date>
    <item>
      <title>Set input field with expression from chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036995#M637260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an input field initialized with zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set a value on it based on a expression of a chart, and only then the user can adjust it.&lt;/P&gt;&lt;P&gt;I need that because the inicial calculation of this field is based on a sum of selected items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This what I have:&lt;/P&gt;&lt;P&gt;Inventory:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Stock&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sells History:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Quantity&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Demand:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sum(Quantity)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Allocated&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My inputfield is "Allocated". In this example, I selected the Months 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial expression for it is:&lt;/P&gt;&lt;P&gt;If(Sum(Stock) &amp;gt;= Sum(Quantity), &lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Quantity), &lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Stock))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Product P1, the "initial value" of the input field "Allocated" is 7 (because the Sum(Quantity) is based on Months 1 and 2).&lt;/P&gt;&lt;P&gt;If I change the selection of the Months, the initial value of the input field "Allocated" should change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;Josué&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 18:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036995#M637260</guid>
      <dc:creator />
      <dc:date>2016-04-14T18:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set input field with expression from chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036996#M637261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really understand the requirement clearly, would you be able to share the output you are expecting based on few different selections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 18:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036996#M637261</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T18:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set input field with expression from chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036997#M637262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's consider that the value of Sum(Stock) of Product P1 is 8 (Ignore the first table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select the Months 1 and 2, the Sum(Quantity) of product P1 is 7 (see second table).&lt;/P&gt;&lt;P&gt;So, following the expression for the initial value of "Allocated" of Product P1, its value should be 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Months 1, 2 an 3, the Sum(Quantity) of Product P1 is 9 (3 + 4 + 2).&lt;/P&gt;&lt;P&gt;With that, the initial value of "Allocated" should be 8 (according to the formula expression).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 18:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036997#M637262</guid>
      <dc:creator />
      <dc:date>2016-04-14T18:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set input field with expression from chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036998#M637263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your formula is doing that. Look at P4 Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picking stock, since Sum(Stock) is lower when no selection is made&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121728_Capture.PNG" style="height: 283px; width: 620px;" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picking Quanitity, since Sum(Stock) is higher now based on Month 1 and 2 selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121729_Capture.PNG" style="height: 311px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't that what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 20:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036998#M637263</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T20:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set input field with expression from chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036999#M637264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but I need that &lt;STRONG&gt;inside&lt;/STRONG&gt; an input field. &lt;/P&gt;&lt;P&gt;My idea (actually the client's idea) is the following:&lt;/P&gt;&lt;P&gt;The user select a couple of months, then we will have an "initial" value for "Allocated" (based on the expression).&lt;/P&gt;&lt;P&gt;Then, he can adjust this value manually.&lt;/P&gt;&lt;P&gt;As the expression is based on selections, I cannot set an initial value for this field using the load scripts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-input-field-with-expression-from-chart/m-p/1036999#M637264</guid>
      <dc:creator />
      <dc:date>2016-04-15T10:44:32Z</dc:date>
    </item>
  </channel>
</rss>

