<?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: Variable with multiple values used in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364557#M417806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌'s response deserve the correct answer here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 13:10:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-04T13:10:55Z</dc:date>
    <item>
      <title>Variable with multiple values used in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364552#M417801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if someone can point me in the right direction.&amp;nbsp; Basically I have a variable varGeographicalArea that is defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;varGeographicalArea = =if(Left(GetFieldSelections([Geographical Area]),3) = 'NOT','NOT',replace(Concat(DISTINCT chr(39)&amp;amp;GetFieldSelections([Geographical Area])&amp;amp;chr(39),','),',',chr(39)&amp;amp;', '&amp;amp;chr(39)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So this variable can have multiple values contained in it.&amp;nbsp; e.g. 'Place_A', 'Place_B', 'Place C'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now, when I stick this variable in a formula for a textbox, it only seems to give me the total value for the first value held within the variable varGeographicalArea.&amp;nbsp; This is despite the variable varGeographicalArea holding the value 'Place_A', 'Place_B', 'Place_C'.&amp;nbsp; Here is the formula I'm using for the textbox:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({1&amp;lt;[Geographical Area] = {$(varGeographicalArea)}&amp;gt;} [Incident_Count])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So, rather than expecting the total for geographical areas 'Place_A', 'Place_B', and 'Place_C', I am only getting a total for geographical Area 'Place_A'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help much appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364552#M417801</guid>
      <dc:creator>paul_hallwood</dc:creator>
      <dc:date>2017-05-04T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with multiple values used in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364553#M417802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as your variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;varGeographicalArea = =Chr(39) &amp;amp; GetFieldSelections([Geographical Area], Chr(39) &amp;amp; ',' &amp;amp; Chr(39), 10000) &amp;amp; Chr(39)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364553#M417802</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-04T11:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with multiple values used in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364554#M417803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A variable could contain only one single value at the same time and therefore you couldn't use them within the set analysis on a row-level. But I think in your case the following should be working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({1&amp;lt;[Geographical Area] = p(&lt;SPAN style="font-size: 13.3333px;"&gt;[Geographical Area])&lt;/SPAN&gt;&amp;gt;} [Incident_Count])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364554#M417803</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-04T11:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with multiple values used in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364555#M417804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that's sorted the issue out very nicely!&amp;nbsp; Thank you very much for the speedy response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 12:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364555#M417804</guid>
      <dc:creator>paul_hallwood</dc:creator>
      <dc:date>2017-05-04T12:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with multiple values used in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364556#M417805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcus - funnily enough your answer was spot on too!&amp;nbsp; Can we mark multiple posts as being the correct answer???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for getting back to me too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 12:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364556#M417805</guid>
      <dc:creator>paul_hallwood</dc:creator>
      <dc:date>2017-05-04T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with multiple values used in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364557#M417806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌'s response deserve the correct answer here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364557#M417806</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-04T13:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with multiple values used in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364558#M417807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done.&amp;nbsp; Thank you for your honesty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-multiple-values-used-in-Set-Analysis/m-p/1364558#M417807</guid>
      <dc:creator>paul_hallwood</dc:creator>
      <dc:date>2017-05-04T13:17:12Z</dc:date>
    </item>
  </channel>
</rss>

