<?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 Setting Multiple Variable Values at the one time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590089#M63095</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;Using the Variable Input extension, I note it is possible to dynamically change the value of a single variable.&lt;/P&gt;&lt;P&gt;e.g. Variable1 is assigned a value based on a selection made by the user such as in a drop down box.&lt;/P&gt;&lt;P&gt;How do I set multiple variables at the one time:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Chart&lt;/TD&gt;&lt;TD&gt;Variable1&lt;/TD&gt;&lt;TD&gt;Variable2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Total1&lt;/TD&gt;&lt;TD&gt;Line1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Total2&lt;/TD&gt;&lt;TD&gt;Line2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Total2&lt;/TD&gt;&lt;TD&gt;Line3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if the user selects Chart A, then Variable 1 is set to 'Total1' and Variable2 is set to 'Line1'&lt;/P&gt;&lt;P&gt;Else I have expressions loaded in that are relying on the variable value&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&amp;nbsp; Sum ( {&amp;lt; '$(Variable1)' = {1}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:37:57 GMT</pubDate>
    <dc:creator>colinodonnel</dc:creator>
    <dc:date>2024-11-16T05:37:57Z</dc:date>
    <item>
      <title>Setting Multiple Variable Values at the one time</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590089#M63095</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;Using the Variable Input extension, I note it is possible to dynamically change the value of a single variable.&lt;/P&gt;&lt;P&gt;e.g. Variable1 is assigned a value based on a selection made by the user such as in a drop down box.&lt;/P&gt;&lt;P&gt;How do I set multiple variables at the one time:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Chart&lt;/TD&gt;&lt;TD&gt;Variable1&lt;/TD&gt;&lt;TD&gt;Variable2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Total1&lt;/TD&gt;&lt;TD&gt;Line1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Total2&lt;/TD&gt;&lt;TD&gt;Line2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Total2&lt;/TD&gt;&lt;TD&gt;Line3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if the user selects Chart A, then Variable 1 is set to 'Total1' and Variable2 is set to 'Line1'&lt;/P&gt;&lt;P&gt;Else I have expressions loaded in that are relying on the variable value&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&amp;nbsp; Sum ( {&amp;lt; '$(Variable1)' = {1}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590089#M63095</guid>
      <dc:creator>colinodonnel</dc:creator>
      <dc:date>2024-11-16T05:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Multiple Variable Values at the one time</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590418#M63096</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you already set one variable? Then you can do exactly the same for nr 2. But if the Variable Input Extension can only hold one variable, then you need that one twice.&lt;/P&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590418#M63096</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-11T11:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Multiple Variable Values at the one time</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590487#M63097</link>
      <description>&lt;P&gt;Hi Jordi,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Yes I couldn't quite work out how to use the Variable Input Extension twice.&lt;/P&gt;&lt;P&gt;In the end I did find a solution by creating an variable island in the data model&amp;nbsp; - loaded a table much like the one in my question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then referenced the variables via Set Analysis e.g.&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;$(=FlagSelector) = {1}&amp;gt;}&amp;nbsp; $(=TotalSelector) )&amp;nbsp;&lt;/P&gt;&lt;P&gt;works a treat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590487#M63097</guid>
      <dc:creator>colinodonnel</dc:creator>
      <dc:date>2019-06-11T13:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Multiple Variable Values at the one time</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590494#M63098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sounds good! Great that it worked. Please close the post.&lt;/P&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Multiple-Variable-Values-at-the-one-time/m-p/1590494#M63098</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-11T13:36:27Z</dc:date>
    </item>
  </channel>
</rss>

