<?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 working in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-not-working-in-chart/m-p/511635#M191153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have u tried this:&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;f(GetSelectedCount([Group])&amp;lt;&amp;gt;0,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum([Year 1])/GetSelectedCount([Group]),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;[Group]={'$(vTarget)'}&amp;gt;} [Year 1]))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 11:06:52 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2013-10-23T11:06:52Z</dc:date>
    <item>
      <title>variable not working in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-not-working-in-chart/m-p/511634#M191152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope someone can help me with below problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following variable vVar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([Group])&amp;lt;&amp;gt;0,&lt;/P&gt;&lt;P&gt;Sum([Year 1])/GetSelectedCount([Group]),&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Group]={$(vTarget)}&amp;gt;} [Year 1]))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I call it $(vVar) and it shows correctly in text box,but it does not apear at all in chart and table (both using valulist).&lt;/P&gt;&lt;P&gt;Note if I paste it directly in chart it's working ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the last line (else filed) is different&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([Group])&amp;lt;&amp;gt;0,&lt;/P&gt;&lt;P&gt;Sum([Year 1])/GetSelectedCount([Group]),&lt;/P&gt;&lt;P&gt;Sum([Year 1])/GetPossibleCount([Group]))&lt;BR /&gt;It's then working fine everywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use&lt;/P&gt;&lt;P&gt;Sum( if([Group]=vTarget,[Year 1],0))&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Group]={$(vTarget)}&amp;gt;} [Year 1]))&lt;/P&gt;&lt;P&gt;but it behave exactly the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 11:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-not-working-in-chart/m-p/511634#M191152</guid>
      <dc:creator>karolina_</dc:creator>
      <dc:date>2013-10-23T11:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: variable not working in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-not-working-in-chart/m-p/511635#M191153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have u tried this:&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;f(GetSelectedCount([Group])&amp;lt;&amp;gt;0,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum([Year 1])/GetSelectedCount([Group]),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;[Group]={'$(vTarget)'}&amp;gt;} [Year 1]))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 11:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-not-working-in-chart/m-p/511635#M191153</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-10-23T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: variable not working in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-not-working-in-chart/m-p/511636#M191154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have &lt;BR /&gt;$(vTarget)=Target&lt;/P&gt;&lt;P&gt;and I earlier tried $(vTarget)='Target'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After successfully checking your version i checked above again and it's working as well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: I have two more similar and were not working till i removed commented part of code in variable definition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 11:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-not-working-in-chart/m-p/511636#M191154</guid>
      <dc:creator>karolina_</dc:creator>
      <dc:date>2013-10-23T11:15:22Z</dc:date>
    </item>
  </channel>
</rss>

