<?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 Expression based on variable not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Expression-based-on-variable-not-working/m-p/1872449#M71981</link>
    <description>&lt;P&gt;Hi, it's the syntax. Should look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SUM({$&amp;lt;[HospitalSystem]={'$(vHospitalSystem)'}&amp;gt;}[Target1])&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 17 Dec 2021 06:38:27 GMT</pubDate>
    <dc:creator>RsQK</dc:creator>
    <dc:date>2021-12-17T06:38:27Z</dc:date>
    <item>
      <title>Set Expression based on variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-based-on-variable-not-working/m-p/1872321#M71973</link>
      <description>&lt;P&gt;I have multiple buttons.&amp;nbsp; When one of them is clicked, it will set a variable - vHospitalSystem - to a value.&amp;nbsp; I, then, want to use that value to select a column from a table and bring back that value:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;HospitalSystem&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Target1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Target2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;ABCM&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;25&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;35&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;DEFN&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;20&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;23&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My expression is:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= sum({$&amp;lt;[HospitalSystem] = ${vHospitalSystem} &amp;gt;}[Target1])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked that the variable is set to the correct Hospital System (ABCM).&amp;nbsp; I do not understand why it is bringing back 0 and not 25.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-based-on-variable-not-working/m-p/1872321#M71973</guid>
      <dc:creator>julietotsch</dc:creator>
      <dc:date>2021-12-23T18:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression based on variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-based-on-variable-not-working/m-p/1872449#M71981</link>
      <description>&lt;P&gt;Hi, it's the syntax. Should look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SUM({$&amp;lt;[HospitalSystem]={'$(vHospitalSystem)'}&amp;gt;}[Target1])&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Dec 2021 06:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-based-on-variable-not-working/m-p/1872449#M71981</guid>
      <dc:creator>RsQK</dc:creator>
      <dc:date>2021-12-17T06:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression based on variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-based-on-variable-not-working/m-p/1872466#M71984</link>
      <description>&lt;P&gt;What is the expression of&amp;nbsp;&lt;SPAN&gt;vHospitalSystem?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 07:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-based-on-variable-not-working/m-p/1872466#M71984</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2021-12-17T07:28:07Z</dc:date>
    </item>
  </channel>
</rss>

