<?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: Sum for MaxDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92466#M457637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, yes that LET won't work with nested quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9,34 = 2018/9/24. That means that the variable contains the correct value. If you use =$(MaxDate) in a text object it will be evaluated as an expression. But if you use it in a set analysis expression in quotes then '$(MaxDate)' then it will work ok. Just as when you use ='$(vMaxDate)' in a text object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2018 11:28:03 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-09-25T11:28:03Z</dc:date>
    <item>
      <title>Sum for MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92459#M457630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;i have the same problem like in this thread: &lt;A href="https://community.qlik.com/thread/46595"&gt;Show sales value for maximum date &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Altough I'm using the same syntax my result is 0. I defined a variable MaxDate which shows the selected Date correctly. But in the sum if statement there's no result. When i switch MaxDate to '2018/09/20' it works fine. Thanks in advance for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="214044" alt="qlik_sum.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214044_qlik_sum.jpg" style="height: 219px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 11:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92459#M457630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-20T11:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92460#M457631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sum({&amp;lt;Berichtsdatum={'$(MaxDate)'}&amp;gt;} [offener errechneter Auftragswert AB])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92460#M457631</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-09-20T16:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92461#M457632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gyspert, my result is still 0. I made a new app to solve this issue but still the same result. It works when i switch ... {'$(DateMax)'}... to '2018/09/21' for example and if I take DateMax as a stand alone Measure it is displayed correctly.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; [offener errechneter Auftragswert AB],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; [Berichtsdatum]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; FROM [lib://AttachedFiles/ABÜ_täglich.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is ABUE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set DateMax = Max( [Berichtsdatum] );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Set AB_akt = sum({&amp;lt;Berichtsdatum={'$(DateMax)'}&amp;gt;} [offener errechneter Auftragswert AB]);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 15:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92461#M457632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-24T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92462#M457633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max(Berichtsdatum) will return a number, not a formatted date. Try SET DateMax = Date(Max(Berichtsdatum),'YYYY/MM/DD');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 06:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92462#M457633</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-09-25T06:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92463#M457634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, result is still the same. But thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 09:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92463#M457634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-25T09:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92464#M457635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try SET DateMax = =Date(Max(Berichtsdatum),'YYYY/MM/DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or LET DateMax = '=Date(Max(Berichtsdatum),'YYYY/MM/DD')';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 09:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92464#M457635</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-09-25T09:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92465#M457636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With&amp;nbsp; SET DateMax = =Date(Max(Berichtsdatum),'YYYY/MM/DD'); I get the result 9,34 for $DateMax and now &lt;SPAN style="font-size: 13.33px;"&gt;Set AB_akt = sum({&amp;lt;Berichtsdatum={'$(DateMax)'}&amp;gt;} [offener errechneter Auftragswert AB]); shows the sum without the aggregation for $DateMax&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;With LET DateMax = '=Date(Max(Berichtsdatum),'YYYY/MM/DD')'; i get a failure message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="widows: 2; text-indent: 0px; letter-spacing: normal; font-variant-caps: normal; font-style: normal; background-color: rgba(255, 38, 38, 0.2); font-variant-ligatures: normal; display: inline !important; text-decoration-color: initial; font-weight: 400; float: none; text-decoration-style: initial; orphans: 2; color: #595959; text-transform: none; font-size: 13px; white-space: pre-wrap; font-family: 'Courier New'; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;Unexpected token: 'YYYY', expected one of: 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'OPERATOR_MULTIPLICATION', 'OPERATOR_DIVISION', 'OPERATOR_STRING_CONCAT', 'like', 'and', ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 10:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92465#M457636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-25T10:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum for MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92466#M457637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, yes that LET won't work with nested quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9,34 = 2018/9/24. That means that the variable contains the correct value. If you use =$(MaxDate) in a text object it will be evaluated as an expression. But if you use it in a set analysis expression in quotes then '$(MaxDate)' then it will work ok. Just as when you use ='$(vMaxDate)' in a text object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 11:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-for-MaxDate/m-p/92466#M457637</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-09-25T11:28:03Z</dc:date>
    </item>
  </channel>
</rss>

