<?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 a Value with most recent reload date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929873#M321592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;In your main create a variable such as&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vLoadDate = Today();&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then create an inline table to read the load date, store this into a .qvd then read this .qvd at a later time in your script.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LoadDate:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&amp;nbsp; * INLINE [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LoadDate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(vLoadDate) AS LoadDate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;STORE LoadDate INTO ..\..\.qvd;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Use set analysis to have your Date = LoadDate Field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 16:23:36 GMT</pubDate>
    <dc:creator>NickHoff</dc:creator>
    <dc:date>2015-10-07T16:23:36Z</dc:date>
    <item>
      <title>Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929870#M321589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently reloading data daily, I am trying to Sum a value for the most recent day for the most recent month? What's the best way to add this into set analysis if possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 15:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929870#M321589</guid>
      <dc:creator />
      <dc:date>2015-10-07T15:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929871#M321590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Date = {"$(=Date(Max(Date), 'YourDateFieldFormat'))"}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 15:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929871#M321590</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-07T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929872#M321591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Won't this return the last date in the field, which would be Sunday? I would need the last reload date. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929872#M321591</guid>
      <dc:creator />
      <dc:date>2015-10-07T16:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929873#M321592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;In your main create a variable such as&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vLoadDate = Today();&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then create an inline table to read the load date, store this into a .qvd then read this .qvd at a later time in your script.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LoadDate:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&amp;nbsp; * INLINE [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LoadDate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(vLoadDate) AS LoadDate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;STORE LoadDate INTO ..\..\.qvd;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Use set analysis to have your Date = LoadDate Field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929873#M321592</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-10-07T16:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929874#M321593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable like Nick just mentioned:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vLoadDate = Date(Today());&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and on the front end, may be use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Date = {"$(vLoadDate)"}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929874#M321593</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-07T16:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929875#M321594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this?&lt;/P&gt;&lt;P&gt;FirstSortedValue(YouValue,-YourDateTimeField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929875#M321594</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-07T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929876#M321595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created the Variable, but this is summing the value across the data set to date. I only want month to date on the last reload date. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929876#M321595</guid>
      <dc:creator />
      <dc:date>2015-10-07T16:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929877#M321596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to write the date to a .qvd as I suggested above, otherwise the variable will always read todays date not the actual load date.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929877#M321596</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-10-07T16:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a Value with most recent reload date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929878#M321597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't mention month to date though, that will change your set analysis to using a current load month indicator in your applications calendar such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LoadDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CurrentLoadMonthIND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Use the following set to get the current load month to date on your load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CurrentLoadMonthIND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 17:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-Value-with-most-recent-reload-date/m-p/929878#M321597</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-10-07T17:04:57Z</dc:date>
    </item>
  </channel>
</rss>

