<?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: Maximum Value for Certain Time Duration in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815194#M287509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I was using a Trellis Bar Chart where TimeStamp is used with Class Function.&lt;/P&gt;&lt;P&gt;To give the static max and min I need this... &lt;/P&gt;&lt;P&gt;But never mind, right now I will use the Static Value based on the last three years available data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 11:11:20 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-03-03T11:11:20Z</dc:date>
    <item>
      <title>Maximum Value for Certain Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815188#M287503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DON'T WANT SOLUTION BY SCRIPTING !! &lt;/P&gt;&lt;P&gt;Front End Only !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have Daily Sales Value with below dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesTime,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesAmount&lt;/P&gt;&lt;P&gt;02/03/2015 08:10:00, 120&lt;/P&gt;&lt;P&gt;02/03/2015 08:20:00, 130&lt;/P&gt;&lt;P&gt;02/03/2015 08:30:00, 140&lt;/P&gt;&lt;P&gt;02/03/2015 08:40:00, 100&lt;/P&gt;&lt;P&gt;02/03/2015 08:50:00, 10&lt;/P&gt;&lt;P&gt;02/03/2015 09:00:00, 110&lt;/P&gt;&lt;P&gt;02/03/2015 09:10:00, 75&lt;/P&gt;&lt;P&gt;02/03/2015 09:18:58, 80&lt;/P&gt;&lt;P&gt;02/03/2015 09:20:00, 85&lt;/P&gt;&lt;P&gt;02/03/2015 09:22:17, 40&lt;/P&gt;&lt;P&gt;02/03/2015 09:22:34, 30&lt;/P&gt;&lt;P&gt;02/03/2015 09:23:12, 120&lt;/P&gt;&lt;P&gt;02/03/2015 10:36:49, 100&lt;/P&gt;&lt;P&gt;02/03/2015 10:39:49, 80&lt;/P&gt;&lt;P&gt;02/03/2015 10:40:00, 85&lt;/P&gt;&lt;P&gt;02/03/2015 10:50:00, 120&lt;/P&gt;&lt;P&gt;02/03/2015 13:12:59, 140&lt;/P&gt;&lt;P&gt;02/03/2015 13:13:21, 200&lt;/P&gt;&lt;P&gt;02/03/2015 13:15:18, 220&lt;/P&gt;&lt;P&gt;02/03/2015 13:18:13, 110&lt;/P&gt;&lt;P&gt;02/03/2015 13:18:38, 100&lt;/P&gt;&lt;P&gt;02/03/2015 13:18:46, 140&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to find the Maximum SalesAmount for User Selected Duration..&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;02/03/2015 08:00 to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;02/03/2015 08:30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesAmount&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;02/03/2015 08:30 to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;02/03/2015 09:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesAmount&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;02/03/2015 09:00 to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;02/03/2015 09:30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesAmount&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;02/03/2015 09:30 to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;02/03/2015 10:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesAmount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Now want to find out which duration has got the maximum SalesAmount and What is that SalesAmount..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The duration is also user selected so can't use the fixed duration version..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Duration could be 15 Mins, 30 Mins, 45 Mins, 60 Mins etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks and looking forward for someone to reply on this...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 17:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815188#M287503</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-02T17:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Value for Certain Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815189#M287504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 18:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815189#M287504</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-02T18:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Value for Certain Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815190#M287505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Gysbert,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks for your reply.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;But this is actually not what I am looking for.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Let me explain in little depth.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Consider that User has selected 30 mins.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;So the time slot would be something like&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;08:00 - 08:30&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;08:30 - 09:00&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;09:00 - 09:30 etc.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Now for each slot there would be Amount Total.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I need in Text box the Max Sales Amount from above slot.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;The slot is Dynamic of course !&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;If we create below chart...&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Calculated Dimension&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=timestamp(Class(SalesTime, $(vDuration)/1440),'DD/MM/YYYY hh:mm:ss')&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; ' to ' &amp;amp; timestamp(Class(SalesTime, $(vDuration)/1440) + $(vDuration)/1440 ,'DD/MM/YYYY hh:mm:ss') &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Expression&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SUM(SalesAmount)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;We will get 910 for 03/02/2015 13:00:00 to 03/02/2015 13:30:00&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I need 910 in Text Box..&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hope this is enough to give answer.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 20:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815190#M287505</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-02T20:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Value for Certain Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815191#M287506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think a text box is possible. If you had a field with the intervals you could use that field in an aggr function, but you can't use a calculated dimension in the aggr function. But you can use a straight table and use dimension limits to show only the top 1 largest value. You can format the straight table to hide the caption and header row, etc. The result can look just like a text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 09:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815191#M287506</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-03T09:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Value for Certain Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815192#M287507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried a lot and only after that I raised a question in Community. Anyway, just want to confirm that is that possible or not...&lt;/P&gt;&lt;P&gt;Thanks for your reply and time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 10:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815192#M287507</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-03T10:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Value for Certain Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815193#M287508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said, I don't think a text box is possible, but a straight table using dimension limits is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 11:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815193#M287508</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-03T11:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Value for Certain Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815194#M287509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I was using a Trellis Bar Chart where TimeStamp is used with Class Function.&lt;/P&gt;&lt;P&gt;To give the static max and min I need this... &lt;/P&gt;&lt;P&gt;But never mind, right now I will use the Static Value based on the last three years available data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 11:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815194#M287509</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-03T11:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Value for Certain Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815195#M287510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I removed date from your input and tried the below expr. This is not the solution for your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vStrtTime=480&lt;/P&gt;&lt;P&gt;vDuration=30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Rangemax(Sum(If(SalesTime &amp;gt;= vStrtTime/1440 And SalesTime &amp;lt;= ((vStrtTime+vDuration)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*2)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*2)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*3)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*3)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*4)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*4)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*5)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*5)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*6)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*6)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*7)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*7)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*8)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*8)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*9)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*9)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*10)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*10)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*11)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*11)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*12)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*12)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*13)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*13)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*14)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*14)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*15)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*15)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*16)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*16)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*17)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*17)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*18)/1440),SalesAmount)),&lt;/P&gt;&lt;P&gt;Sum(If(SalesTime &amp;gt; ((vStrtTime+vDuration*18)/1440) And SalesTime &amp;lt;= ((vStrtTime+vDuration*19)/1440),SalesAmount))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Value-for-Certain-Time-Duration/m-p/815195#M287510</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-03T14:05:28Z</dc:date>
    </item>
  </channel>
</rss>

