<?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 Analysis and Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494031#M1135466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabrice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; This works if I hard code the variable &lt;STRONG&gt;vsubsite1 = Sub Site 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try and use the expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vsubsite1 = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if([Site]='North Division','Sub Site 1',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;if([Site]='Central Division','Sub Site 2',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;if([Site]='South Division','Sub Site 3',&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the chart doesn't plot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 15:44:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-07T15:44:15Z</dc:date>
    <item>
      <title>Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494026#M1135461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using the following variable &lt;STRONG&gt;&lt;EM&gt;vSubSite&lt;/EM&gt;&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;if([Site]='North Division','Sub Site 1',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;if([Site]='Central Division','Sub Site 2',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;if([Site]='South Division','Sub Site 3',&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;which works (I'm testing this in a Text Box).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have a chart with the following set analysis :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({ &amp;lt;sub_site = {'&lt;SPAN style="font-family: Arial, sans-serif;"&gt;Sub Site 1&lt;/SPAN&gt;'}&amp;gt;} Number)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which plots perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try and use &lt;STRONG&gt;&lt;EM&gt;vSubSite1 :&lt;/EM&gt; =sum({ &amp;lt;&lt;STRONG&gt;sub_site&lt;/STRONG&gt; = {$(&lt;STRONG&gt;&lt;EM&gt;vSubSite1&lt;/EM&gt;&lt;/STRONG&gt;)}&amp;gt;} Number)&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;the chart fails to plot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494026#M1135461</guid>
      <dc:creator />
      <dc:date>2013-11-07T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494027#M1135462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is due to the space contained in your variable content, which is = Sub Site 1&lt;/P&gt;&lt;P&gt;Insert the variable name between brackets [], sth like {[$(vsubsite1)]}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the doc I have written: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4951"&gt;http://community.qlik.com/docs/DOC-4951&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494027#M1135462</guid>
      <dc:creator />
      <dc:date>2013-11-07T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494028#M1135463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Try this&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({ &amp;lt;&lt;STRONG&gt;sub_site&lt;/STRONG&gt; = {$(=&lt;STRONG&gt;&lt;EM&gt;vSubSite1&lt;/EM&gt;&lt;/STRONG&gt;)}&amp;gt;} Number)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;sum({ &amp;lt;&lt;STRONG&gt;sub_site&lt;/STRONG&gt; = {=$(=&lt;STRONG&gt;&lt;EM&gt;vSubSite1&lt;/EM&gt;&lt;/STRONG&gt;)}&amp;gt;} Number)&amp;nbsp; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494028#M1135463</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2013-11-07T15:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494029#M1135464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is value is &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vSubSite1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt; in right side.&lt;/P&gt;&lt;P&gt;you are assigning to same variable, that using right side in set..&lt;/P&gt;&lt;P&gt;try like below in variable expression,&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vSubSite1 &lt;/EM&gt;=sum({ &amp;lt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sub_site&lt;/STRONG&gt; = {$(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vSubSite1&lt;/EM&gt;&lt;/STRONG&gt;)}&amp;gt;} Number)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if vSubSite1 in null, then it will not show any value...&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and use this in text box&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({ &amp;lt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sub_site&lt;/STRONG&gt; = {$(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vSubSite1&lt;/EM&gt;&lt;/STRONG&gt;)}&amp;gt;} Number)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494029#M1135464</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-11-07T15:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494030#M1135465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({ &amp;lt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sub_site&lt;/STRONG&gt; = {"=$(=&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vSubSite1&lt;/EM&gt;&lt;/STRONG&gt;)"}&amp;gt;} Number)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;should work&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494030#M1135465</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-07T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494031#M1135466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabrice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; This works if I hard code the variable &lt;STRONG&gt;vsubsite1 = Sub Site 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try and use the expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vsubsite1 = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if([Site]='North Division','Sub Site 1',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;if([Site]='Central Division','Sub Site 2',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;if([Site]='South Division','Sub Site 3',&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the chart doesn't plot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494031#M1135466</guid>
      <dc:creator />
      <dc:date>2013-11-07T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494032#M1135467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put the variable name between ' ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Juan Pedro &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494032#M1135467</guid>
      <dc:creator />
      <dc:date>2013-11-07T15:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494033#M1135468</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;Thanks, but none of these solutions seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 15:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494033#M1135468</guid>
      <dc:creator />
      <dc:date>2013-11-07T15:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494034#M1135469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks but this solution doesn't work either (ive tried both&amp;nbsp; " and ' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 16:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494034#M1135469</guid>
      <dc:creator />
      <dc:date>2013-11-07T16:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494035#M1135470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vEssai is a variable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TIME_Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt; 15, 'GAMME GOURMANDE') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;As you see, there is a test (with if statement based on TIME that is chosen in a box), and the value is GAMME GOURMANDE (with a space)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;sum &lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CONTENANT_LName&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[$(vEssai)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Ventes Valeur]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;[Ventes valeur] is my variable&lt;/P&gt;&lt;P&gt;CONTENANT_LName my diimension&lt;/P&gt;&lt;P&gt;vEssai is enclosed into brackets []&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Answer7.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/48706_Answer7.JPG" /&gt;&lt;/P&gt;&lt;P&gt;So it should work.&lt;/P&gt;&lt;P&gt;Perhaps, it does not work in your graph because there are several Site, and the formula does not return anything&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 16:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494035#M1135470</guid>
      <dc:creator />
      <dc:date>2013-11-07T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494036#M1135471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabrice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your reply - it is very much appreciated!!&lt;/P&gt;&lt;P&gt;I've attached a sample document of what I am trying to achieve. I need to show a chart for each Sub Site depending on which Main Site has been selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be very grateful if you could take a look and see where I &lt;/P&gt;&lt;P&gt;am going wrong.&amp;nbsp; I've tried adding the variable to the expressions in Chart 1 but no data is being shown,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 11:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494036#M1135471</guid>
      <dc:creator />
      <dc:date>2013-11-08T11:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494037#M1135472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I have the Personal Edition, I will not be able to open them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But you have to keep in mind that the set analyses are computed once per chart, not once per row&lt;/STRONG&gt;. So, if the result of the set is different for each row, it will NOT work. In that case, you need to update the model to relate YourRowDimOfTheChart with the Sub types you want to compute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 11:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494037#M1135472</guid>
      <dc:creator />
      <dc:date>2013-11-08T11:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494038#M1135473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put an = in front of the expressions in the variables and surround the variable expansions with single quotes. See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 15:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494038#M1135473</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-08T15:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494039#M1135474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is how I would do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test this and see if it is evaluating as you would expect, change your chart type to a straight table and take out the label on the expression.&amp;nbsp; Then you can hover over the label and it will show you what the expression looks like with the variable expanded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[TYPE]={'Type A'},SUB_SITE = {$(=$(vMainSite1))} &amp;gt; }TOTAL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expanded view.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/48766_qv.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 16:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494039#M1135474</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2013-11-08T16:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494040#M1135475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone who took the time to answer this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 16:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494040#M1135475</guid>
      <dc:creator />
      <dc:date>2013-11-08T16:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494041#M1135476</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;Something strange is happening when I copy your working example into my main document.&amp;nbsp; I replaced the sample data in your document with actual data and field names and it worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I copy this over to my actual document the charts stop working all together.&amp;nbsp; I'm not sure if something is wrong with my local settings as the chart title only works if I remove the ' ' quotes from around the variable :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vAdmTrendSite1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as opposed to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='$(vMainSite1)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 11:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494041#M1135476</guid>
      <dc:creator />
      <dc:date>2013-11-11T11:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494042#M1135477</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 Have tried your suggestion.&amp;nbsp; It is showing the whole 'If' statement that is creating the variable rather than the variable value itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494042#M1135477</guid>
      <dc:creator />
      <dc:date>2013-11-11T16:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494043#M1135478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you have an = sign in the variable itself in front of the if statement.&amp;nbsp; That should cause it to be evaluated before being used in the Set Analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 17:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494043#M1135478</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2013-11-11T17:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494044#M1135479</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;This worked !!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 15:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Variables/m-p/494044#M1135479</guid>
      <dc:creator />
      <dc:date>2013-11-13T15:25:01Z</dc:date>
    </item>
  </channel>
</rss>

