<?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: Substitute agg() in the load script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Substitute-agg-in-the-load-script/m-p/1776554#M60207</link>
    <description>&lt;P&gt;Hope this&amp;nbsp; Helps&lt;/P&gt;&lt;P&gt;Duration:&lt;BR /&gt;Load *,&lt;BR /&gt;maxTime - minTime as Duration;&lt;BR /&gt;Load Max(QueueFinishedTime) as maxTime ,&lt;BR /&gt;Min(QueueStartedTime) as minTime,&lt;BR /&gt;QueueIdentification,&lt;BR /&gt;State,&lt;BR /&gt;ActionName&lt;BR /&gt;Resident Source&lt;BR /&gt;group by QueueIdentification,State,ActionName&lt;BR /&gt;&lt;BR /&gt;in the Front End Expression : hour(sum(Duration))&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Priyanka&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 02:31:50 GMT</pubDate>
    <dc:creator>PriyankaShivhare</dc:creator>
    <dc:date>2021-01-22T02:31:50Z</dc:date>
    <item>
      <title>Substitute agg() in the load script</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-agg-in-the-load-script/m-p/1775936#M60150</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to load a start time and a end time as a duration already&amp;nbsp; in the load script. It's a mess when it needs to be calculated later on, because the functions getting very long, instead just using the duration as a plain time or number to calculate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to many factors I have to aggr the time to many fields to filter the correct time.&lt;/P&gt;&lt;P&gt;Right now i'm using something like this:&lt;/P&gt;&lt;P&gt;hour(sum((aggr(Max(QueueFinishedTime),QueueIdentification,State,ActionName))-(aggr(Min(QueueStartedTime),QueueIdentification,State,ActionName))))&lt;/P&gt;&lt;P&gt;How to write this kind of calculation into the loading script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone has an idea. Thank you very much.&lt;/P&gt;&lt;P&gt;Best.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 09:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-agg-in-the-load-script/m-p/1775936#M60150</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2021-01-20T09:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute agg() in the load script</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-agg-in-the-load-script/m-p/1776554#M60207</link>
      <description>&lt;P&gt;Hope this&amp;nbsp; Helps&lt;/P&gt;&lt;P&gt;Duration:&lt;BR /&gt;Load *,&lt;BR /&gt;maxTime - minTime as Duration;&lt;BR /&gt;Load Max(QueueFinishedTime) as maxTime ,&lt;BR /&gt;Min(QueueStartedTime) as minTime,&lt;BR /&gt;QueueIdentification,&lt;BR /&gt;State,&lt;BR /&gt;ActionName&lt;BR /&gt;Resident Source&lt;BR /&gt;group by QueueIdentification,State,ActionName&lt;BR /&gt;&lt;BR /&gt;in the Front End Expression : hour(sum(Duration))&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Priyanka&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 02:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-agg-in-the-load-script/m-p/1776554#M60207</guid>
      <dc:creator>PriyankaShivhare</dc:creator>
      <dc:date>2021-01-22T02:31:50Z</dc:date>
    </item>
  </channel>
</rss>

