<?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 Maintain variable formula when value manually entered. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340170#M125585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem where I am calculating rankings / bandings.&amp;nbsp; These are based on 2 different weightings:&lt;/P&gt;&lt;P&gt;Sales Weight &amp;amp; Growth Weight&amp;nbsp; (vSales &amp;amp; vGrowth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 sliders representing these 2 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both variables summed together should always be equal to 100% (or 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I set the vSales = 1-vGrowth and vGrowth = 1-vSales then it essentially works but as soon as you move one the sliders then the underlying variable gets reset to the actual value you selected on the slider. (The other slider will move by itself until you actually set that maually in which case it will also replace the underlying formula)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be an elegent way to achieve this ?&amp;nbsp; Perhaps by using a 3rd subsitiute variable ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 12:57:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-07T12:57:02Z</dc:date>
    <item>
      <title>Maintain variable formula when value manually entered.</title>
      <link>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340170#M125585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem where I am calculating rankings / bandings.&amp;nbsp; These are based on 2 different weightings:&lt;/P&gt;&lt;P&gt;Sales Weight &amp;amp; Growth Weight&amp;nbsp; (vSales &amp;amp; vGrowth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 sliders representing these 2 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both variables summed together should always be equal to 100% (or 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I set the vSales = 1-vGrowth and vGrowth = 1-vSales then it essentially works but as soon as you move one the sliders then the underlying variable gets reset to the actual value you selected on the slider. (The other slider will move by itself until you actually set that maually in which case it will also replace the underlying formula)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be an elegent way to achieve this ?&amp;nbsp; Perhaps by using a 3rd subsitiute variable ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 12:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340170#M125585</guid>
      <dc:creator />
      <dc:date>2012-03-07T12:57:02Z</dc:date>
    </item>
    <item>
      <title>Maintain variable formula when value manually entered.</title>
      <link>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340171#M125586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a note here - it does not have to move the sliders automatically - it can also constain the values toa maximum based on the other value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 13:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340171#M125586</guid>
      <dc:creator />
      <dc:date>2012-03-07T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Maintain variable formula when value manually entered.</title>
      <link>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340172#M125587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I figured it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set up a trigger for the OnChange event when the variable changes.&amp;nbsp; On that trigger pick the set variable option and set the other related variable to be equal to 1-this variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE:&amp;nbsp; On change of vSales set vGrowth = 1-vSales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On change of vGrowth set vSales = 1-vGrowth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and there we have it - sliders that move in relation to each other !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only problem is now I need to figure out if this will work in Ajax client and any other environments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 13:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340172#M125587</guid>
      <dc:creator />
      <dc:date>2012-03-07T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Maintain variable formula when value manually entered.</title>
      <link>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340173#M125588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now the question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do the same thing with 3 variables ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 13:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maintain-variable-formula-when-value-manually-entered/m-p/340173#M125588</guid>
      <dc:creator />
      <dc:date>2012-03-07T13:49:41Z</dc:date>
    </item>
  </channel>
</rss>

