<?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 Alternate State in Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-State-in-Variables/m-p/59583#M9892</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;I got some issues in using Alternate state in variable assignment in Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Var1 = Maxstring({State1}Dimenstion1)&lt;/P&gt;&lt;P&gt;Var2 = Sum({Dimension1={$(=$(Var1))}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use Var2 definition is used directly in Chart expression, it works. But if I move that to Script I am not getting right answer. Can anyone help me to fix this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2018 15:49:40 GMT</pubDate>
    <dc:creator>krishnacbe</dc:creator>
    <dc:date>2018-06-05T15:49:40Z</dc:date>
    <item>
      <title>Alternate State in Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-in-Variables/m-p/59583#M9892</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;I got some issues in using Alternate state in variable assignment in Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Var1 = Maxstring({State1}Dimenstion1)&lt;/P&gt;&lt;P&gt;Var2 = Sum({Dimension1={$(=$(Var1))}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use Var2 definition is used directly in Chart expression, it works. But if I move that to Script I am not getting right answer. Can anyone help me to fix this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-in-Variables/m-p/59583#M9892</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2018-06-05T15:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State in Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-in-Variables/m-p/59584#M9893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot use set analysis in script.&lt;/P&gt;&lt;P&gt;your expression should be declared in variables editor directly.&lt;/P&gt;&lt;P&gt;to be able to reproduce set analysis in scipt you should use the option "grouped by"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 16:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-in-Variables/m-p/59584#M9893</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-06-05T16:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State in Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-in-Variables/m-p/59585#M9894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here for the problems related to $() in the script and there solutions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/220964"&gt;Expression as a variable with $-sign expansion&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/7455"&gt;Stop Dollar Sign Expansion in the script (Escape Character ??? )&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 16:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-in-Variables/m-p/59585#M9894</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-05T16:06:05Z</dc:date>
    </item>
  </channel>
</rss>

