<?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: Aggr, Max and Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259076#M624441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Henrique Demarco wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;But the question is: which was the &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;longer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; PEDIDO in all 3 sectors&lt;/STRONG&gt; (from beginning to end of flow)?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Somewhat, I understand the content, Can you describe more for this part?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 03:10:10 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-01-17T03:10:10Z</dc:date>
    <item>
      <title>Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259075#M624440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik colleagues,&lt;/P&gt;&lt;P&gt;File attached is calculating the total time of sales order flow inside company I work for.&lt;/P&gt;&lt;P&gt;We have average time and total time. The second gets the worst case on each department (Logistics, Sales-Comercial and Financial). But we desire to get the longer Sales Order (Pedido) instead of &lt;SPAN style="font-size: 13.3333px;"&gt;longer&lt;/SPAN&gt; on each department.&lt;/P&gt;&lt;P&gt;For example: in out/2015 the &lt;SPAN style="font-size: 13.3333px;"&gt;longer&lt;/SPAN&gt; case in Sales dept took 1174h56min and it was PEDIDO=102365. The &lt;SPAN style="font-size: 13.3333px;"&gt;longer&lt;/SPAN&gt; case in Financial dept took 846h36min and it was PEDIDO=102663. The &lt;SPAN style="font-size: 13.3333px;"&gt;longer&lt;/SPAN&gt; case in Logistics dept took 1448h05min and it was PEDIDO=102297.&lt;/P&gt;&lt;P&gt;But the question is: which was the &lt;SPAN style="font-size: 13.3333px;"&gt;longer&lt;/SPAN&gt; PEDIDO in all 3 sectors (from beginning to end of flow)?&lt;/P&gt;&lt;P&gt;I already tried some formulas with Max, Aggr and Sum, but maybe it is not this way.&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Henrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2017 20:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259075#M624440</guid>
      <dc:creator>h_demarco</dc:creator>
      <dc:date>2017-01-16T20:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259076#M624441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Henrique Demarco wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;But the question is: which was the &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;longer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; PEDIDO in all 3 sectors&lt;/STRONG&gt; (from beginning to end of flow)?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Somewhat, I understand the content, Can you describe more for this part?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 03:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259076#M624441</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-17T03:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259077#M624442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. &lt;SPAN style="font-size: 13.3333px;"&gt;Might be some misunderstanding due to translation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PEDIDO is the field name and means Sales Order number.&lt;/P&gt;&lt;P&gt;All Sales Order starts in Comercial (Sales Dept), then some of them goes to Financial and ends in Logistics.&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;longest PEDIDO in all 3 sectors&lt;/STRONG&gt; I mean &lt;STRONG&gt;longest Sales Order for complete flow, that goes from Comercial to Logistics&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 10:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259077#M624442</guid>
      <dc:creator>h_demarco</dc:creator>
      <dc:date>2017-01-17T10:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259078#M624443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A workaround for it can be to create a field in script that would calculate interval between PEDIDO (Sales Order) begin and end. With interval it would be possible to find longest PEDIDO and then plot it.&lt;/P&gt;&lt;P&gt;I always try to avoid this kind of solution to save memory and speed up qvw, but can be a solution.&lt;/P&gt;&lt;P&gt;Hope someone can help. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 10:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259078#M624443</guid>
      <dc:creator>h_demarco</dc:creator>
      <dc:date>2017-01-17T10:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259079#M624444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this once&lt;/P&gt;&lt;P&gt;Max(Aggr(dimension,expression))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Aggr(time,saledept))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 10:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259079#M624444</guid>
      <dc:creator />
      <dc:date>2017-01-17T10:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259080#M624445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;Hi Henrique,&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: 11.7px;"&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: 11.7px;"&gt;if you build a chat &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;direct &lt;/SPAN&gt;table with dimensions Perdido and Setor&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: 11.7px;"&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149734_1.jpg" style="height: 309px; width: 620px;" /&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: 11.7px;"&gt;and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;with expression&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: 11.7px;"&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: 11.7px;"&gt;If (rank(Max(TOTAL &amp;lt;PEDIDO, Setor&amp;gt; Tempo_total))=1, Max(TOTAL &amp;lt;PEDIDO, Setor&amp;gt; Tempo_total))&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: 11.7px;"&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: 11.7px;"&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/149735_2.jpg" style="height: 175px; width: 620px;" /&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: 11.7px;"&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: 11.7px;"&gt;we obtain the following chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/149736_3.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Is this what you want? Maybe this will help solve your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259080#M624445</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-01-17T12:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259081#M624446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you hoping to see this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149741_Capture.PNG" style="height: 364px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are you hoping to see just the Green portion since it is the max among the three sector?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/149742_Capture.PNG" style="height: 357px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for the second one is this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Max(TOTAL &amp;lt;$(='[' &amp;amp; GetCurrentField([Tempo]) &amp;amp;']')&amp;gt; Aggr(DISTINCT Sum({&amp;lt;Situação_Fluxo-={'11'}&amp;gt;} Tempo_total), Status_Fluxo, PEDIDO)) =&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Aggr(DISTINCT Sum({&amp;lt;Situação_Fluxo-={'11'}&amp;gt;} Tempo_total), Status_Fluxo, PEDIDO)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Aggr(DISTINCT Sum({&amp;lt;Situação_Fluxo-={'11'}&amp;gt;} Tempo_total), Status_Fluxo, PEDIDO)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without selection, it looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/149743_Capture.PNG" style="height: 364px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259081#M624446</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T12:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259082#M624447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aggr syntax is: &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;aggr (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[ &lt;SPAN class="Bold"&gt;distinct&lt;/SPAN&gt; | &lt;SPAN class="Bold"&gt;nodistinct&lt;/SPAN&gt; ] [{set_expression}]expression {, dimension}&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I already tried this solution without success.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 15:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259082#M624447</guid>
      <dc:creator>h_demarco</dc:creator>
      <dc:date>2017-01-17T15:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259083#M624448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My proposed solution might not be the one you wanted, but did you get a chance to look at it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259083#M624448</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T16:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259084#M624449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey,&lt;/P&gt;&lt;P&gt;Your solution is returning the worst (if you consider that a long lead time is not good for business) department for each Pedido (Sales Order).&lt;/P&gt;&lt;P&gt;I am looking for the worst Sales Order in a defined period time, like October 2015.&lt;/P&gt;&lt;P&gt;Lets work with Logistics and Oct 2015. The longest Sales Order for Logistics is 102297, which took 1448:05:38 total time. But is this the longest Sales Order of the company? No.&lt;/P&gt;&lt;P&gt;The longest SO for the company is 102663, that took 933:00:12 in Comercial dept and 846:36:46 in Financial and counting, because it did not get to Logistics yet.&lt;/P&gt;&lt;P&gt;Remember SO's flow is Comercial -&amp;gt; Financial -&amp;gt; Logistics.&lt;/P&gt;&lt;P&gt;If you see SO 102663 is not the worst case among 3 departments, but is the worst case of the company.&lt;/P&gt;&lt;P&gt;In my case, I would like to plot the worst company case with total time on each department. In case of 102663, Logistics would not appear in chart because it has 0min of lead time.&lt;/P&gt;&lt;P&gt;Here an example in a Excel pivot table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149757_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Chart should be something like that:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/149758_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and quick answer.&lt;/P&gt;&lt;P&gt;Henrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259084#M624449</guid>
      <dc:creator>h_demarco</dc:creator>
      <dc:date>2017-01-17T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259085#M624450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet, but I will check your proposal in a few minutes.&lt;/P&gt;&lt;P&gt;By the way, thanks for your quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259085#M624450</guid>
      <dc:creator>h_demarco</dc:creator>
      <dc:date>2017-01-17T16:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259086#M624451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;It is not exactly what I need. Your solution is returning total time in the department that took longest lead time.&lt;/P&gt;&lt;P&gt;Please, have a look at my answer to Andrey Khoronenko on 17/01/2017 11:21.&lt;/P&gt;&lt;P&gt;As you guys are returning suggestions to me, I think problem is getting clear.&lt;/P&gt;&lt;P&gt;Thanks for your help, once again.&lt;/P&gt;&lt;P&gt;Henrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 17:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259086#M624451</guid>
      <dc:creator>h_demarco</dc:creator>
      <dc:date>2017-01-17T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259087#M624452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;With some of your suggestions the expression&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14846754336889480 jive_text_macro" jivemacro_uid="_14846754336889480"&gt;
&lt;P&gt;=max(aggr(Sum({&amp;lt;Situação_Fluxo-={'11'}&amp;gt;} Tempo_total),PEDIDO))&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;is returning the number that I am looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 17:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259087#M624452</guid>
      <dc:creator>h_demarco</dc:creator>
      <dc:date>2017-01-17T17:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259088#M624453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149777_Capture.PNG" style="height: 403px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(PEDIDO = FirstSortedValue(TOTAL &amp;lt;$(='[' &amp;amp; GetCurrentField([Tempo]) &amp;amp; ']')&amp;gt; PEDIDO, -Aggr(Sum({&amp;lt;Situação_Fluxo-={'11'}&amp;gt;} Tempo_total), PEDIDO)), Sum({&amp;lt;Situação_Fluxo-={'11'}&amp;gt;} Tempo_total)), PEDIDO, $(='[' &amp;amp; GetCurrentField([Tempo]) &amp;amp; ']'), Setor))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259088#M624453</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T18:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr, Max and Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259089#M624454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;Hi Henrique,&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: 11.7px;"&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: 11.7px;"&gt;First, I created a variable varMaxVolume, which calculates the maximum total time of the sample (if the sample is not present, the maximum time is calculated from all the data). It contains the expression&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: 11.7px;"&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: 11.7px;"&gt;=Max (Aggr(Sum(Tempo_total), PEDIDO))&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: 11.7px;"&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: 11.7px;"&gt;Next, build a table with dimension PEDIDO and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;expression&lt;/SPAN&gt;s&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: 11.7px;"&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: 11.7px;"&gt;1) Comercial:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;PEDIDO= {"=Num(Sum(Tempo_total))=varMaxVolume"}, Setor={'Comercial'}&amp;gt;} Tempo_total)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2) Financeiro:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;PEDIDO= {"=Num(Sum(Tempo_total))=varMaxVolume"}, Setor={'Financeiro'}&amp;gt;} Tempo_total)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;3) Logística:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;PEDIDO= {"=Num(Sum(Tempo_total))=varMaxVolume"}, Setor={'Logística'}&amp;gt;} Tempo_total)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;4) Grand Total:&amp;nbsp;&amp;nbsp; Num(Sum({&amp;lt;PEDIDO= {"=Num(Sum(Tempo_total))=varMaxVolume"}&amp;gt;}Tempo_total))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; 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: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;We get a table with a single line, with a maximum value of Grand Total in the sample or all data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; 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: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="4.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149980_4.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;Now you can build a histogram. D&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;imensions PEDIDO and Setor, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;expression&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; 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: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; Num(Sum({&amp;lt;PEDIDO= {"=Num(Sum(Tempo_total))=varMaxVolume"}&amp;gt;}Tempo_total))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; 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: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="5.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/149996_5.jpg" style="height: 330px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Of course the parameters and settings of the histogram can be done in accordance with the tasks. Like this is what we were looking for. I am glad if I can be of any help to you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; 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: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Andrey&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: 11.7px;"&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: 11.7px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 08:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-and-Sum/m-p/1259089#M624454</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-01-19T08:13:39Z</dc:date>
    </item>
  </channel>
</rss>

