<?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: Take only the last hours last reload in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020134#M345208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One approach could be to capture the reload time with ReloadTime() function:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110521_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And then assign this to a variable and use it in your set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 13:53:17 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2016-01-04T13:53:17Z</dc:date>
    <item>
      <title>Take only the last hours last reload</title>
      <link>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020132#M345206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a chart that show me the data of the all 2015. there are already a calendar and all data is possible to have for a fixed instant.&lt;/P&gt;&lt;P&gt;Now I would like to show in the chart just the data inherent of the last hour from the last reload.&lt;/P&gt;&lt;P&gt;Someone can help me?&lt;/P&gt;&lt;P&gt;Regards and Happy new Year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020132#M345206</guid>
      <dc:creator>pascos88</dc:creator>
      <dc:date>2016-01-04T13:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Take only the last hours last reload</title>
      <link>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020133#M345207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pasquale,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not completely clear about your requirement, so try something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a field in backend which capture the reload time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;reloadtime() as Timefield,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&amp;lt;Yourdatefield={'Timefield+1'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can give a try or please explain a bit more about your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020133#M345207</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-01-04T13:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Take only the last hours last reload</title>
      <link>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020134#M345208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One approach could be to capture the reload time with ReloadTime() function:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110521_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And then assign this to a variable and use it in your set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020134#M345208</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-04T13:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Take only the last hours last reload</title>
      <link>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020135#M345209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In Backend:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14519167662203561" jivemacro_uid="_14519167662203561"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;Reloadtime() as&amp;nbsp; ReloadTime&lt;/P&gt;
&lt;P&gt; INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer, DataTime,Sales&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 04/01/2016 6:03:02 PM,33&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 04/01/2016 6:03:02 PM,99&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 04/01/2016 6:03:02 PM,88&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 04/01/2016 6:03:02 PM,88&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 03/01/2016 8:03:02 PM,88&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 03/01/2016 9:03:02 PM,88&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Front end:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chart expression:-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Hour(DataTime)=Hour(ReloadTime),Sum(Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;-Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020135#M345209</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-04T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Take only the last hours last reload</title>
      <link>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020136#M345210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Sinan, &lt;/P&gt;&lt;P&gt;thanks for reply.&lt;/P&gt;&lt;P&gt;How I can take the date from the 1 hour before?&lt;/P&gt;&lt;P&gt;For example your picture shows 2:04, in this case I need to take the data from 1:04 to 2:04.&lt;/P&gt;&lt;P&gt;Later I will use this in my set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020136#M345210</guid>
      <dc:creator>pascos88</dc:creator>
      <dc:date>2016-01-04T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Take only the last hours last reload</title>
      <link>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020137#M345211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;First you need a field in the data which stores the date and time data for my example I will call this field Date (p.s it must be formatted as a timestamp in script)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then simply use this function in your expression replacing the field I have called 'data' with the field in your dataset you want to sum.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=sum({&amp;lt; Date&amp;nbsp; = {"&amp;gt;$(= timestamp(ReloadTime()- 0.04167))"}&amp;gt;} data)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p.s in a timestamp &lt;SPAN style="font-size: 13.3333px;"&gt; 0.04167 is 1 hr...so reloadtime - &lt;SPAN style="font-size: 13.3333px;"&gt;0.04167 will be an hour before it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020137#M345211</guid>
      <dc:creator />
      <dc:date>2016-01-04T14:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Take only the last hours last reload</title>
      <link>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020138#M345212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;SessionLogTime = {"&amp;gt;=$(=Time($(vReloadtime) - Time('01:00', 'hh:mm')))"}&amp;gt;}Distinct SessionID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-only-the-last-hours-last-reload/m-p/1020138#M345212</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-04T14:25:10Z</dc:date>
    </item>
  </channel>
</rss>

