<?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 operator variable with in the set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119008#M369012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a double quote within a double quote, the expression breaks and I also get no outputs in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using a chr(34) instead of the double quote, with a ' and &amp;amp; for the rest, but for some reason it doesn't get to work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2016 10:19:08 GMT</pubDate>
    <dc:creator>qlik_venu</dc:creator>
    <dc:date>2016-08-03T10:19:08Z</dc:date>
    <item>
      <title>set operator variable with in the set</title>
      <link>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119006#M369010</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 is in continuation to a query I had got solution yesterday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked fine for me.&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: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt;Item_id={"=Sum(Sales) &amp;lt;&amp;gt; 0"}&amp;gt;} distinct Item_id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above works perfect for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to pass a variable in the set operator. Can you please suggest me on this.&lt;/P&gt;&lt;P&gt;Something as below, this doesn't work though&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: 13px;"&gt;&lt;STRONG&gt;ount({&amp;lt;Item_id={"=Sum( &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt; Year = {"$(Max_Year"}&amp;gt;}&lt;/SPAN&gt;Sales) &amp;lt;&amp;gt; 0"}&amp;gt;} distinct Item_id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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: 13px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Venu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 09:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119006#M369010</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2016-08-03T09:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: set operator variable with in the set</title>
      <link>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119007#M369011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Item_id = {"=Sum({&amp;lt;Year = {"$(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;Max_Year"}&amp;gt;}Sales) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT Item_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count({&amp;lt;Item_id = {"=Sum({&amp;lt;Year = {"$(&lt;SPAN style="color: #ff0000;"&gt;=$(&lt;/SPAN&gt;Max_Year&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;"}&amp;gt;}Sales) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT Item_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 09:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119007#M369011</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T09:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: set operator variable with in the set</title>
      <link>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119008#M369012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a double quote within a double quote, the expression breaks and I also get no outputs in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using a chr(34) instead of the double quote, with a ' and &amp;amp; for the rest, but for some reason it doesn't get to work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 10:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119008#M369012</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2016-08-03T10:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: set operator variable with in the set</title>
      <link>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119009#M369013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt;Item_id={"=Sum( &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt; Year = {'$(=Max_Year)'}&amp;gt;}&lt;/SPAN&gt;Sales) &amp;lt;&amp;gt; 0"}&amp;gt;} distinct Item_id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 10:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119009#M369013</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-08-03T10:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: set operator variable with in the set</title>
      <link>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119010#M369014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's true, try without the inner double quote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Item_id = {"=Sum({&amp;lt;Year = {$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;=&lt;/SPAN&gt;Max_Year)}&amp;gt;}Sales) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT Item_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Item_id = {"=Sum({&amp;lt;Year = {$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;=$(&lt;/SPAN&gt;Max_Year&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;))&lt;/SPAN&gt;}&amp;gt;}Sales) &amp;lt;&amp;gt; 0"}&amp;gt;} DISTINCT Item_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also added the closing parenthesis which I missed in my first response&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 10:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119010#M369014</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T10:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: set operator variable with in the set</title>
      <link>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119011#M369015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked as required.&lt;/P&gt;&lt;P&gt;Thanks a lot!!. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119011#M369015</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2016-08-03T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: set operator variable with in the set</title>
      <link>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119012#M369016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, the one from Antonio exactly worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-operator-variable-with-in-the-set/m-p/1119012#M369016</guid>
      <dc:creator>qlik_venu</dc:creator>
      <dc:date>2016-08-03T14:10:06Z</dc:date>
    </item>
  </channel>
</rss>

