<?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: 1 “Set Variable” action affect many variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809644#M285758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the responses.&amp;nbsp; To close the loop...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The suggestion to create multiple "Set Variable" actions is correct, but I needed a work around to be able to mass produce this activity because my real application has hundreds of user input variables.&lt;/P&gt;&lt;P&gt;2) The suggestion to set the variables equal to their parent in the hierarchy is a good start, but I needed my end user to be able to interact with each of these hundreds of variables on the fly.&lt;/P&gt;&lt;P&gt;3) I settled on the use of VBA macros to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pic1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/82821_pic1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I made a handful of subroutines to push &amp;amp; pull the user input values at different levels&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Apply L1 Rates to all&lt;/LI&gt;&lt;LI&gt;Recall L1 Rates&lt;/LI&gt;&lt;LI&gt;Apply Government L1 Rates to all&lt;/LI&gt;&lt;LI&gt;Recall L1 Gov rates&lt;/LI&gt;&lt;LI&gt;Apply L2 Rates to all&lt;/LI&gt;&lt;LI&gt;Recall L2 Rates&lt;/LI&gt;&lt;LI&gt;Apply Government L2 Rates to all&lt;/LI&gt;&lt;LI&gt;Recall Gov L2 rates&lt;/LI&gt;&lt;LI&gt;Clear All&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Each of the above applies to the L3 user input variables (about 150 for each of normal and Federal Gov)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 16:27:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-02T16:27:03Z</dc:date>
    <item>
      <title>1 “Set Variable” action affect many variables</title>
      <link>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809640#M285754</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 am wondering if there is a way to have 1 "Set Variable" action affect many other variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, regarding hierarchical variables...&lt;/P&gt;&lt;P&gt;I would like to assign the value of a level 1 variable to override all the values of the related level 2 variables.&amp;nbsp; Perhaps they could get listed with a separator between each variable?&lt;/P&gt;&lt;P&gt;e.g. the following image is the essence, but it does not work:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pic1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82174_pic1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no way to do it in the Qlikview environment, please provide resources that will help me create a macro (I have lots of experience in coding in VBA).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 18:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809640#M285754</guid>
      <dc:creator />
      <dc:date>2015-03-27T18:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: 1 “Set Variable” action affect many variables</title>
      <link>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809641#M285755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Set Variable action can set the value of only one variable. You can use three Set Variable actions, one for each variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 19:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809641#M285755</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-28T19:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: 1 “Set Variable” action affect many variables</title>
      <link>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809642#M285756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Gysbert, why can't you use three set variable actions for the same object giving them all the same value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82217_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/82218_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/82219_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 19:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809642#M285756</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-28T19:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: 1 “Set Variable” action affect many variables</title>
      <link>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809643#M285757</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;What I would try is&lt;/P&gt;&lt;P&gt;If you are creating your variable in the script then do this&lt;/P&gt;&lt;P&gt;SET vTest1 =1 ;&lt;/P&gt;&lt;P&gt;SET vTest2 = '=vTest1';&lt;/P&gt;&lt;P&gt;SET vTest3 = '=vTest1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which mean in the UI you can assign a value to vTest1 from anyway and vTest2 &amp;amp; vTest3 will inherit their values from vTest1.&lt;/P&gt;&lt;P&gt;If you're creating your variable from Variable overview simply create vTest1 assign value of your choice then create vTest2 and give it value to be =vTest1 and same for vTest3 it value should be =vTest1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple test I did quickly was to have all the variables in Input Box and assign value to vTest1 and I can see vTest2 and vTest3 having same value as vTest1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 22:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809643#M285757</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-03-28T22:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: 1 “Set Variable” action affect many variables</title>
      <link>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809644#M285758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the responses.&amp;nbsp; To close the loop...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The suggestion to create multiple "Set Variable" actions is correct, but I needed a work around to be able to mass produce this activity because my real application has hundreds of user input variables.&lt;/P&gt;&lt;P&gt;2) The suggestion to set the variables equal to their parent in the hierarchy is a good start, but I needed my end user to be able to interact with each of these hundreds of variables on the fly.&lt;/P&gt;&lt;P&gt;3) I settled on the use of VBA macros to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pic1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/82821_pic1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I made a handful of subroutines to push &amp;amp; pull the user input values at different levels&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Apply L1 Rates to all&lt;/LI&gt;&lt;LI&gt;Recall L1 Rates&lt;/LI&gt;&lt;LI&gt;Apply Government L1 Rates to all&lt;/LI&gt;&lt;LI&gt;Recall L1 Gov rates&lt;/LI&gt;&lt;LI&gt;Apply L2 Rates to all&lt;/LI&gt;&lt;LI&gt;Recall L2 Rates&lt;/LI&gt;&lt;LI&gt;Apply Government L2 Rates to all&lt;/LI&gt;&lt;LI&gt;Recall Gov L2 rates&lt;/LI&gt;&lt;LI&gt;Clear All&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Each of the above applies to the L3 user input variables (about 150 for each of normal and Federal Gov)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-Set-Variable-action-affect-many-variables/m-p/809644#M285758</guid>
      <dc:creator />
      <dc:date>2015-04-02T16:27:03Z</dc:date>
    </item>
  </channel>
</rss>

