<?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: Qlik Expressions (Direct vs. Set Operations) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23045#M786026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I do call $(current_month_amount), but the amount it gives is incorrect. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 03:08:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-28T03:08:55Z</dc:date>
    <item>
      <title>Qlik Expressions (Direct vs. Set Operations)</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23043#M786024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I am wondering what's the difference between typing in directly in the Expression (fx) box directly vs. creating a set operations.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am baffled a bit because this expression below works perfectly when I write directly in the expression(fx) box:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;date = {'&amp;gt;=$(=MonthStart(Max(date)))'}&amp;gt;*&amp;lt;date = {'&amp;lt;=$(=MonthEnd(Max(date)))'}&amp;gt;}amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I create this set expression, current month amount, I get an incorrect answer:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set current_month_amount= "sum({&amp;lt;date = {'&amp;gt;=$(=MonthStart(Max(date)))'}&amp;gt;*&amp;lt;date = {'&amp;lt;=$(=MonthEnd(Max(date)))'}&amp;gt;}amount";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23043#M786024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Expressions (Direct vs. Set Operations)</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23044#M786025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are setting up/storing the expression in a variable, then you have to use $(vVariable) in your other expression wherever you are using this variable.hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 01:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23044#M786025</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-02-28T01:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Expressions (Direct vs. Set Operations)</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23045#M786026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I do call $(current_month_amount), but the amount it gives is incorrect. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 03:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23045#M786026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T03:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Expressions (Direct vs. Set Operations)</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23046#M786027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post your expressions with some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 03:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23046#M786027</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-02-28T03:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Expressions (Direct vs. Set Operations)</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23047#M786029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that the $ expansions (DSE) are executing even though you may not expect it in a Set statement. You need to break up the DSEs to prevent them executing at this point. You can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set current_month_amount = Sum({&amp;lt;date = {'&amp;gt;=#(=MonthStart(Max(date)))'}&amp;gt; * &amp;lt;date = {'&amp;lt;=#(=MonthEnd(Max(date)))'}&amp;gt;}amount;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let current_month_amount = Replace(current_month_amount, '#', '$');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let current_month_amount = "sum({&amp;lt;date = {'&amp;gt;=$" &amp;amp; "(=MonthStart(Max(date)))'}&amp;gt; * &amp;lt;date = {'&amp;lt;=$" &amp;amp; "(=MonthEnd(Max(date)))'}&amp;gt;}amount";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only a&amp;nbsp; problem if the expression is defined in the script on in an inline load. It is not a problem if it is read from an external source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 04:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Expressions-Direct-vs-Set-Operations/m-p/23047#M786029</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-02-28T04:53:55Z</dc:date>
    </item>
  </channel>
</rss>

