<?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: Expression Variable not working in charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115916#M368387</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;Could you provide a sample file to analysis in detail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 04:49:30 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2016-06-15T04:49:30Z</dc:date>
    <item>
      <title>Expression Variable not working in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115915#M368386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Variables as expressions and &lt;STRONG style=": ; color: #000000; font-size: 10pt;"&gt;I am having following problem :&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;When I type =&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;vTotalOrder&lt;/STRONG&gt;&lt;/EM&gt; in the text box then it shows me expected total number of orders as '400'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But when I use the same variable in the expression definition box of a straight table and select any dimension like customer or sales rep or city then it shows me 400 for every customer!&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 have imported variables from an excel spread sheet that looks like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="56" style="border: 1px solid rgb(0, 0, 0); width: 314px; height: 58px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;VariableName&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;vTotalOrder&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;=count(Distinct(@OrderId))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then.. I am using following in the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966; font-family: 'courier new', courier;"&gt;// Loading variables from Excel Spreadsheet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;Expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3366ff; font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="color: #0000ff;"&gt; LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Variable, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #993300; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt; FROM&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vG.MetricsRoot)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;\Expressions Ops.xlsx&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;SPAN style="color: #0000ff;"&gt;ooxml, embedded labels, table is&lt;/SPAN&gt; Sheet1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #339966; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;// Setting variables the above table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #339966; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;For&lt;/STRONG&gt; i = 0 &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;to&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;NoOfRows&lt;/SPAN&gt;('Expressions')-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;&lt;STRONG&gt;vName&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0000ff;"&gt;Peek&lt;/SPAN&gt;('Variable', &lt;SPAN style="color: #993300;"&gt;i&lt;/SPAN&gt;, 'Expressions');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;$(vName)&lt;/STRONG&gt;&lt;/EM&gt; = &lt;SPAN style="color: #0000ff;"&gt;Peek&lt;/SPAN&gt;('Expression', &lt;SPAN style="color: #993300;"&gt;i&lt;/SPAN&gt;, 'Expressions');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/SPAN&gt; i&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;LET&lt;/STRONG&gt; i = &lt;SPAN style="color: #0000ff;"&gt;Null&lt;/SPAN&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;vName&lt;/STRONG&gt;&lt;/EM&gt; = &lt;SPAN style="color: #0000ff;"&gt;Null&lt;/SPAN&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Drop Table&lt;/SPAN&gt; Expressions;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 04:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115915#M368386</guid>
      <dc:creator />
      <dc:date>2016-06-15T04:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Variable not working in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115916#M368387</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;Could you provide a sample file to analysis in detail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 04:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115916#M368387</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-06-15T04:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Variable not working in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115917#M368388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try with no '=' sign in the excel definition, it appears as it is calculated once and used the same value every where, without '=' it should be interpreted dynamically in the chart based on selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 05:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115917#M368388</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-06-15T05:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Variable not working in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115918#M368389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's like &lt;A href="https://community.qlik.com/qlik-users/189406"&gt;digvijay&lt;/A&gt; pointed it out the equal-sign '='. See for this also: &lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 05:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115918#M368389</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-15T05:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Variable not working in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115919#M368390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.qlik.com/qlik-users/189406"&gt;digvijay&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 05:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115919#M368390</guid>
      <dc:creator />
      <dc:date>2016-06-15T05:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Variable not working in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115920#M368391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌ &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 05:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115920#M368391</guid>
      <dc:creator />
      <dc:date>2016-06-15T05:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Variable not working in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115921#M368392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad it helped. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Variable-not-working-in-charts/m-p/1115921#M368392</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-06-15T06:23:03Z</dc:date>
    </item>
  </channel>
</rss>

