<?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: aggregating maximum value with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189187#M627068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension -&lt;/P&gt;&lt;P&gt;Timestamp and customer_id&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Max(Aggr(Max({$&amp;lt;latency={"=len(trim(latency))=0"},Duration = {"&amp;gt;0"}&amp;gt;}Duration),[network id]))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138172_Capture.JPG" style="height: 299px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I think expression needs improvement &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2016 13:05:36 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2016-09-21T13:05:36Z</dc:date>
    <item>
      <title>aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189173#M627054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have time based data that contains a few key columns as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time Stamp, device_id, status, latency, region, duration. Duration unit here is in seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The status of the device could be in network or out of network. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The of status and duration indicate the status of the terminal, either in network or out of network and the duration simply shows the duration of that device either in network or out of network. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to create a chart showing total duration (in hours) of the device id when it is still considered in the network but the latency value is zero or blank. As it is reported periodically duration value keeps changing, so I'd like to select the maximum duration only for each device for each observation period.&amp;nbsp; Tried set analysis like below with max value but it is not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;latency={"=len(trim(terminal_latency))=0"}, [status]={'*IN*'},&amp;nbsp; d&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;uration = {$(=max(duration))}&lt;/SPAN&gt;,[device_id]&amp;gt;}[duration])/3600&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What is the correct expression for this?&amp;nbsp; should this be better with advanced aggregation? &lt;SPAN style="font-size: 13.3333px;"&gt;Any suggestion?&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189173#M627054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-20T21:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189174#M627055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want max duration change based on different dimension? If that is true that set analysis may not work for you. or it might if you are wiling to make changes in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189174#M627055</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-20T21:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189175#M627056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to aggregate the maximum duration for all devices for selected period of time (e.g. hour, day, etc.). My dimension in x axis is simply either one of these two&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(tpa_date, 'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp((Ceil([Time Stamp],1/IntervalSize)),'DD-MMM-hh:mm')&amp;nbsp; for dynamic interval size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me what is the correct one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 22:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189175#M627056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-20T22:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189176#M627057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant what would be the correct expression for that set analysis or what would need to be done in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 00:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189176#M627057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T00:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189177#M627058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be easier if you can provide a sample with the expected output to try few things before I can say that this is the solution which will work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 00:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189177#M627058</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T00:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189178#M627059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached the sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, Since date and time is in separate column I made another filed namely Time Stamp in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;Timestamp(Floor(Timestamp(Date&amp;amp;' '&amp;amp;Time,'DD/MM/YYYY hh:mm:ss'),1/288)) as [Time Stamp],&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;And also extracted the duration from the status and converted it seconds (e.g. IN_NETWORK 1 h 57 min 50 sec becomes 1*3600+57*60+50 sec)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;I can't provide the expected output as this is what I'd like to see.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;I simply want to select the maximum value for the duration when the status is in network and latency is blank or null sum these max values for each customer_id in the desired period (e.g. one day).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 01:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189178#M627059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T01:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189179#M627060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 01:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189179#M627060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T01:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189180#M627061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if attached sample can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 05:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189180#M627061</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-21T05:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189181#M627062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It calculates duration in seconds in script for IN_Network status, I am confused which dimension you want to keep in chart out of customer_id, Date, network Id( I think you mentioned it a device id?). But I am sure based on this sample you can ask specific questions now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 05:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189181#M627062</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-21T05:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189182#M627063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Included timestamp dimension and line chart, corrected bug in duration calculation -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 07:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189182#M627063</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-21T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189183#M627064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fikri,&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;latency={"=len(trim(terminal_latency))=0"}, [status]={'*IN*'},&amp;nbsp; d&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;uration = {$(=max(duration))}&lt;/SPAN&gt;,[device_id]&amp;gt;}[duration])&lt;STRONG&gt;,[device_id]))&lt;/STRONG&gt;/3600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will calculate max duration for each device_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 07:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189183#M627064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189184#M627065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am still using personal version and unable to open the file. I wonder if it is possible to show the script and expressions used in the chart? and also a capture of the chart itself so that I can understand if it is what I am looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189184#M627065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T12:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189185#M627066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression is not showing any result although it shows OK. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189185#M627066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T12:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189186#M627067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the script - &lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;Load Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(floor(Timestamp#(Date&amp;amp;' '&amp;amp;Time,'DD-MM-YYYY hh:mm:ss'),1/24),'DD-MM-YYYY hh:mm:ss') as [Time Stamp],&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [network id], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [area number], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; latency, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; region,&lt;/P&gt;&lt;P&gt;&amp;nbsp; rangesum(subfield(Duration,':',-1),subfield(Duration,':',-2)*60,subfield(Duration,':',-3)*3600,subfield(Duration,':',-4)*86400)/3600 as Duration&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;LOAD Date(Date#(Date,'DD/MM/YYYY'),'DD-MM-YYYY') as Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [network id], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [area number], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(wildMatch(trim(Status),'*IN_NETWORK*'),replace(KeepChar(Status,'0123456789 '),'&amp;nbsp; ',':'),0) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Duration, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; latency, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; region&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Data_Sample for qlik2..csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189186#M627067</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-21T12:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189187#M627068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension -&lt;/P&gt;&lt;P&gt;Timestamp and customer_id&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Max(Aggr(Max({$&amp;lt;latency={"=len(trim(latency))=0"},Duration = {"&amp;gt;0"}&amp;gt;}Duration),[network id]))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138172_Capture.JPG" style="height: 299px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I think expression needs improvement &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189187#M627068</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-21T13:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189188#M627069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this, i used Interval to show it into seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval(Sum(Aggr(max({$&amp;lt;latency={0},[Status]={'*IN*'},[network id]&amp;gt;} Time),[network id])),'ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189188#M627069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T13:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189189#M627070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Digvijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I just want to have a simple one. So, in this case the dimension is just simply time, not necessary with customer_id.&amp;nbsp; What I want to see in the chart is the Total sum of maximum duration for each customer when the latency is null or blank. In other words, I just want to select the maximum value for each customer for that duration. If the selected time interval is hour, then select the maximum value for that customer within that hour and aggregate/sum with the max value for all other customers within that period. If the time selection is one, this will become the max value for one day.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The x axis or dimension can be hour or day depending on the selection. I do this by selecting the predefined interval in the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Max(Aggr(Max({$&amp;lt;latency={"=len(trim(latency))=0"},Duration = {"&amp;gt;0"}&amp;gt;}Duration),[network id])) do this job?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;I was thinking something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Aggr(Max({$&amp;lt;latency={"=len(trim(latency))=0"},Duration = {"&amp;gt;0"}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;[status]={'*IN*'},&lt;/SPAN&gt;&amp;gt;}Duration),[customer_Id] but not sure if this gives the result I wanted since some days show zero results where I know there are some values on those days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Any suggestion? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189189#M627070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T13:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189190#M627071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this one - if I wanted to aggregate it by date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Aggr(Max({$&amp;lt;latency={"=len(trim(latency))=0"},[Duration] = {"&amp;gt;0"},[Status]={'*IN*'}&amp;gt;}[Duration]),Date,[Customer_Id]))/3600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The unit will in hour&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189190#M627071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T14:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189191#M627072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen my response?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this expression:&lt;/P&gt;&lt;P&gt;Interval(Sum(Aggr(max({$&amp;lt;latency={0},[Status]={'*IN*'},[network id]&amp;gt;} Time),[network id])),'ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see it in hours change ss with hh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189191#M627072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: aggregating maximum value with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189192#M627073</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;I did try this one with sample file and script from Digvijay. This is not showing any data regardless of ss or hh. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the dimension in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Interval(Sum(Aggr(max({$&amp;lt;latency={0},[Status]={'*IN*'},[network id]&amp;gt;} Time),[network id])),'ss')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The above seems&amp;nbsp; &lt;SPAN style="line-height: 1.5em;"&gt;aggregating by network_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;I'd like to sum max value of duration with selected condition (latency is blank and customer in network) by customer_id over&amp;nbsp; period of time)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregating-maximum-value-with-set-analysis/m-p/1189192#M627073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T15:58:57Z</dc:date>
    </item>
  </channel>
</rss>

