<?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 AW:Re: AW:Re: Declare Variable  with SET Statment in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176759#M44630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the problem is that, Max(MONTH) is not working. right? Can you test this part in the text object, and check what the output is coming?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jan 2011 10:16:31 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2011-01-20T10:16:31Z</dc:date>
    <item>
      <title>Declare Variable  with SET Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176754#M44625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i would like to declare a var. with the SET Statment&lt;/P&gt;&lt;P&gt;SET VAR == SUM({$&amp;lt;MONTH = {&lt;B&gt;"&amp;lt;=$(=max(MONTH))"&lt;/B&gt;},KONTO={'Umsatz'}&amp;gt;} Periode)&lt;/P&gt;&lt;P&gt;But i do have the problem that i get for the Part &lt;B&gt;"&amp;lt;=$(=max(MONTH))" a {"&amp;lt;=(internal error)"}&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;B&gt;Any hinds&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;many thx&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;B&gt;Chris&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 08:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176754#M44625</guid>
      <dc:creator>chrisg</dc:creator>
      <dc:date>2011-01-20T08:10:38Z</dc:date>
    </item>
    <item>
      <title>Declare Variable  with SET Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176755#M44626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With SET you are setting a string value. With LET you are calculating what is behind the equals sign. So most likely all you have to do is change an S for an L and you're fine to go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 08:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176755#M44626</guid>
      <dc:creator />
      <dc:date>2011-01-20T08:22:38Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Declare Variable  with SET Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176756#M44627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;many thx - but i am afraid this does not wok for me:-(&lt;/P&gt;&lt;P&gt;FIRST:&lt;/P&gt;&lt;P&gt;Aggregation expressions not allowed in GROUP BY clause&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LET Var = sum({$&amp;lt;Month = {"&amp;lt;=(internal error)"},KONTO={'Umsatze}&amp;gt;} Periode)&lt;/P&gt;&lt;P&gt;and the &lt;B&gt;"&amp;lt;=(internal error)"&lt;/B&gt; is still there &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 08:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176756#M44627</guid>
      <dc:creator>chrisg</dc:creator>
      <dc:date>2011-01-20T08:54:24Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Declare Variable  with SET Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176757#M44628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it seems that you are working at script level. Set Analysis can't be used in script. it is used to play with Selection in front end.&lt;/P&gt;&lt;P&gt;regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 09:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176757#M44628</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-01-20T09:49:08Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Declare Variable  with SET Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176758#M44629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Tresesco, many thx - i do have a lot of very long formulars in my document. the idea was to work with vars. I try to declare a var over the menue (Varlist) - that worked without a problem!? But i do not want to use the editor for that. thx Chris&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 10:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176758#M44629</guid>
      <dc:creator>chrisg</dc:creator>
      <dc:date>2011-01-20T10:07:23Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Declare Variable  with SET Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176759#M44630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the problem is that, Max(MONTH) is not working. right? Can you test this part in the text object, and check what the output is coming?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 10:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176759#M44630</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-01-20T10:16:31Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Re: Declare Variable  with SET Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176760#M44631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;that works! - pls see my picture&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 10:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176760#M44631</guid>
      <dc:creator>chrisg</dc:creator>
      <dc:date>2011-01-20T10:23:45Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Re: Declare Variable  with SET Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176761#M44632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris, (hi tresesco),&lt;/P&gt;&lt;P&gt;in my oppinion the $()-expansion is the thing you are struggling with. This feature can be used in expressions, but also in the script. And your problem is that this replacement is done &lt;I&gt;automatically&lt;/I&gt; when the "$(=" appears (somewhere) in the script code. But in your special case QV should do no expansion.&lt;BR /&gt;&lt;BR /&gt;With this in mind I searched for a workaround e.g. using [ ] and ' ', but in vain. The only raw Idea is this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET DOLLAR= '$(=';&lt;BR /&gt;&lt;BR /&gt;SET VAR == SUM({$&amp;lt;MONTH = {"&amp;lt;= $(DOLLAR) =max(MONTH))"},KONTO={'Umsatz'}&amp;gt;} Periode);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Yes, It looks a bit strange. Without 'Umsatz' another solution would be using LET and stringconcat like LET VAR = '... ' &amp;amp; '$' &amp;amp; '......'; &lt;BR /&gt;&lt;BR /&gt;Regards, Roland&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 11:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-Variable-with-SET-Statment/m-p/176761#M44632</guid>
      <dc:creator />
      <dc:date>2011-01-20T11:40:51Z</dc:date>
    </item>
  </channel>
</rss>

