<?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 Not Expanding in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085326#M361445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try removing the single quotes from the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #941100;"&gt;TranType&lt;/SPAN&gt; = {$(vTRLV)}&amp;gt;} &lt;SPAN style="color: #941100;"&gt;[Actual Sales]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel Gavidia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 01:11:52 GMT</pubDate>
    <dc:creator>mgavidia</dc:creator>
    <dc:date>2016-02-10T01:11:52Z</dc:date>
    <item>
      <title>Variable Not Expanding in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085319#M361438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;I have the folllowing set expression that uses a variable to retrieve the text I'm looking for in the set modifier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;Set Expression:&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #941100;"&gt;TranType&lt;/SPAN&gt; = {'$(vTRLV)'}&amp;gt;} &lt;SPAN style="color: #941100;"&gt;[Actual Sales]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;Variable: vTRLV = GetFieldSelections&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #941100;"&gt;zPerspective&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;The values in the &lt;SPAN style="color: #941100;"&gt;zPerspective&lt;/SPAN&gt; field are the following.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;LV&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;TR&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;I have a text box with &lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;$(vTRLV) that does display either the LV or TR when I select a parameter in the &lt;SPAN style="color: #941100;"&gt;zPerspective List Box. However, the variable in the set expression above is not &lt;/SPAN&gt;expanding to the selected parameter.&amp;nbsp; The set expression does work when I hard code the set modifier with either 'LV' or 'TR'.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;I'm not seeing where I'm dropping the ball.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;Any help will be very much appreciated!&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thank you, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 23:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085319#M361438</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2016-02-09T23:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Expanding in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085320#M361439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;I don't see why you need this variable, by default if you model is connected properly the selections will filter the expression. But if you still want to this for some reason, then try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;Variable: vTRLV = Chr(39) &amp;amp; GetFieldSelections&lt;/STRONG&gt;&lt;STRONG&gt;(zPerspective, Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; color: #000000;"&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;TranType = {$(vTRLV)}&amp;gt;} [Actual Sales]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 16px;"&gt;&lt;STRONG style=": ; color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 23:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085320#M361439</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-09T23:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Expanding in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085321#M361440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still not working.&amp;nbsp; Not getting any values in the set expression.&amp;nbsp; I do see the difference in the variable.&amp;nbsp; It is now showing the quotes around the value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your response, the model is connected properly.&amp;nbsp; Don't see how the selections will filter in the expression.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 23:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085321#M361440</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2016-02-09T23:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Expanding in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085322#M361441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GetFieldSelections usually get the value of what is being selected. If your expression is not restricted using {1&amp;lt;&amp;gt;} (one) it is suppose to filter based on selection. Why do you need to explicitly do the same thing? The only time it won't work is if the field is not connected to the chart dimensions. Does it make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 23:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085322#M361441</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-09T23:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Expanding in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085323#M361442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense.&amp;nbsp; Thanks.&amp;nbsp; I checked the data model and see that the &lt;STRONG&gt;zPerspective&lt;/STRONG&gt; field is not connected to the model.&amp;nbsp; I inherited this app and are dealing with an extremely poor data model.&amp;nbsp; I'll see what I can do to connect the field to the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 23:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085323#M361442</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2016-02-09T23:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Expanding in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085324#M361443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem, I am glad we have found the issue &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 23:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085324#M361443</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-09T23:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Expanding in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085325#M361444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your variable defined with a leading equal sign or without?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no leading equal sign, try to add one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 23:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085325#M361444</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-09T23:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Expanding in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085326#M361445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try removing the single quotes from the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #941100;"&gt;TranType&lt;/SPAN&gt; = {$(vTRLV)}&amp;gt;} &lt;SPAN style="color: #941100;"&gt;[Actual Sales]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel Gavidia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 01:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Not-Expanding-in-Set-Analysis/m-p/1085326#M361445</guid>
      <dc:creator>mgavidia</dc:creator>
      <dc:date>2016-02-10T01:11:52Z</dc:date>
    </item>
  </channel>
</rss>

