<?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: Call set analysis by variable in a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751170#M267837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this:&lt;/P&gt;&lt;P&gt;sum( {1 &amp;lt;[dimension]={"&amp;gt;=$(=$(vVariable1))&amp;lt;=$(=$(vVariable2))"}&amp;gt; } SALES)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 15:57:26 GMT</pubDate>
    <dc:creator>chrislofthouse</dc:creator>
    <dc:date>2015-03-05T15:57:26Z</dc:date>
    <item>
      <title>Call set analysis by variable in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751168#M267835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I learnt that I cannot call set analysis contains variables in onther variable and use the second variable in the chart.&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;If I use the following formula directly in my chart and it works;&lt;/P&gt;&lt;P&gt;sum( {1 &amp;lt;[dimension]={"&amp;gt;=$(vVariable1)&amp;lt;=$(vVariable2)"}&amp;gt; } SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the same formula in the variable and call this variable within my chart, the value is empty.. Why?&lt;/P&gt;&lt;P&gt;Thank you for any clues.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 13:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751168#M267835</guid>
      <dc:creator />
      <dc:date>2015-03-05T13:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Call set analysis by variable in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751169#M267836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have an '=' sign at the beginning of the expression when you define the variable ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have this:&amp;nbsp; &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;sum( {1 &amp;lt;[dimension]={"&amp;gt;=$(vVariable1)&amp;lt;=$(vVariable2)"}&amp;gt; } SALES)&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;&lt;BR /&gt;&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;or this:&amp;nbsp; &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;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum( {1 &amp;lt;[dimension]={"&amp;gt;=$(vVariable1)&amp;lt;=$(vVariable2)"}&amp;gt; } SALES)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you haven't tried the first, i'd suggest that and invoke the variable with $() expansion&amp;nbsp; ex:&amp;nbsp;&amp;nbsp; $(vVariableName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 15:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751169#M267836</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-05T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Call set analysis by variable in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751170#M267837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this:&lt;/P&gt;&lt;P&gt;sum( {1 &amp;lt;[dimension]={"&amp;gt;=$(=$(vVariable1))&amp;lt;=$(=$(vVariable2))"}&amp;gt; } SALES)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 15:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751170#M267837</guid>
      <dc:creator>chrislofthouse</dc:creator>
      <dc:date>2015-03-05T15:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call set analysis by variable in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751171#M267838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The right expression is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum( {1 &amp;lt;[dimension]={"&amp;gt;=$(vVariable1)&amp;lt;=$(vVariable2)"}&amp;gt; } SALES)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;without pre equal-sign.&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 16:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751171#M267838</guid>
      <dc:creator />
      <dc:date>2015-03-05T16:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Call set analysis by variable in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751172#M267839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Watch out if you set variables to values that should keep other variables safe from $-sign substitution. If you want to use a variable called vSalesExpression and set it to the expression of your chart, you can do this as-is in the variable overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your script however, you have to make sure that the two embedded variables do survive the assignment, like in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vSalesExpression =&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;sum( {1 &amp;lt;[dimension]={"&amp;gt;=$' &amp;amp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '(vVariable1)&amp;lt;=$' &amp;amp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '(vVariable2)"}&amp;gt; } SALES)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, make sure that in the end the substituted text contains exactly one equal sign (not two), as Jonathan suggests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 16:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-set-analysis-by-variable-in-a-chart/m-p/751172#M267839</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-05T16:10:42Z</dc:date>
    </item>
  </channel>
</rss>

